Why does the Eulerian Tour Algorithm actually work?

Revision en1, by desik, 2017-03-23 12:55:24

I actually understood the method done in Euler Tour algorithm but don't understand why it works? Here is the pseudo.

dfs (v): color[v] = gray for u in adj[v]: erase the edge v-u and dfs(u) color[v] = black push v at the end of e

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English desik 2017-03-23 13:07:46 66
en2 English desik 2017-03-23 12:56:23 47
en1 English desik 2017-03-23 12:55:24 336 Initial revision (published)