Each element of an array arr[20][50] requires 4 bytes of storage. Base address of arr is 2000. The location of arr[10][10] when the array is stored as column major 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.
Each element of an array arr[20][50] requires 4 bytes of storage. Base address of arr is 2000. The location of arr[10][10] when the array is stored as column major is
Maximum possible height of an AVL Tree with 7 nodes is
In a circularly linked list organization, insertion of a record involves the modification of
The in-order and post-order traversal of a binary tree are DBEAFCA and DEBFCA respectively. What will be the total number of nodes in the left subtree of the given tree ?
Which data structure is used for breadth first traversal of a graph ?
The prefix expression for the infix expression a * ( b + c ) / e - f is
Which of the following is not a requirement of good hashing function ?
The adjacency matrix of an undirected graph is
BFS
A non-planar graph with minimum number of vertices has
A binary tree is a special type of tree
A B-tree is
Prove that, the best case time complexity for quick sort is O ( n log n ) for input size of n.
Compare sequential versus direct access file structures.
Explain multi-index file structure.
"The designer of an algorithm need to balance between space complexity and time complexity." — Comment on the validity of the statement in the context of recursive algorithms.
What are the advantages of linked list over an array? Write an algorithm to insert a data X after a specific data item Y in a linked list.
Give an algorithm to search for an element in an array using binary search.
Why is hassing referred as a heuristic search method?
What is the primary advantage of hashing over deterministic search algorithms?
Define collision. Discuss two collision resolution techniques and compare their performances.
Why the hash functions need to be simple?
What is linear data structure?
Do you consider the following data-structures as linear? i) Circular doubly linked list ii) Binary tree. Explain for both cases.
Represent the following polynomial by linked list (show the diagram only): $9x^5 + 3x^3 - 8x + 15$.
Write an algorithm to delete all nodes having value greater than X from a given singly linked list.
Define circular queue.
Write an algorithm to insert an item in circular queue.
What is input restricted deque?
Write an algorithm to convert an infix expression to postfix using stack.
What do you mean by external sorting? How does it differ from internal sorting?
Write an algorithm for sorting a list numbers in ascending order using selection sort technique.
Describe Kruskal's minimal spanning tree algorithm.
In a 2-tree, if E be the external path length, P be the internal path length and Q be the number of vertices that are not leaves, then prove that $$E = P + 2Q.$$
What is threaded binary tree?
Write an algorithm to delete a node from a binary search tree.
Create a AVL tree by inserting the following numbers in the order in which they are given : 17 25 19 23 75. Draw figure for each step.