Chapter 0: Q55P (page 1)
Let G1 be the following grammar that we introduced in Example
2.45. Use the DK-test to show that G1is not a DFG.
Short Answer
Using the DK-test, it can be shown that G1is not a DFG.
Chapter 0: Q55P (page 1)
Let G1 be the following grammar that we introduced in Example
2.45. Use the DK-test to show that G1is not a DFG.
Using the DK-test, it can be shown that G1is not a DFG.
All the tools & learning materials you need for study success - in one app.
Get started for freeLet be defined as in Problem 6.10. Give a model of the sentence
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.
Let . Let B be the collection of strings that contain at least one 1 in their second half. In other words,
a. Give a PDA that recognizes B
b. Give a CFG that generates B .
Give an example of an undecidable language B, where .
Use the result of Problem 6.21 to give a function f that is computable with an oracle for ATM, where for each n,f(n) is an incompressible string of length n.
What do you think about this solution?
We value your feedback to improve our textbook solutions.