This video covers the computational geometry “minimum spanning tree” problem, and walks through the JavaScript code for a solution known as “prim’s algorithm.”

p5.js code:
Processing code:

Contact:

All JavaScript/p5.js videos:

Help us caption & translate this video!