Closure Properties of Decidable and Turing Recognizable Languages
Closure Properties of Decidable and Turing Recognizable Languages
Shashank Gupta
Associate Professor
Disruptive Technologies Lab
Department of Computer Science & Information Systems
Profile Web Page Link
Today’s Agenda
• Computing Power of DTM and NTM
• Closure Properties of Decidable and Turing recognizable languages
2
Configuration Path
Reject
• If all branches of the computation halt and reject (i.e., no branches accept but all
computations halt), then the NTM will reject
Loop
• Computation continues. Some branches in the computation history are infinite.
5
Equivalence of Deterministic and Nondeterministic TMs
Approach
• Simulate N.
• Simulate all branches of computation.
• Search for any way N can Accept.
6
Equivalence of Deterministic and Nondeterministic TMs
The class of languages accepted by deterministic TMs is the same as the class of
languages accepted by nondeterministic TMs.
• One direction is trivial since deterministic TMs are also nondeterministic TMs.
• To see the other direction, consider a NDTM N.
• We will give the rough sketch of the design of a deterministic TM M, such that L(M) = L(N).
Let x be an input. The machine M essentially does a breadth first search on the
configuration graph GN,x by traversing it in a level wise manner.
• M maintains a queue data structure which initially has a start configuration.
• In every iteration, M dequeues a configuration and enqueues all its children into the queue.
• If an accept configuration is encountered at any stage then them M halts and accepts.
• If the queue becomes empty (that is all configurations reachable from the start configuration are
traversed) then M halts and rejects.
CS F351 Theory of Computation
7
Closure Properties of Decidable and
Turing Recognizable Languages
Shashank Gupta
Associate Professor
Disruptive Technologies Lab
Department of Computer Science & Information Systems
Profile Web Page Link
Union for Decidable Languages
• Hence, L(M) = L1 ∩ L2
CS F351 Theory of Computation
13
Complement under Decidable Languages
• Hence L(M`) = L`
CS F351 Theory of Computation
14
Complement under Turing Recognizable Languages