Haskell, Genetic Algorithm, Graph Theory, Programming.
into a list of bools, given a range. The rest of this just matches trails with trail numbers and concatenates their encodings. Decoding is a little more complex, mainly because we want to do some normalization that will come in handy down the road. A helper function first: clockwise :: Direction ->