Chapter 0: Q13P (page 1)
Let are positive binary integers such that
Show that . (Note that the most obvious algorithm doesn’t run in polynomial time. Hint: Try it first where b is a power of .)
Short Answer
The solution is,
/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
Learning Materials
Features
Discover
Chapter 0: Q13P (page 1)
Let are positive binary integers such that
Show that . (Note that the most obvious algorithm doesn’t run in polynomial time. Hint: Try it first where b is a power of .)
The solution is,
All the tools & learning materials you need for study success - in one app.
Get started for free
A Turing machine with left reset is similar to an ordinary Turing machine, but the transition function has the form
δ : Q × Γ−→Q × Γ × {R, RESET}.
If δ(q, a) = (r, b, RESET), when the machine is in state q reading an a, the machine’s head jumps to the left-hand end of the tape after it writes b on the tape and enters state r. Note that these machines do not have the usual ability to move the head one symbol left. Show that Turing machines with left reset recognize the class of Turing-recognizable languages.
A 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.
a). Let C be a context-free language and R be a regular language. Prove that the languageis context free.
b). Let A= { contains equal numbers of }. Use part to show that A is not a CFL
Write formal descriptions of the following sets.
Question: Answer each part TRUE or FALSE.
What do you think about this solution?
We value your feedback to improve our textbook solutions.