In the depth-first search (DFS), the stack data structure is made use of.
In the case of the breadth-first search (BFS) technique, queues are used.