Saturday, August 10, 2024

DS IMP QUESTION

linked list

  1. Explain the insertion operation in linked list. How nodes are inserted after a specified node?
  2. Define ADT and Mention the features of ADT.
  3. Discuss the merge operation in circular linked lists.
  4. When doubly linked list can be represented as circular linked list? Mention the merits and demerits of linked list.
  5. What are the postfix and prefix forms of the given below expression? A+B*(CD)/(P-R)
  6. List three examples that uses linked list. What are the merits and demerits of array implementation of lists?
  7. Convert the infix (a+b)*(c+d)/f  into postfix & prefix expression
  8. What are the draw backs of single linked list? Write and explain the algorithm for search and modify operations in doubly linked list with example.
  9. Write a program to reverse the given single linked list with starting node as ‘head’.
  10. Write a program to implement stack using linked list.
  11. Write a program to insert, delete and print the elements using doubly linked list.
  12. Explain how to find whether the single linked list contains a loop?
  13. Write a pseudo code for it. Assume the single linked list is having initial node as ‘head’.
  14. What are the operations of Circular linked list? List its applications in computer science.
  15. Write a program to reverse the given single linked list with starting node as ‘head’.
  16. Write an algorithm to delete an element anywhere from double linked list.
  17. Explain the operations on single linked lisT 


 

queue.

  1. Write the routine to insert an element into a queue. Write the routine for insertion operation of singly linked list
  2. A circular queue has a size of 5 and has 3 elements 10,20 and 40 where F=2 and R=4. After inserting 50 and 60, what is the value of F and R. Trying to insert 30 at this stage what happens? Delete 2 elements from the queue and insert 70, 80 & 90.Explain and also show the sequence of steps with necessary diagrams with the value of F & R
  3. What is a DeQueue? Explain its operation with example
  4.  
  5. What are the limitations of queue? Explain the algorithms for various operations of circular queue
  6.  What are the applications of queue? Write a routine for IsEmpty condition of queue.
  7.  What are enqueue and dequeue operations?
  8. Write a program to implement queue using linked list
  9. Explain how can we find the number of nodes in a single linked list? Write a pseudo code for it.
  10. Write a program to implement queue using arrays.
  11. What is a queue? Write an algorithm for implementing queue using linked list

 

stack

  1. Mention any four applications of stack.
  2.  Define an efficient representation of two stacks in a given area of memory with n words and explain
  3. What are the features of stacks?
  4.  Explain the usage of stack in recursive algorithm implementation?
  5. What are the operations of stack? List its applications in computer science.
  6. How can we find the address of a second node from the end in a single linked list? Write pseudo code for it.
  7.  What are the operations of Queue? List its applications in computer science. Write a program.
  8.  Write a program to implement single linked list with starting node as ‘head’.
  9.  Write a program to insert an element into a single linked list by considering all the possible cases.
  10. What is a stack? Explain how it can be useful in evaluating expressions with suitable examples
  11.  Write a program to implement stack using arrays.
  12. Explain the stack data structure with suitable example. Give algorithms FOR Push, Pop operations

MID-2  IMP QUESTION

  1. Compare full and complete binary tree with examples.Compare linear search and binary search. SOLUTION
  2. Construct a binary search tree with the following elements and determine its height. 15, 84, 7, 91, 3, 6, 41, 1, 25, 21, 32, 37, 45, 5, 9 SOLUTION
  3. Explain how a node with both the children can be deleted from a binary search tree with suitable examples. SOLUTION
  4. Explain the Four Rotations used to convert an unbalanced BST into Balanced AVL Tree.  SOLUTION
  5. Construct a B-Tree of order 5 with the following elements.37, 15, 19, 21, 62, 77, 99, 52, 85, 94, 65, 74, 84, 121 SOLUTION
  6. Construct the Red-Black Tree for the set of data values {10, 18, 7, 15, 16, 30} and also mention the step-by-step procedure. SOLUTION
  7. What is priority Queue? How can priority queues can be implemented? Explain in brief  SOLUTION
  8. What is a Splay tree? How it is different from binary search tree? List any two applications of splay trees. SOLUTION1    SOLUTION2

 

No comments:

Post a Comment

COMPARISON TREE

  Difference between Full and Complete Binary Tree A   binary tree  is a type of data structure where each node can only have  two offspring...