Coding Challenge #35.5: TSP with Genetic Algorithm and Crossover

This is Part 5 of the Traveling Salesperson Coding Challenge. In this video, I add a “crossover” algorithm to the Genetic Algorithm.

Part 1:
Part 2:
Part 3:
Part 4:
Part 5:

Support this channel on Patreon:
To buy Coding Train merchandise:

Send me your questions and coding challenges!:

The Coding Train website:

This video is part of Session 2 of the ITP “Intelligence and Learning” course (

Links discussed in this video:
The Nature of Code Part 2 (Spring 2017) – Intelligence and Learning:
Nature of Code:
My Genetic Algorithm playlist:
My Video on Improved Pool Selection:
includes() on MDN:
ES6 Sets on MDN:

Source Code for the all Video Lessons:


For More Coding Challenges:
For an Intro to Programming using p5.js:

Help us caption & translate this video!



Do NOT follow this link or you will be banned from the site!