깊이 우선 그래프 검색 트리의 백 에지 (Back Edges in a depth first graph search tree)


문제 설명

깊이 우선 그래프 검색 트리의 백 에지 (Back Edges in a depth first graph search tree)

I have a homework assignment that I've completed, and about 3 points out of 100 are for the following question. 

  

"Suppose you construct a DFS tree on a directed graph. Afterwards you   notice that there        aren't any back edges. What does this say   about the graph?"

I've given this some thought and all I can reason is that this means there is implied dependency such that only one specific path exists to topologically traverse through the graph. Unfortunately I have not been able to find any information about this anywhere on the web, so I thought I'd post my answer here and see if anyone could weigh in on its (in)correctness. Please let me know if you have any additional thoughts or pointers that might help me out with this problem.

Thanks a bunch!


참조 솔루션

방법 1:

Perhaps there is a more nuanced answer, but my immediate thought is that it implies there are no cycles in the graph.

방법 2:

In any directed graph, if DFS does not report back edges, then the graph does not have cycles.

(by MS‑DDOSazelmaBrogrammer)

참조 문서

  1. Back Edges in a depth first graph search tree (CC BY‑SA 3.0/4.0)

#depth-first-search #directed-graph #graph-traversal #graph #search-tree






관련 질문

깊이 우선 탐색 트리 에지 분류 (Depth first search tree edge classification)

무방향 그래프에서 노드에 대한 최단 경로 찾기 (Finding the shortest path to a node in an undirected graph)

깊이 우선 탐색 가능한 노드 (Depth First Search Possible Nodes)

깊이 우선 검색을 사용하여 트리에서 노드 찾기 (Finding a node in a tree using Depth First Search)

행렬에서 섬을 찾기 위해 DFS 구현 문제 (Problem implementing DFS to find islands in a matrix)

Python에서 재귀 DFS를 효율적으로 구현하는 방법은 무엇입니까? (How to implement recursive DFS in Python efficiently?)

bfs/dfs의 모든 노드를 방문하는 경로를 추적하는 방법 (How to trace the path that visits all nodes in bfs/dfs)

그래프에서 주기를 감지하기 위한 시간 복잡도 (Time complexity for detecting a cycle in a graph)

트리에서 두 노드 사이의 경로를 찾는 방법은 무엇입니까? (How to find the path between 2 nodes in a tree?)

BFS 순회는 완전한 무방향 그래프에서 DFS와 동일합니까? (Is BFS traversal the same as DFS in a Complete Undirected Graph?)

C++에서 깊이 우선 검색 알고리즘을 구현하려고 할 때 읽기 액세스 위반 (read access violation when I tried to implement Depth First Search algorithm in c++)

코스 일정 - 토폴로지 정렬 (Course schedule - Topological sort)







코멘트