. Show that a language is decidable if and only if some enumerator prints the strings in the language in lexicographical order.
If A is decidable by some TMM, the enumerator operates by generating the strings in lexicographic order, testing each in turn for membership in A using M, and printing the string if it is in A.
If A is enumerable by some enumerator E in lexicographic order, we consider two cases. If A is finite, it is decidable because all finite languages are decidable (just hardwire each of the strings into the TM). If A is infinite, a TMM that decides A operates as follows. On receiving input w, M runs E to enumerate all strings in A in lexicographic order until some string lexicographically after w appears. This must occur eventually because A is infinite. If w has appeared in the enumeration already, then accept; else reject.
Note: It is necessary to consider the case where A is finite separately because the enumerator may loop without producing additional output when it is enumerating a finite language. As a result, we end up showing that the language is decidable without using the enumerator for the language to construct a decider. This is a subtle, but essential point
. Show that a language is decidable if and only if some enumerator prints the strings...
9. (1 point) Alice claims that a language is decidable if there exists some non-deterministic TM that decides it. Bob claims that a language is decidable if there exists some deterministic TM that decides it. Whose claim is correct? A. Both Alice's and Bob's. B. Only Alice's. C. Only Bob's. D. Neither Alice's nor Bob's. 10. (1 point) Which of the following is true? A. If an enumerator enumerates a language L, then L is decidable. B. If a language...
Prove that a language A is decidable if and only if it is finite or there is a computable function f : N → {0,1)' such that range(f) = A and each f(n) comes strictly before f(n + 1) in the standard enumeration of 10, 1*.
Show that the following language is decidable. L={〈A〉 | A is a DFA that recognizes Σ∗ } M =“On input 〈A〉 where A is a DFA:
9.) [30 points] Prove that, if a language L is decidable, then L can be enumerated in canonical order by some machine.
determine if the language is regular, context-free, Turing-decidable, or undecidable. For languages that are regular, give a DFA that accepts the language, a regular expression that generates the language, and a maximal list of strings that arc pairwise distinguishable with respect to the language. For languages that are context-free but not regular, prove that the language is not regular and either give a context- free grammar that generates the language or a pushdown automaton that accepts the language. You need...
determine if the language is regular, context-free, Turing-decidable, or undecidable. For languages that are regular, give a DFA that accepts the language, a regular expression that generates the language, and a maximal list of strings that are pairwise distinguishable with respect to the language. For languages that are context-free but not regular, prove that the language is not regular and either give a context- free grammar that generates the language or a pushdown automaton that accepts the language. You need...
Let INFINITE PDA ={<M>|M is a PDA and L(M) is an infinite language} Show that INFINITE PDA is decidable.
Only 5-9 please 1. (10 points) True/False. Briefly justify your answer for each statement. 1) Any subset of a decidable set is decidable 2) Any subset of a regular language is decidable 3) Any regular language is decidable 4) Any decidable set is context-free 5) There is a recognizable but not decidable language 6) Recognizable sets are closed under complement. 7) Decidable sets are closed under complement. 8) Recognizable sets are closed under union 9) Decidable sets are closed under...
EXP is the class of languages decidable in exponential time (i.e. in 2" steps for some k) Much like the relationship between P and time can be decided in exponential time (i.e., NP EXP), but it is an open question if all problems decidable in exponential time are verifiable in polynomial time (i.e., EXP NP), though this is not expected to be true. Formally, the EXP class can be defined similarly to how we define P: NP, all languages that...
Construct a deterministic finite automaton accepting all and only strings in the language represented by the following regular expression: ((aa ∪ bb)c)*