Data Structures Question Bank
Data Structures Question Bank
UNIT-III
1) Define Single Linked List. Write algorithms to insert a node at the beginning, ending, and
after the given key element.
2) Define Single Linked List. Write algorithms to delete a node at the beginning, ending, and
a node whose data is equals to given key value.
3. Define double linked list. Write algorithms to insert a node at the beginning, ending, and
after the given key element.
4. Define double linked list. Write algorithms to delete a node at the beginning, ending, and a
node whose data is equals to given key value.
5) Discuss the implementation of a circular linked list.
UNIT-IV
1. What is a Stack? Explain the implementation of Stack Operations using arrays.
2. What is a Stack? Explain the implementation of Stack Operations using Linked List
3. Define stack and give one application? Convert the given infix expression to its postfix
Expression ((A+((B^C)-D))*(E-(A/C)))
4. Write an algorithm to evaluate given postfix expression. Explain with example.
5. What is a Queue? Explain the implementation of Queue Operations using arrays.
UNIT - 5
1.Define Sorting? Sort the following elements using Quick Sort? Give the time complexity
of quicksort? 9, 17, 5, 28, 3, 11, 7, 78, 1, 33, 8, 45, 2, 4, 12, 6, 34
2.Outline the concept of divide and conquer. Give an algorithm for Merge Sort & trace the
steps for sorting the following list with time complexity. 39, 9, 81, 45, 90, 27, 72, 18
3.Explain the Binary Tree representation using Arrays & Linked List.
4.Write and explain Binary Tree Traversals in a recursive approach.
5.What is a Binary Search Tree? Draw a binary search tree when the following keys are
inserted in order 43, 75, 19, 36, 8, 62, 49, 84, 12, 18, 29.