Probabilistic finite automata