The main application of this is for crossover in genetic algorithms when a genotype with non-repeating gene sequences is needed such as for the travelling salesman problem.
These scenes are interspersed with vignettes of life the 1940s including a travelling salesman, a country wedding and soldiers in a pub, all linked to the train journey.