Which data structure is used to implement the array, stack, link list, queue, tree and Graph

By Prof. Fazal Rehman Shamil
Last modified on March 3rd, 2022

Which of the following data structure is used to implement the link list, queue, array, stack, Graph and tree?

Which data structure is used to implement the array, stack, link list, queue, tree and Graph
Which data structure is used to implement the array, stack, link list, queue, tree and Graph

Question: Which data structure is used to implement the array?

Answer: We can implement Array by using the array itself.


Question: Which data structure is used to implement the stack?

Answer: We can implement a stack by using Array and Linked List.


Question: Which data structure is used to implement queue?

Answer: We can implement queue by using Array, Linked List, and Stack.


Question: Which data structure is used to implement the Link list?

Answer: We can implement a Link list by using structure and pointers.


Question: Which data structure is used to implement Tree?

Answer: We can implement Tree by using Array and Linked List.


Question: Which data structure is used to implement the graph?

Answer: We can implement Graph by using adjacency matrix, adjacency list, and adjacency set.

 

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.