Dynamic programming
[4/75%]Show
LaTeX
Problem 7.4 from Sipser M. "Introduction to the Theory of Computation" [Sip13]More problems in Section 7.1 "Exercises"
Fill out the table described in the polynomial time algorithm for context-free language recognition from Theorem 7.16 for string baba and CFG :
?
Origin: Stated according to the original source
Problem 7.15 from Sipser M. "Introduction to the Theory of Computation" [Sip13]More problems in Section 7.2 "Problems"
Show that P is closed under the star operation. (Hint: Use dynamic programming. On input for , build a table indicating for each whether the substring for any .)
?
Origin: Stated according to the original source
Problem 7.17 from Sipser M. "Introduction to the Theory of Computation" [Sip13]More problems in Section 7.2 "Problems"
Let UNARY-SSUM be the subset sum problem in which all numbers are represented in unary. Why does the NP-completeness proof for SUBSET-SUM fail to show UNARY-SSUM is NP-complete? Show that UNARY-SSUM .
?
Origin: Stated according to the original source
Problem 7.45 from Sipser M. "Introduction to the Theory of Computation" [Sip13]More problems in Section 7.2 "Problems"
Modify the algorithm for context-free language recognition in the proof of Theorem 7.16 to give a polynomial time algorithm that produces a parse tree for a string, given the string and a CFG, if that grammar generates the string.
?
Origin: Stated according to the original source
References
[Sip13] Sipser M. Introduction to the Theory of Computation. 3rd ed., Cengage Learning, 2013.