/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q24P Let CNFk =   is a satisfiable... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

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

a. Show thatCNF2?P .

b. Show thatCNF3 isNP-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 CMK2∈P-.

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 isx in ϕ , 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,CH2∈P.

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 91Ó°ÊÓ!

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 that the function K(x) is not a computable function.

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 ruleS→SS and call the resulting grammar. This grammar is supposed to generate A*.

Let. ∑={0,1}LetC1 be the language of all strings that contain a 1 in their middle third.

Let C2be the language of all strings that contain two 1s in their middle third. So C1={xyz|x,z∈∑*andy∈∑*1∑*,where|x|=|z|≥|y|}and C2={xyz|x,z∈∑*and y∈∑*1∑*1∑*, â¶ÄŠwhere |x|=|z|≥|y|}.

a.Show that C1is a CFL.

b. Show thatC2 is not a CFL

A Turing machine with left reset is similar to an ordinary Turing machine, but the transition function has the form

δ : Q × Γ−→Q × Γ × {R, RESET}.

If δ(q, a) = (r, b, RESET), when the machine is in state q reading an a, the machine’s head jumps to the left-hand end of the tape after it writes b on the tape and enters state r. Note that these machines do not have the usual ability to move the head one symbol left. Show that Turing machines with left reset recognize the class of Turing-recognizable languages.

Consider the undirected graph G=(V,E)whereV, the set of nodes, is{1,2,3,4}
andE, the set of edges, is{{1,2},{2,3},{1,3},{2,4},{1,4}}. Draw the graphG. What are the degrees of each node? Indicate a path from node 3 to node 4 on your drawing ofG.

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.