This is a script that just kind of grew over time. Having been out of college for a decade and a half, I thought it might be fun to go back and play with the old Traveling Salesman problem and see graphically what kinds of results various algorithms would produce. There was a lot of generic interface stuff that I had to do before I even got to the algorithms - buttons, drawing code, generation of random sample sets - but as a full-time kernel hacker I actually find that kind of stuff refreshing. The script may in fact be more interesting as an example of how to do certain things using Tkinter (the module which allows you to use Tk from Python) than as an exercise in computer science.

For the most part the various algorithms are described in the script itself, but here are some comments on the results I've found:

For the Additive algorithm only, the script also has Restart and Step capability so you can actually watch the path being built piece by piece. If anyone ever asks me, I might add this functionality to (some of) the other algorithms.

Well, that's all I can think of. Thank you for reading, and now...on with the show!