The postfix equivalent of the prefix * + ab - cd is
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.
The postfix equivalent of the prefix * + ab - cd is
If a binary tree is threaded for inorder traversal a right NULL link of any node it is replaced by the address of its
Adjacency matrix of a digraph is
Linked lists are not suitable for
The ratio of items present in a hash table to the total size is called
Maximum possible height of an AVL tree with 7 nodes is
The deque can be used
Inserting a node after a given node in a doubly linked list requires
The minimum height of a binary tree of n nodes is
What will be the time complexity for selection sort to sort an array of n elements?
Show that the function f(n) defined by f(n) = 1; n = 1 f(n) = f(n-1) + 1/n, n > 1 has complexity O(ln n).
a) Does a B tree grow at its leave or at its root? Why? b) In deleting a key from a B tree, when is it necessary to combine nodes? c) For what purposes are B trees especially appropriate?
The post-order and in-order traversal sequences of nodes in a binary tree are given below: Postorder : D G E B H I F C A inorder : D B G E A C H F I Construct the binary tree.
Construct one B-Tree of order 4 with the following data. 34, 67, 89, 90, 100, 2, 36, 76, 53, 51, 12, 10, 77, 69.
What is the default return type of malloc()? Why do we need to typecast it? Write an algorithm to append a new node after a specified node in single linked list.
a) Why circular queue is better than simple queue? b) Evaluate the postfix expression using stack : 3. 16. 2. +. *. 12. 6. /.- c) Convert the infix expression into its equivalent prefix expression using stack : a + b * c + (d * e + f) * g.
a) Write a non-recursive algorithm to traverse a binary tree in its inorder traversal. b) Write a C function to find out the maximum and the minimum elements in a binary search tree. c) Given the pre-order sequence and the post-order sequence, why cannot you reconstruct the tree?
a) Construct a tree from the given postfix expression a b c * + d e * f + g * + b) Write a C function to sort positive integers that does not compose the array elements. c) Show how linked list can be used to add the following polynomials : 5x⁴ + 5x³ + 10x² + 8x + 3 3x³ + 2x² + 7x + 8.
a) Describe BFS algorithm. b) Find out the DFS traversal of the following graph starting at node A. A -- B -- E -- F -- K | | | | D -- C -- G -- H -- I -- J c) Define Prim's algorithm for minimum cost spanning tree with example.