Data_Structure_OralQuestions
Data_Structure_OralQuestions
Which data structures are used for BFS and DFS of a graph?
Queue is used for BFS
Stack is used for DFS. DFS can also be implemented using
recursion (Note that recursion also uses function call stack).
C structures for
Stack
Queue
Linked List
Tree
Graph
Basic Definations
(Note: On the day of oral always ask students who given their oral, what are
the questions asked as some of the questions get repeated)