Research Article

Developing Programming Tools to Handle Traveling Salesman Problem by the Three Object-Oriented Languages

Algorithm 5

Pseudocodes for GSX-0.
1  Node X    select random node;
2  Copy X to child;
3  Node R    X;
4  Node L    X;
5  while(true)
6  {
7  R    right neighbor of R in father tour;
8  L    left neighbor of L in mother tour;
9  if R is in child then break while loop;
10if L is in child then break while loop;
11Add node R to child right side;
12Add node L to child left side;
13}
14Complete child by remaining nodes (nodes havent been copied to child tour yet) in random;
15return child;