Stack / Queue provides similar effect with DFS as it controls the returning sequence of temporary output, but requires less memory space.
Description