I'm trying to learn about the Euler Tour algorithm and why it's popular for tree traversal. However, I'm failing to see the difference between a Euler Tour and a Pre-order traversal of a tree.
Let's say you have the tree:
A
/ \
B E
/ \ \
C D F
If you performed the euler tour algorithm, it would be:
A -> B -> C -> B -> D -> B -> A -> E -> F -> E -> A
But what's the purpose of this? It just seems like the exact same version of recursive pre-order:
A -> B -> C -> D -> E -> F
Obviously, in Euler Tour, you have each node value at least twice in the path, but that's only due to the recursive nature of the algorithm when you program it. If you wanted, you could do the same calculations you were doing with Euler Tour... with Pre-order, right?
If somebody could help explain Euler Tour and why it's used over other traversals, that'd be very much appreciated. Thanks.