Chapter 0: Q13P (page 1)
Let are positive binary integers such that
Show that . (Note that the most obvious algorithm doesn鈥檛 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鈥檛 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
Show that the Post Correspondence Problem is undecidable over the binary alphabet..
Question: Let B be the set of all infinite sequences over {0 , 1}. Show that B is uncountable using a proof by diagonalization.
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 鈥檚 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.
Question:Consider the algorithm MINIMIZE, which takes a DFA as input and outputs DFA .
MINIMIZE = 鈥淥n input , where is a DFA:
1.Remove all states of G that are unreachable from the start state.
2. Construct the following undirected graph G whose nodes are the states of .
3. Place an edge in G connecting every accept state with every non accept state. Add additional edges as follows.
4. Repeat until no new edges are added to G :
5. For every pair of distinct states q and r of and every :
6. Add the edge (q,r) to G if is an edge of G .
7. For each state be the collection of edge joins q and r in G }.
8.Form a new DFA where
9. Output ( M')鈥
a. Show that M and M' are equivalent.
b. Show that M0 is minimal鈥攖hat is, no DFA with fewer states recognizes the same language. You may use the result of Problem 1.52 without proof.
c. Show that MINIMIZE operates in polynomial time.
Let Give a CFG generating the language of strings with twice as many . Prove that your grammar is correct.
What do you think about this solution?
We value your feedback to improve our textbook solutions.