We investigate the conversion of one-way nondeterministic finite automata and context-free grammars into Parikh equivalent oneway and two-way deterministic finite automata, from a descriptional complexity point of view. We prove that for each one-way nondeterministic automaton with n states there exist Parikh equivalent one-way and two-way deterministic automata with e √ n·lnn) and p(n) states,...