Data Structures and Algorithms - B.Tech 3rd Semester Special Exam., 2020
Data Structures and Algorithms
Instructions:
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
-
If the number of records to be sorted is small, then ______ sorting can be efficient.
-
Which of the following is not a limitation of binary search algorithm?
-
The complexity of the merge sort is
-
Which of the following is a hash function?
-
In simple hashing, what is the search complexity?
-
In simple chaining, what data structure is appropriate?
-
Which is not true about insertion sort?
-
Which of the below mentioned sorting algorithms is not stable?
-
A pivot element to partition unsorted list is used in
-
Which one of the following is divide and conquer approach?
-
Write down breadth-first traversal and depth-first traversal of given graph taking 1 as source vertex.
-
Construct a B-tree with minimum degree t as 3 and a sequence of integers 10, 20, 30, 40, 50, 60, 70, 80 and 90 in an initially empty B-tree. Show each step.
-
Write a function to perform merge sort on array of element mentioned. Also write recurrence relation for time complexity of algorithm.
-
What is AVL tree? Describe deletion operation in AVL tree with example.
-
Apply bubble sort on given array of integers: 26, 45, 13, 23, 12, 7, 38, 42. Show the content of array after every pass.
-
Write the algorithm to count leaf node in binary tree and check whether the tree is balanced or not.
-
What is hash table? How can we use this structure to find all anagrams in a dictionary?
-
Write a function that inserts a given element in a binary search tree. If the element is already present, throw an exception 'duplicate value'.
-
Linear and non-linear data structures
-
How to implement stack using queue
-
Heapsort
-
C++ STL