Skip to main content
100%

Travelling salesperson with t-SNE (in 1 dimension and on a world map)

✓ Published0🌍 Public
PPhilippe Rivière
Last edited Feb 18, 2018
Created on Feb 22, 2017

A world map rendered with d3-geo-projection’s Bertin projection shows cities as colored circles by population and country. A t-SNE algorithm (tsne.js) runs in a Web Worker, reducing the geographic coordinates to a single dimension. The resulting order sorts cities along a line, and d3.geoPath draws links between consecutive cities in that order, revealing a rough approximation of the travelling salesperson problem. The total great-circle distance of the route is displayed and updated live as the optimization iterates.

AI-generated description

tSNE in 1D is supposed to give interesting results, maybe an approximate solution to the travelling salesman's problem

trying to reproduce http://gis.stackexchange.com/questions/15528/one-dimensional-map-of-the-world/15567#15567

See also the USA version.

mit Licensed

Similar vizzes