How stack is represented using dynamic array? Explain with example.
Data Structures
22 questions
Identify the applications of stack.
Elaborate the disadvantages of Linked List over Arrays.
Justify how circular queue is different from normal queue.
Differentiate between sequential and binary search.
Illustrate different traversal techniques used in binary search tree.
List out best, average and worst case complexity of merge and quick sort.
Examine the relationship between number of nodes and height of AVL tree.
Determine advantages and disadvantages of adjacent matrix representation for graphs.
Explain how quadratic probing is done.
Convert the following infix expression into postfix expression:
A + B - (C + D) / E * F - (G + H) / I
Consider the preorder of a BST: 20, 5, 3, 4, 10, 15, 30, 25, 40
What will be the post-order?
Write an algorithm to enqueue and dequeue an element in a queue.
Sort the following elements using quick sort: 28, 5, 16, 36, 11, 19, 25
Write an algorithm for DFS traversal.
What is a MST? Differentiate between Kruskal and Prim's algorithm with their time complexity.
Explain the algorithm for deleting an element from doubly linked list.
Examine each step involved with Radix sort to sort the given array - 329, 457, 657, 839, 436, 720, 355
Write a C program to add a node with data 'X' before a node with data 'Y' in a singly linked list.
Create an AVL tree using the following nodes 10, 6, 11, 12, 1, 7, 0, 2, 3. What will be the resulting AVL tree if node 12 is deleted from above AVL tree?
Consider the following graph -
Find the minimum spanning tree using Prim's algorithm.
(a) Write a recursive program for towers of Hanoi.
(b) What is a stack? Calculate the following expression - 8 2 3 ^ / 2 3 + 5 1 -