Deterministic Finite Automata, Nondeterministic Finite Automata and regular expressionsStreaming Algorithms