EXAMPLE 4 Applying the Nearest-Neighbor Algorithm Revisited
Figure 2.10 again illustrates the ease of applying the nearest-neighbor algorithm, this time to a weighted complete graph with five vertices. Starting at vertex A, we get the tour ADECBA (cost 2800) (Figure 2.10a). Note that the nearest-neighbor algorithm starting at vertex B yields the tour BCADEB (cost 3050) (Figure 2.10b).
49