









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Easy to implement
But, usually, no optimality
Executes quickly
Simple to design
Nearest Neighbour algorithm
Creating an empty solution S; S ={}; Randomly select ๐ S = S โช ๐ ; Repeat Next nearest element selected from the set E (๐๐)
Until Complete solution found
Random algorithm
Creating an empty solution S; S ={}; Randomly select ๐ S = S โช ๐ ; Repeat Next element is randomly selected from the set E (๐๐)
Until Complete solution found
Example: Nearest Neighbour Algorithm - TSP
A
C
B
E
D
Solution: A-C-E-B-D-A
Cost=1+2+3+4+5 Cost=
Example2: Random Algorithm
A C
B
E
D
Solution: A-C-E-D-B-A
Cost=1+10+23+3+
Cost=
Optimal Solution: A-C-D-B-E-A Cost=1+2+3+8+5 Cost=
A solution sโฒ in the neighborhood of s (sโฒ โ N( s )) is called a neighbor of s.
A neighbor is generated by the application of a move operator m that performs a small perturbation to the solution s.
When small changes are made in the representation (small effect on the solution, the neighborhood is said to have a strong locality.
Weak locality is characterized by a large effect on the solution when a small change is made in the representation.
Example: Move (Shift) neighborhood operator (VRP)
transfer one customer to the other route
Example: 2-opt star neighborhood operator (VRP)
randomly selects two routes from the current solution and swap the customers located at the end sections of selected routes