Question

(complexity) prove: if P=NP, then there's an algorithm with a polynomial running time for the fol...

(complexity) prove: if P=NP, then there's an algorithm with a polynomial running time for the following problem:

input: a boolean formula φ
output: a satisfying assignment of φ if φ satisfiable. if φ not satisfiable, a "no" will be returned.

explanation: the algorithm accepts φ as an input (boolean formula). if φ doesn't have a satisfiable assignment, a "no" is returned. if φ does have a satisfiable assignment, one of the satisfying assignment is returned,. so we assign 0 or 1 to the variables of φ so that the value of φ in the assignment is 1.

b) using a), show that : if NP⊆BPP, then NP=RP.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Suppose consider the problem gven in (a) 1s SAT oblern ou suppose, SAT є BPP Using the boocting aiqument, uue can assume -thaTs not satis fiable, Hhere uwî ot be no Seing o the variables that w saris alqorithm vosil reject- J ,,осе ф ß satisfiable-h

Add a comment
Know the answer?
Add Answer to:
(complexity) prove: if P=NP, then there's an algorithm with a polynomial running time for the fol...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Assume that N=NP . Give a polynomial-time algorithm for finding a satisfying assignment for a boolean...

    Assume that N=NP . Give a polynomial-time algorithm for finding a satisfying assignment for a boolean formula φ, if one exists.

  • package _solution; /** This program demonstrates how numeric types and operators behave in Java Do Task...

    package _solution; /** This program demonstrates how numeric types and operators behave in Java Do Task #1 before adding Task#2 where indicated. */ public class NumericTypesOriginal { public static void main (String [] args) { //TASK #2 Create a Scanner object here //identifier declarations final int NUMBER = 2 ; // number of scores int score1 = 100; // first test score int score2 = 95; // second test score final int BOILING_IN_F = 212; // boiling temperature double fToC;...

  • You are running a physics experiment with n complicated steps that you must do in order,...

    You are running a physics experiment with n complicated steps that you must do in order, and students sign-up for some steps to help. Your experiment requires n steps, and each of the m students gives you a list of which steps they can help out with (steps require special skills). From experience, you know things run most smoothly when you have as little switching of shifts as possible. For example, if your experiment has <1, 2, 3, 4, 5,...

  • For this c++ assignment, Overview write a program that will process two sets of numeric information....

    For this c++ assignment, Overview write a program that will process two sets of numeric information. The information will be needed for later processing, so it will be stored in two arrays that will be displayed, sorted, and displayed (again). One set of numeric information will be read from a file while the other will be randomly generated. The arrays that will be used in the assignment should be declared to hold a maximum of 50 double or float elements....

  • Can you please help me with creating this Java Code using the following pseudocode? Make Change C...

    Can you please help me with creating this Java Code using the following pseudocode? Make Change Calculator (100 points + 5 ex.cr.)                                                                                                                                  2019 In this program (closely related to the change calculator done as the prior assignment) you will make “change for a dollar” using the most efficient set of coins possible. In Part A you will give the fewest quarters, dimes, nickels, and pennies possible (i.e., without regard to any ‘limits’ on coin counts), but in Part B you...

  • Program 7 Arrays: building and sorting (100 points) Due: Friday, October 30 by 11:59 PM Overview...

    Program 7 Arrays: building and sorting (100 points) Due: Friday, October 30 by 11:59 PM Overview For this assignment, write a program that will calculate the quiz average for a student in the CSCI 240 course. The student's quiz information will be needed for later processing, so it will be stored in an array. For the assignment, declare one array that will hold a maximum of 12 integer elements (ie. the quiz scores). It is recommended that this program be...

  • Code is in C# Your instructor would like to thank to Marty Stepp and Hélène Martin...

    Code is in C# Your instructor would like to thank to Marty Stepp and Hélène Martin at the University of Washington, Seattle, who originally wrote this assignment (for their CSE 142, in Java) This program focuses on classes and objects. Turn in two files named Birthday.cs and Date.cs. You will also need the support file Date.dll; it is contained in the starter project for this assignment. The assignment has two parts: a client program that uses Date objects, and a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT