In this post we’ll take closer look at the Python implementation of algorithm for constructing finite-state automata from unsorted set of words.