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

Show that if P=NP , you can factor integers in polynomial time. (See the note in Problem 7.38.)

Short Answer

Expert verified

It can identify that all of the factors in polynomial time since there are only Ok factors (the maximum number of factors that can occur when n is simply a product of 2s).

Step by step solution

01

Step-1: Polynomial Time

If the running time of an algorithm is upper constrained by a polynomial expression in the size of the method's input, the algorithm is said to be polynomial time.

02

Step-2: Range of the polynomial time

Let language is represented as:

L=n,a,b|nhasafactorpintherangeapbLis obviously in NP, because the factor can act as a certificate. Because it is assuming that P=NP, there's a polynomial method that determines the result. Using the method multiple times allows to divide search space.

"Is there a factor in the range a,a+b/2?"In this it can represent that there's a factor in the other range if there isn't one.If k is the number of bits in n, the total number of times apply the algorithm is logn, or Ok. As a result, it may isolate one factor with a polynomial number of executions of this technique.

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

Give a counter example to show that the following construction fails to prove that the class of context-free languages is closed under star. Let A be a CFL that is generated by the CFG G=(V,,R,S). Add the new ruleSSS and call the resulting grammar. This grammar is supposed to generate A*.

Show that EQTM'mEQTM'

Let F be the language of all strings over 0,1that do not contain a pair of 1s that are separated by an odd number of symbols. Give the state diagram of a DFA with five states that recognizes F . (You may find it helpful first to find a 4-state NFA for the complement of F).

Give a counterexample to show that the following construction fails to prove Theorem 1.49, the closure of the class of regular languages under the star operationLet N1=Q1,Σ,δ1,q1,F1 recognize . Construct N=Q1,Σ,δ,q1,F as follows. Nis supposed to recognize A*1.

a. The states of Nare the states of N1.

b. The start state ofN is the same as the start state ofN1 .

c. . F=q1F1.The accept states are the old accept states plus its start state.

d. Defineδso that for any and any aΣε, δq,a=(δ1q,aq6F1ora6=εδ1q,aq1qF1anda=ε

Rice’s theorem. Let P be any nontrivial property of the language of a Turing machine. Prove that the problem of determining whether a given Turing machine’s language has property P is undecidable. In more formal terms, let P be a language consisting of Turing machine descriptions where P fulfils two conditions. First, P is nontrivial—it contains some, but not all, TM descriptions. Second, P is a property of the TM’s language—whenever LM1=LM2, we haveM1P if and only iffM2P . Here, M1 and M2 are any TMs. Prove that P is an undecidable language.

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