Overview
Euler tour traversal captures the order in which nodes are entered and left, which supports subtree queries, ancestor checks, and range-based tree processing.
Records entry and exit order while traversing a tree or graph.
Compact metadata for implementation and discovery.
Euler tour traversal captures the order in which nodes are entered and left, which supports subtree queries, ancestor checks, and range-based tree processing.
Quick facts
Runtime and memory behavior at a glance.
Best
O(V + E)
Average
O(V + E)
Worst
O(V + E)
Space
O(V)
entry[u] <= entry[v] and exit[v] <= exit[u]Checks whether u is an ancestor of v in a DFS tree.
Highlight active nodes, discovered edges, and the graph structure produced by each step.
Euler Tour should be used with the assumptions and tradeoffs of tree Traversal in mind.
What each reference supports for this entry.
Textbook support for Euler Tour's standard algorithm design, invariants, and complexity analysis.
Open sourceAlgorithm catalog support for Euler Tour's problem context, known alternatives, and practical selection tradeoffs.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Graph Traversal · Foundation
Euler-tour based tree traversals are commonly produced by depth-first traversal order.
Compare with thisGraph Traversal · Core
Fleury's Algorithm uses Euler Tour as a subroutine, representation, or supporting idea while walking unused edges while avoiding bridges unless no alternative remains.
Compare with thisOptimization · Extended
Chinese Postman solutions construct an Eulerian traversal after augmenting the graph.
Compare with thisEuler-tour based tree traversals are commonly produced by depth-first traversal order.