I know DFS usually can be implemented using recursion function in which system stack is used.
And I know there is Non-recursive Depth-First Search (DFS) Using a Stack.
I wonder every recursion can be called as DFS, if not, is there any example?
I know DFS usually can be implemented using recursion function in which system stack is used.
And I know there is Non-recursive Depth-First Search (DFS) Using a Stack.
I wonder every recursion can be called as DFS, if not, is there any example?