I wanted to find all the line numbers of subway.bas, quick and easy, but some had multiple occurrences in the data.
So, I turned to #metaheuristic methods! I wrote a quick & dirty genetic algorithm to search for sequences of indexes of possible line numbers, where all(d>c for c,d in zip(e,e[1:]))
In only several dozen generations of a population of 10k, not much time at all, it found a solution.🕶️ Maybe.😬 With minimal thinking! xD #compsci