In this live stream, I attempt to create a solution to the Traveling Sales Person Coding Challenge ( with a genetic algorithm.

This video is also part of the second session of my ITP “Intelligence and Learning” course (spring 2017)

Edited videos from this live stream coming soon!

45:23 – Genetic Algorithm Improved Pool Selection
1:26:55 – Traveling Sales Person with Genetic Algorithm
2:00:57 – TSP with Genetic Algorithm with Crossover
2:32:15 – Recording Intros to Session 1 and Session 2
2:53:30 – Short Q&A/Conclusion

To support this channel:
Coding Train Merchandise:

Send me your questions and coding challenges!:

The Coding Train website:

Links discussed in this video:
The Nature of Code Part 2 (Spring 2017) – Intelligence and Learning:
Nature of Code:
Reading and Writing Electronic Text:
Allison Parrish’s Twitter:
Neural-Network-p5 repository:
Sarah Drasner’s Book on SVG Animations:
Evolutionary Mona Lisa:
GitHub Issue on Better GA Selection Pool:
GitHub Issue on GA: Random Pool Selection:
includes() on MDN:
ES6 Sets on MDN:
Session 1 Exercise Ideas:
Session 2 Exercise Ideas:
My Genetic Algorithm Playlist:
My Traveling Sales Person Coding Challenge:

Community’s variations of the Steering Evolution Coding Challenge:
Carla de Beer:
Miles Elvidge:

Source Code for the all Video Lessons:


For more Intelligence and Learning videos:
For an Introduction to Programming:
For my Nature of Code videos:
For More Live Streams:
For More Coding Challenges:

Help us caption & translate this video!