Chapter 0: Q23P (page 1)
Show that the function K(x) is not a computable function.
Short Answer
The given statement is proved.
Chapter 0: Q23P (page 1)
Show that the function K(x) is not a computable function.
The given statement is proved.
All the tools & learning materials you need for study success - in one app.
Get started for freeA queue automaton is like a push-down automaton except that the stack is replaced by a queue. A queue is a tape allowing symbols to be written only on the left-hand end and read only at the right-hand end. Each write operation (we’ll call it a push) adds a symbol to the left-hand end of the queue and each read operation (we’ll call it a pull) reads and removes a symbol at the right-hand end. As with a PDA, the input is placed on a separate read-only input tape, and the head on the input tape can move only from left to right. The input tape contains a cell with a blank symbol following the input, so that the end of the input can be detected. A queue automaton accepts its input by entering a special accept state at any time. Show that a language can be recognized by a deterministic queue automaton iff the language is Turing-recognizable.
Consider the problem of determining whether a Turing machine M on an input w ever attempts to move its head left when its head is on the left-most tape cell. Formulate this problem as a language and show that it is undecidable.
Let be strings and let L be any language. We say that x and y are distinguishable by L if some string Z exists whereby exactly one of the strings is a member of L ; otherwise, for every string z , we have whenever and we say that are indistinguishable by L. If are indistinguishable by L, we write x ≡L y. Show thatis an equivalence relation.
Let. Let be the language of all strings that contain a 1 in their middle third.
Let be the language of all strings that contain two 1s in their middle third. So and .
a.Show that is a CFL.
b. Show that is not a CFL
Give a counter example to show that the following construction fails to prove that the class of context-free languages is closed under star. Let A be a CFL that is generated by the CFG . Add the new rule and call the resulting grammar. This grammar is supposed to generate A* .
What do you think about this solution?
We value your feedback to improve our textbook solutions.