Chapter 0: Q1E (page 1)
Question: Answer each part TRUE or FALSE.
Short Answer
(a) is True.
(b)isFalse.
(c)isFalse.
(d)isTrue.
(e)isFalse.
(f) is True.
/*! 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: Q1E (page 1)
Question: Answer each part TRUE or FALSE.
(a) is True.
(b)isFalse.
(c)isFalse.
(d)isTrue.
(e)isFalse.
(f) is True.
All the tools & learning materials you need for study success - in one app.
Get started for free
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* .
Give state diagrams of NFAs with the specified number of states recognizing each of the following languages. In all parts, the alphabet is .
a. The languagewith three states
b.The language of Exercise 1.6c with five states
c.The language of Exercise 1.6l with six states
d. The language with two states
e. The language with three states
f. The language with three states
g. The languagewith one state
h. The language with one state
Question: Let B be the set of all infinite sequences over {0 , 1}. Show that B is uncountable using a proof by diagonalization.
Use the construction in the proof of Theorem 1.45 to give the state diagrams of NFAs recognizing the union of the languages described in
a. Exercises 1.6a and 1.6b.
b. Exercises 1.6c and 1.6f
This problem is inspired by the single-player game Minesweeper, generalized to an arbitrary graph. Let be an undirected graph, where each node either contains a single, hidden mine or is empty. The player chooses nodes, one by one. If the player chooses a node containing a mine, the player loses. If the player chooses an empty node, the player learns the number of neighboring nodes containing mines. (A neighboring node is one connected to the chosen node by an edge.) The player wins if and when all empty nodes have been so chosen.
In the mine consistency problem, you are given a graph along with numbers labeling some of ’s nodes. You must determine whether a placement of mines on the remaining nodes is possible, so that any node v that is labeled m has exactly m neighboring nodes containing mines. Formulate this problem as a language and show that it is.
What do you think about this solution?
We value your feedback to improve our textbook solutions.