Which is better computing time ( in analysis of algorithm)?
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 is better computing time ( in analysis of algorithm)?
Which type of linked list contains a pointer to the next as well as previous node in the sequence?
Which of the following is essential for converting an infix expression to the postfix expression efficiently?
A dynamic data structure where we can search for desired records in O ( log n ) time is
For Column Major, what is the address of [ 3, 2 ] th element of a 3 × 4 Matrix ( contains integer number )? It is given that the 'Base Address is 2000'.
To implement DFS which data structure is generally used?
The maximum possible height of an AVL tree with 7 nodes is
Answer any three of the following. a) Compare among Data Type, Abstract Data Type and Data Structure. b) What are the differences between linear and non-linear data structures? c) Evaluate the following postfix expression : 4 2 + 2 . 2 2 . 9 3 . / . * - Write pseudo code for evaluating postfix expression. What is priority queue? How many types of priority queues are there? Can you consider stack as a priority queue? If yes, how? Write the Town of Hanoi Algorithm and calculate the time complexity of your algorithm.
When will interpolation search be more appropriate than binary search? How does an interpolation search work? Write an algorithm for interpolation search. Show with an appropriate example that worst case time complexity of interpolation search is O ( n ). What is the average case time complexity of interpolation search?
a) Show the operation of merge sort with an example. b) Write the pseudo code for Heap sort. c) Explain the complexity of Quick sort. d) Explain the advantages of binary search over sequential search.
a) Define Hashing. b) Explain one collision resolution scheme citing one example. c) What is index? What are the various types of indexing? State the advantages of using indexing over a sequential file.
a) What are the differences between stack and Queue? Write the algorithm for insertion and deletion in a circular Queue? b) What is the adjacency matrix representation of a graph? c) Write short notes on any three of the following: i) Recursive vs iterative solution of algorithms ii) B Tree iii) AVL Tree iv) Linear Lists v) Dijkstra's Algorithm.