In computational complexity theory, we study mostly decision problems (e.g., determine if a Boolean formula has a satisfying assignment), instead of the search problems that are typically what practicing computer scientists really want to solve (e.g., determine if a Boolean formula has a satisfying assignment, and then output the assignment). It is natural to wonder whether we are studying the wrong thing. In this exercise, you will show that the difficulty of decision problems is in fact linked closely to that of search problems. Show that if P = NP, then every NP search problem can be solved in polynomial time. In other words, for each language A ∈ NP, with a polynomial-time verifier algorithm VA taking inputs x, w, where x ∈ A ⇐⇒ (∃w) VA(x, w) accepts, then there is a polynomial-time algorithm S that, on input x, does the following. If x ̸∈ A, then S(x) outputs “no”. If x ∈ A, then S(x) outputs w such that VA(x, w) accepts. Hint: Build up the witness w bit by bit, by asking NP questions about the next bit, which are answerable in polynomial time if P = NP. These NP questions may not exactly correspond to A itself, but a related NP problem can be defined.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

In computational complexity theory, we study mostly decision problems (e.g., determine if a
Boolean formula has a satisfying assignment), instead of the search problems that are typically
what practicing computer scientists really want to solve (e.g., determine if a Boolean formula has
a satisfying assignment, and then output the assignment). It is natural to wonder whether we are
studying the wrong thing. In this exercise, you will show that the difficulty of decision problems is
in fact linked closely to that of search problems.
Show that if P = NP, then every NP search problem can be solved in polynomial time. In other
words, for each language A ∈ NP, with a polynomial-time verifier algorithm VA taking inputs x, w,
where x ∈ A ⇐⇒ (∃w) VA(x, w) accepts, then there is a polynomial-time algorithm S that, on
input x, does the following. If x ̸∈ A, then S(x) outputs “no”. If x ∈ A, then S(x) outputs w such
that VA(x, w) accepts.
Hint: Build up the witness w bit by bit, by asking NP questions about the next bit, which are
answerable in polynomial time if P = NP. These NP questions may not exactly correspond to A
itself, but a related NP problem can be defined.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Computational Systems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education