JAVA · nearest neighbor · sqlite · tsp

TSP + Nearest Neighbor + SQLite DB + JAVA

00:10 import into Eclipse the downloaded zip file for ‘TSP Nearest Neighbor w/ JAVA Project’
00:25 create a new project and copy code from imported project
01:03 add and setup the sqlite jdbc jar file to the project
01:35 create a new package that will contain all 3 drivers for DB, File, & Hardcoded data
01:53 quickly refactor the code
02:40 code CreateDB01 class to create the database and create and populate the city table
04:00 code the ‘data from database’ DBDriver class
04:54 test run the ‘data from database’ DBDriver
06:00 create file containing cities and their latitudes and longitudes
06:50 code the ‘data from file’ FileDriver class
07:30 test run the ‘data from file’ FileDriver
08:07 test run the hardcoded data Driver

Website + download source code @ or

JAVA · nearest neighbor · traveling salesman problem

Traveling Salesman Problem (TSP) By Nearest Neighbor – JAVA 8 Tutorial

Website + download source code @