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

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.