Home > Operation Research calculators > Travelling salesman problem using nearest neighbor method example

5. Travelling salesman problem using nearest neighbor method example ( Enter your problem )
  1. Example-1
  2. Example-2
Other related methods
  1. Assignment problem using Hungarian method
  2. Travelling salesman problem using Hungarian method
  3. Travelling salesman branch and bound (penalty) method
  4. Travelling salesman branch and bound method
  5. Travelling salesman nearest neighbor method
  6. Travelling salesman diagonal completion method
  7. Crew assignment problem

1. Example-1
(Previous example)
6. Travelling salesman diagonal completion method
(Next method)

2. Example-2





Find Solution of Travelling salesman problem using nearest neighbor method
Work\JobABCDE
Ax2571
B6x382
C87x47
D1246x5
E1328x


Solution:
The number of rows = 5 and columns = 5
   `A`  `B`  `C`  `D`  `E`    
 `A` M2571
 `B` 6M382
 `C` 87M47
 `D` 1246M5
 `E` 1328M
   



1. If we start from A, then path is
`A->E=1,``E->C=2,``C->D=4,``D->B=4,``B->A=6`

and total distance = 17


2. If we start from B, then path is
`B->E=2,``E->A=1,``A->C=5,``C->D=4,``D->B=4`

and total distance = 16


3. If we start from C, then path is
`C->D=4,``D->B=4,``B->E=2,``E->A=1,``A->C=5`

and total distance = 16


4. If we start from D, then path is
`D->B=4,``B->E=2,``E->A=1,``A->C=5,``C->D=4`

and total distance = 16


5. If we start from E, then path is
`E->A=1,``A->B=2,``B->C=3,``C->D=4,``D->E=5`

and total distance = 15


This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here



1. Example-1
(Previous example)
6. Travelling salesman diagonal completion method
(Next method)





Share this solution or page with your friends.


 
Copyright © 2023. All rights reserved. Terms, Privacy
 
 

.