I'm trying to understand the algorithm described here, but the explanation really isn't very clear:
'tour' is a stack
find_tour(u):
for each edge e=(u,v) in E:
remove e from E
find_tour(v)
prepend u to tour
to find the tour, clear stack 'tour' and call find_tour(u),
where u is any vertex with a non-zero degree.
What does it mean to 'prepend' u
to a stack? How are the elements in tour
even used in find_tour
? Would be glad if someone could explain it to me, thanks!