Prove that an oracle C exists for whichNPccoNPc .

Short Answer

Expert verified

The above problem can be solved using Oracle A which exists if and only if PANPAandLAPA , whereLA={w:|w|=|x| for somexA}

Step by step solution

01

Understanding what is known from the previously solved problem

We know that an oracle A exists such that PANPAand LAPAthen, for a given oracle A, LAmay be defined as:LA={w:|w|=|x| for somexA}

So, it is clear thatLA is in then it has to be proven thatLAcoNPA

For this, first of all A is constructed. Now considerM1,M2as a list of all nondeterministic polytime oracle TMs, instead of all deterministic polytime oracle TMs.

02

Constructing the solution

For stage ‘i’ , choose ‘n’ and run Miin input .

• If there does not exist any computation and if data-custom-editor="chemistry" Midoes not accept 1n,then Miis forced to make a mistake. It is performed because ‘A’ can be maintained permanently that contains no string of length ‘n ‘. Then,1nL¯A, but Midoes not accept.

• Therefore, there will be a string ‘x’ of length ‘n’ which the above computation does not query. It specifies that this string ‘x’ is in ‘A’ and no other string of length ‘n’ is in ‘A’.

MiStill has the same accepting computation on input 1nL¯A. Thus, makes a mistake in this case also.

So, from the above explanation, it can be concluded that an oracle C exists for which NPccoNPc.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

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

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

Read the informal definition of the finite state transducer given in Exercise 1.24. Give the state diagram of an FST with the following behaviour. Its input and output alphabets are 0,1 . Its output string is identical to the input string on the even positions but inverted on the odd positions. For example, on input 0000111 it should output 1010010 .

Question:Consider the algorithm MINIMIZE, which takes a DFA as input and outputs DFA .

MINIMIZE = “On input , where M=(Q,Σ,δ,q0,A) 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 aΣ :

6. Add the edge (q,r) to G if δq,a,δr,a is an edge of G .

7. For each state q,let[q] be the collection of statesq={rQ|noedge joins q and r in G }.

8.Form a new DFA M'=Q',Σ,δ',q'0,A'where

Q'={[q]|qQ}(ifq=r,onlyoneofthemisinQ'),δ'(q,a)=[δq,a]foreveryqQandaΣ,q00=[q0],andA0={[q]|qA}

9. Output ( M')”

a. Show that M and M' are equivalent.

b. Show that M0 is minimal—that 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.

Use the recursion theorem to give an alternative proof of Rice’s theorem in Problem 5.28.

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free