Chapter 4: Decidability
Q25P
is a DFA that accepts some string containing an equal number of 0s and 1s}. Show that is decidable.
Q28P
Let Show that is decidable.
Q32P
The proof of Lemma 2.41 says that is a looping situation for a DPDA if when is started in state q with on the top of the stack, it never pops anything below and it never reads an input symbol. Show that is decidable, where
Q3E
Let . Show thatis decidable.
Q4E
Let . Show thatis decidable.
Q5E
Let .Show that , the complement of , is Turing-recognizable.
Q6E
Let X be the set {1, 2, 3, 4, 5} and Y be the set {6, 7, 8, 9, 10}. We describe the functions

Answer each part and give a reason for each negative answer.
a. Is f one-to-one?
b. Is f onto?
c. Is f a correspondence?
d. Is g one-to-one?
e. Is g onto?
f. Is g a correspondence?