Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Q20P

Page 1

We generally believe that PATH is not NP-complete. Explain the reason behind this belief. Show that proving PATH is not NP-complete would prove P ≠ NP

Q20P

Page 1

Prove that an oracle C exists for whichNPccoNPc .

Q20P

Page 1

Prove that there exists an undecidable subset of 1*.

Q21E

Page 1

Use the procedure described in Lemma 1.60to convert the following finite automata to regular expressions.

Q21P

Page 1

Let P=a,b.Give a CFG generating the language of strings with twice as manya'sasb's . Prove that your grammar is correct.

Q21P

Page 1

Let AMBIGCFG=<G>|GisanambiguousCFG. Show that AMBIGCFG is undecidable. (Hint: Use a reduction from PCP. Given an instance

P=t1b1,t2b2,,tkbk

of the Post Correspondence Problem, construct a CFG Gwith the rules

ST|B

Tt1Ta1|.....|tkTak|t1a1|....|tkak

Bb1B|...|b1Bak|...|bkak

where a1,...,ak are new terminal symbols. Prove that this reduction works.)

Q21P

Page 1

A k-query oracle Turing machine is an oracle permitted to make at most k queries on each input. A k-query oracle Turing machine ‘M’ with an oracle for A is writtenMA,k . Define PA,kto be the collection of languages that are decidable by polynomial time k-query oracle Turing machines with an oracle for ‘A’.

  1. Show thatNPcoNPPSAT,1
  2. Assume that . Show thatNPcoNPPSAT,1 .

Q21P

Page 1

Show how to compute the descriptive complexity of strings K(x) with an oracle for ATM.

Q22E

Page 1

In certain programming languages, comments appear between delimiters such as #and #/. Let Cbe the language of all valid delimited comment strings. A member of Cmust begin with #/and end with #/but have no intervening #/. For simplicity, assume that the alphabet for Cis ={a,b,/,#}.

a. Give aDFA that recognizes C.

b. Give a regular expression that generates C.

Q22P

Page 1

Let C={x#y|x,y{0,1}*andxy}.Show thatC is a context-free language.

Access millions of textbook solutions in one place

  • Access over 3 million high quality textbook solutions
  • Access our popular flashcard, quiz, mock-exam and notes features
  • Access our smart AI features to upgrade your learning
Get Vaia Premium now
Access millions of textbook solutions in one place

Recommended explanations on Computer Science Textbooks