The time complexity of binary search 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 time complexity of binary search is
The fastest sorting algorithm for an almost already sorted array is
The ratio of items present in a hash table to the total size is called
The Linear Probing Technique for collision resolution can lead to
A height balanced binary tree is a binary tree in which the height of two subtrees of every mode never differ by more than
Which tree structure is used for efficient access of records residing in disc memory ?
Any connected graph with x vertices must have at least
Which of the following is essential for converting an infix expression to postfix notation ?
The values in a BST can be sorted in ascending order by using which of the following traversals ?
The prefix expression for the infix expression a * ( b + c ) / e - f is
In C language, malloc() returns
Fibonacci function fib(n) = fib(n-1) + fib(n-2) is an example of
A linear list in which elements can be added or removed at either end but not in the middle is known as
Prove that O(f(x)) + O(g(x)) = O(max(f(x), g(x))).
a) Convert the following infix expression into equivalent postfix expression using stack : (A + B) * C - (D - E) / (F + G). b) What is a Max Heap ?
What is a priority queue ? Mention the different design options for priority queue.
"Binary search technique cannot be implemented using Linked list." Justify the validity of the statement.
Show how the following integers can be inserted in an empty binary search tree in the order they are given : 50, 30, 10, 90, 100, 40, 60, 20, 110, 5. Draw the tree in each step.
a) Prove that, the height of a binary tree that contains n elements, n ≥ 0, is at most n and at least [ log ( n + 1 ) ]. b) The order of nodes of a binary tree in Preorder and in order traversal are as under : In order : D B F E G H I A C Pre-order : A B D E F G H I C Draw the corresponding binary tree. c) How does static allocation differ from dynamic allocation of memory ?
a) What is a Stack ADT ? b) Write a C function for popping an element from a stack implemented using linked list. c) Explain three uses of stack data structure.
a) Explain with a suitable example the principle of operation of QuickSort algorithm. b) In which cases, QuickSort becomes a 'SlowSort' ? What is the remedy in those cases ? c) Compare the performance and operation of BubbleSort and SelectionSort.
a) Show the steps in creation of a height balanced binary AVL TREE using insertion of items in the following order — show the balancing steps required. ( March, May, November, August, April, January, December, July, February, June, October, September ) b) What do you mean by a B-Tree and what are the uses of such a tree in data structures ? c) Consider a B-Tree of order 5 as shown below — insert the elements 4, 5, 58, 6 in this order in the B-Tree.
a) Compare BFS and DFS. Discuss the two different ways of representing a graph. b) Draw the minimum cost spanning tree for the graph given below and also find its cost. c) What is a complete graph ? Show that the sum of degree of all the vertices in a graph is always even.