Skip to main content

[알고리즘] 깊이우선탐색(DFS)에서 오른쪽노드를 왼쪽보다 먼저 가는 이유?

깊이우선탐색(DFS)에서 오른쪽노드를 왼쪽보다 먼저 가는 이유?

image.png

탐색순서는 주로 preorder 기본


출처: chatGPT