If you’re interested in the Travelling Salesperson algorithm, you can for instance check out this thread of mine: