I have this list of formalisms and i need to order them according to their expressive power, also one of them doesn't really belong.
Context-free Grammar(CFG)
Deterministic Finite Automata(DFA)
Deterministic Pushdown Automata(DPDA)
LR(0) Grammar
LR(1) Grammar
Nondeterministic Finite Automata(NFA)
Nondeterministic Finite Automata with epsilon transitions(NFAe)
Nondeterministic Turing MAchines(NTM)
Pushdown Automata(PDA)
Regular expressions(reg.exp)
Turing Machines(TM)
Turing MAchines with twi heads(TM2h)
I have ordered them in the following way:
1. NFAe, NFA, DFA, reg.exp
2. DPDA
3. PDA, CFG
4. TM, TM2h, NTM
where those in 4 are the most powerful. and i removed LR grammars, becuase they are just a way of writing CFG's so that they can be parsed by an LR-parser.
However im not sure if this is correct or not.