This document describes a genetic algorithm for finding the shortest path or tour in the traveling salesman problem (TSP). It introduces genetic algorithms and describes how they are applied to the TSP. The fitness measure calculates the total distance of a tour. Selection uses steady-state selection and crossover uses partially mapped crossover. Mutation uses swap mutation. The overall procedure initializes a population randomly, evaluates fitness, performs crossover and mutation, selects the next generation, and iterates until stopping criteria is met, outputting the best solution found. Experimental results on problem sizes of 10, 20, and 30 cities show the best and average tours found.