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

 

 

No comments:

Post a Comment

Binary Search Trees(BST)

  Binary Search Trees (BST): A binary search tree, also known as an ordered binary tree. In a binary search tree, all the nodes in the left ...