Dsa Unit-3 Question Bank
Dsa Unit-3 Question Bank
1) List out the differences between the usage of Arrays and Linked list.
2) Differentiate between Singly Linked List and Doubly Linked List.
3) Write an algorithm to print the elements of singly linked list in reverse.
4) Represent the given polynomial: 6x4+2x2+6x-10 by a linked list.
5) How sparse matrices are represented using linked lists?
6) Specify the conditions for a circular linked list to be full and empty.
7) Define Equivalence class.
8) Define Hashing. What do you mean by collision in hashing?
1) Define a Singly Linked list. Write down its algorithms for traversing , searching,
insertion and deletion.
2) Explain the ADT of a Doubly linked list. Write the implementation of Doubly
Linked List.
3) Write a program for the following operations using linked list.
(i) Insert at last node (ii) Delete the first node (iii) Search for an element
(iv)Display the elements
4) Write the algorithm/ implementation of Stacks represented as Linked
lists.(operations on Stacks).
5) Write the algorithm/implementation of Queues represented as Linked
lists.(operations on Queues).
6) Define a Circular Linked list. Write a program to implement a Circular Linked
list.
7) Define static Hashing. Demonstrate Hashing using chaining technique to resolve
collisions.
8) Consider the hash function H(i)=(2i+5)%11. Insert keys 3, 8, 102, 23, 4, 10, 9, 12,
44, 15 and construct the 11 item hash table by using open addressing.
9) Define collision? Summarize different collision resolution techniques with
examples?