Exercises
[12/100%]Answer each part TRUE or FALSE.
.
.
ᴬ .
ᴬ .
.
.
Answer each part TRUE or FALSE.
.
.
ᴬ .
ᴬ .
.
.
Which of the following pairs of numbers are relatively prime? Show the calculations that led to your conclusions.
1274 and 10505
7289 and 8029
Fill out the table described in the polynomial time algorithm for context-free language recognition from Theorem 7.16 for string baba and CFG :
Is the following formula satisfiable?
Show that P is closed under union, concatenation, and complement.
Show that NP is closed under union and concatenation.
Let . Analyze the algorithm given on page 185 to show that this language is in P.
A triangle in an undirected graph is a 3-clique. Show that TRIANGLE , where TRIANGLE .
Show that is in P.
In both parts, provide an analysis of the time complexity of your algorithm.
Show that .
Say that a language is star-closed if . Give a polynomial time algorithm to test whether a DFA recognizes a star-closed language. (Note that is not known to be in P.)
Call graphs and isomorphic if the nodes of may be reordered so that it is identical to . Let . Show that .