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

Let CNFk= is a satisfiable cnf-formula where each variable appears in at most k places}.

a. Show thatCNF2?P .

b. Show thatCNF3isNP-complete.

Short Answer

Expert verified

It is clear thatϕis satisfiable if and only if ry(ϕ)is satisfiable. The ry is a reduced polynomial time in terms of the number of variable inϕ fromCW_3isNP- complete.

Step by step solution

01

Step 1:Chemical molecule of the equation

Now have to show that CMK2P-.

LetTybe the polynomial tine decider forCH2-

Tpcan be described as {TwS:

T3=on inputϕ=

02

Converting variable into polynomial

According to CNF rules,

Consider the first choose ofϕϕ. If it is of the from x, and there isxinϕ , reject

Solve CNF where c occurs in every choose, where negation of c does not appear-

Every time T1processes each variable and reaches either accept or reject Because of this the number ofϕ might decrease by 1 or Hence running time ofTp becomes polynomial tine in terms of the number of variables.

So,CH2P.

Thus,GW_3isNP- complete

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

Study anywhere. Anytime. Across all devices.

Sign-up for free