Chapter 4: Problem 8
Let \(T=\\{(i, j, k) \mid i, j, k \in \mathcal{N}\\} .\) Show that \(T\) is countable.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.
/*! 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 4: Problem 8
Let \(T=\\{(i, j, k) \mid i, j, k \in \mathcal{N}\\} .\) Show that \(T\) is countable.
These are the key concepts you need to understand to accurately answer the question.
All the tools & learning materials you need for study success - in one app.
Get started for free
The following procedure decides \(A M B I G_{\mathrm{NFA}}\). Given an NFA \(N\), we design a DFA \(D\) that simulates \(N\) and accepts a string iff it is accepted by \(N\) along two different computational branches. Then we use a decider for \(E_{\mathrm{DFA}}\) to determine whether \(D\) accepts any strings. Our strategy for constructing \(D\) is similar to the NFA-to-DFA conversion in the proof of Theorem 1.39. We simulate \(N\) by keeping a pebble on each active state. We begin by putting a red pebble on the start state and on each state reachable from the start state along e transitions. We move, add, and remove pebbles in accordance with \(N\) 's transitions, preserving the color of the pebbles. Whenever two or more pebbles are moved to the same state, we replace its pebbles with a blue pebble. After reading the input, we accept if a blue pebble is on an accept state of \(N\) or if two different accept states of \(N\) have red pebbles on them. The DFA \(D\) has a state corresponding to each possible position of pebbles. For each state of \(N\), three possibilities occur: It can contain a red pebble, a blue pebble, or no pebble. Thus, if \(N\) has \(n\) states, \(D\) will have \(3^{n}\) states. Its start state, accept states, and transition function are defined to carry out the simulation.
Let \(B A L_{\mathrm{DFA}}=\\{\langle M\rangle \mid M\) is a DFA that accepts some string containing an equal number of os and 1s \\}. Show that \(B A L_{\mathrm{DFA}}\) is decidable. (Hint: Theorems about CFLs are helpful here.)
Let \(A=\\{\langle R, S\rangle \mid R\) and \(S\) are regular expressions and \(L(R) \subseteq L(S)\\} .\) Show that \(A\) is decidable.
Let \(\mathcal{B}\) be the set of all infinite sequences over \(\\{0,1\\} .\) Show that \(\mathcal{B}\) is uncountable using a proof by diagonalization.
The proof of Lemma 2.41 says that \((q, x)\) is a looping situation for a DPDA \(P\) if when \(P\) is started in state \(q\) with \(x \in \Gamma\) on the top of the stack, it never pops anything below \(x\) and it never reads an input symbol. Show that \(F\) is decidable, where \(F=\\{\langle P, q, x\rangle \mid(q, x)\) is a looping situation for \(P\\}\).
What do you think about this solution?
We value your feedback to improve our textbook solutions.