Reserve Polish notation is often known as
Official theoretical question paper for Data Structure Algorithms (PCC-CS301) conducted by Maulana Abul Kalam Azad University of Technology. All questions from Groups A, B, and C are reproduced below with marks weightings.
Reserve Polish notation is often known as
Which of the following algorithm should execute the slowest for large values of N?
The evaluation of the postfix expression 3, 5, 7, *, +, 12, % is
A machine needs a minimum of 100 sec to sort 1000 names by quick sort. The minimum time needed to sort 100 names will be approximately
Linked list are not suitable for
What will be the time complexity for selection sort to sort an array of n elements?
The depth of a complete binary tree with n nodes
In a binary search tree, if the number of nodes of a tree is 9, then the minimum height of the tree is
Dynamic memory allocation use
A vertex with degree one in a graph is called
Adjacency matrix of a digraph is
Which method of traversal does not use stack to hold nodes that are waiting to be processed:
Define big O notations.
T ( n ) = 4n ^ 2 + 3n log n, express T ( n ) in Big ( O ) notations.
How the polynomial 4x^3 - 10x^2 + 3 can be represented using a linked list?
Compare and contrast between an array and a single linked list.
Consider the array int a [ 10 ] [ 10 ] and the base address 2000, then calculate the address of the array a [ 2 ] [ 3 ] in the row and column major ordering.
Write the advantage of circular queue over linear queue.
What do you mean by recursion? Write down a C function to find out the GCD of two nos. using recursive technique.
What is binary tree? Construct a binary tree using the inorder and postorder traversal of the node given below: Inorder: D B F E A G C L J H K Postorder: D F E B G L J K H C A
Draw a minimum heap tree from the below list : 12, 11, 7, 3, 10, -5, 0, 9, 2 Now do the heap sort operation over the heap tree which you have formed. Write the insertion sort algorithm.
What is a minimum spanning tree? Describe Huffman's Algorithm.
What are the differences between AVL Tree & Binary Search Tree?
Radix Sort the following list: 189, 205, 986, 421, 97, 192, 535, 839, 562, 674 Write the Radix sort algorithm.
Find the time complexity of Binary Search Algorithm.
What is hashing?
Construct an AVL tree using the below list. Show all the steps 12, 11, 13, 10, 09, 15, 14, 18, 7, 6, 5, 4.
What is a priority queue?
Write the recursive algorithm to find x^n.
Find the postfix notation of ( a + b * x ) \ ( a ! - d ) s - c ^ y [ show all steps ].
Write the advantage of circular queue over linear queue.
What is a self referential structure?
Describe a string reversal algorithm.
Write the difference between a[ ] and **a.
What is difference between Union & Structure?
Write short notes on any three of the following: a) Abstract Data type b) BFS c) BTree d) Tail recursion e) Merge Sort.