I am attempting to solve Traveling Salesman problem and I dont understand step 3. What is that "preorder walk"? I recall there was such a thing as preorder walk over trees but Kruskals algorithm which I picked produces a directed graph, not a tree.
https://www.geeksforgeeks.org/travelling-salesman-problem-set-2-approximate-using-mst/
Algorithm:
- Let 1 be the starting and ending point for salesman.
- Construct MST from with 1 as root using Prim’s Algorithm.
- List vertices visited in preorder walk of the constructed MST and add 1 at the end.