Which of the following traversal techniques lists the nodes of a binary search tree in ascending order?
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.
Which of the following traversal techniques lists the nodes of a binary search tree in ascending order?
The number of possible distinct binary trees with 12 nodes is
Which of the following expressions accesses the (i, j)th entry of a (m × n) matrix stored in column major order?
Stack cannot be used to
The postfix equivalent of the prefix * + ab - cd is
Merge sort uses
The following sequence of operations is performed on a stack push(1), push(2), pop( ), push(1), push(2), pop( ), pop( ), push(2), pop( ). The sequence of popped out values are
Which of the following is not a requirement of good hashing function?
Self-referential pointer is used in defining
A binary tree has n leaf nodes. The number of nodes of degree 2 in this tree is
What is the difference between array and linked-list? What is the primary criterion of performing binary search technique on a list of data?
Write a recursive algorithm to solve tower of Hanoi problem.
Deduce the average time complexity of Quicksort algorithm.
Suppose a queue is implemented by an array. Write an algorithm to insert a new element at the kth position of the array.
Write an algorithm to delete the last node of a linked-list.
The in-order and pre-order traversal sequence of nodes in a binary tree are given below: Post-order: I E J F C G K L H D B A In-order: E I C F J B G D K H L A Construct the tree.
Define Hashing.
Describe a String reversal Algorithm.
Write an algorithm for inserting an element into a Binary tree with example.
Convert the following infix expression into equivalent postfix expression using stack. (A + B) * C − (D − E)(F + G)
What is deque?
How can a polynomial such as 6x⁶ + 4x³ − 2x + 10 be represented by a linked list?
For the following graph find the BFS and DFS traversal with proper algorithm.
Insert the following keys in the order given below to build them into an AVL-tree. 12, 11, 13, 10, 09, 15, 14, 18, 7, 6, 5, 4. Clearly mention different rotations used and balance factor of each node.
What is hashing? Describe any three methods of defining a hash function.
Discuss different collision resolution techniques.
Write short notes on any three of the following: (a) ADT (b) AVL Tree (c) Circular link list (d) Threaded binary trees (e) Heap
For the following expression draw the corresponding expression tree: a + b * c - d/e.
Write an algorithm to insert an element in the middle of a linked list.