Next -->

Each city and each connecting flight is encoded as a DNA fragment. Each city can be thought of as a pair of codes: a "landing runway" and a "takeoff runway." Each "runway" must have a distinct code. Note that the "LA to Detroit" flight complements the "takeoff runway" of LA and the "landing runway" of Detroit.