Here the both directions of the if and only if the language follows the property of Turing machine or the grammar, language L or string must be passes from its machine called as Turing machine.
Firstly, if a language L is decidable, it can be decided by a deterministic Turing machine, and that is automatically a nondeterministic Turing machine.
Second, if a language L is decided by a nondeterministic Turing machine N, we modify the deterministic Turing machinethat was given in the proof of theorem as follows.
Move stage 4 to be stage 5. Add new stage 4: Reject if all branches of N’s non determinism have rejected. We argue that this new Turing machineis a decider for language L.
If N accepts its input,will eventually find an accepting branch and accept, too. If N rejects its input, all of its branches halt and reject because it is a decider.
Hence each of the branches has finitely many nodes, where each node represents one step of N’s computation along that branch.
Therefore,N ’s entire computation tree on this input is finite, by virtue of the theorem about trees given in the statement of the exercise. Consequently, will halt and reject when this entire tree has been explored.