Assignment No 3 DS July24
Assignment No 3 DS July24
9) In a singly-linked list (linear linked list), how many fields does each node consists 3
of?
a. One b. Three
c. Two d. Zero
10) To implement Sparse matrix dynamically, the following data structure is used 3
a. Trees b. Graphs
c. Priority Queues d. Linked List
Q3. Answer the following questions in brief
1) Write a ‘C’ program to implement a single Linked List which supports the 3
following operations;
a) Insert a node in the beginning
b) Insert a node in the end
c) Insert a node specific node
d) Deleting a specific node
e) Display the list
2) Write a ‘C’ program to implement a Double Linked List which supports the 3
following operations;
a) Insert a node in the beginning
b) Insert a node in the end
c) Insert a node specific node
d) Deleting a specific node
e) Display the list
3) Write a program to implement a double ended queue (DEQUE) using a linked list 3