0
$\begingroup$

For an NFA, can we always find a RAM, which recognises the same language?

$\endgroup$
  • 2
    $\begingroup$ What does "RAM" mean here? RAM-model Turing machine? That would make the question very trivial... $\endgroup$ – Aaron Rotenberg Aug 9 at 22:56
2
$\begingroup$

If RAM is a Random Access Machine (i.e., a rudimentary computer with registers, memory and assorted instructions), the answer is just "build a DFA that recognizes the same language, simulate that DFA in code". I.e., have a transition table that tells you the next state for each combination of state and input symbol; start in the start state, check if the state after consuming all input is final.

More abstractly: RAM is equivalent in computing power to a Turing machine. As regular languages are decidable, they can be decided by a (deterministic) Turing machine or a RAM.

| cite | improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.