Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 14 MCQsMore on Intractable Problems
ECAP538 ·
60 questions. Pick an option to check it.
Question 1 of 60 · Examples of NP-hard problems · Easy
Which optimization problem is a well-known example of an NP-hard problem?
Not quite. Try another option.
Answer: Traveling Salesperson optimization problem
Finding the shortest possible tour in the Traveling Salesperson Problem is NP-hard.
Question 2 of 60 · Examples of NP-hard problems · Easy
What does it mean for a problem to be NP-hard?
Not quite. Try another option.
Answer: It is at least as hard as every problem in NP
An NP-hard problem is at least as difficult as every problem in NP under polynomial-time reductions.
Question 3 of 60 · Examples of NP-hard problems · Easy
Which statement about NP-hard problems is correct?
Not quite. Try another option.
Answer: They need not be decision problems
NP-hard problems may be decision, optimization, or even undecidable problems.
Question 4 of 60 · Examples of NP-hard problems · Easy
Which version of the Knapsack Problem is generally NP-hard?
Not quite. Try another option.
Answer: Maximizing value under a weight limit
The optimization version of Knapsack seeks the maximum value under a capacity constraint and is NP-hard.
Question 5 of 60 · Examples of NP-hard problems · Easy
Which problem asks for a shortest tour that visits every city exactly once and returns to the start?
Not quite. Try another option.
Answer: Traveling Salesperson Problem
The Traveling Salesperson Problem seeks a minimum-length round trip through all given cities.
Question 6 of 60 · Examples of NP-complete problems · Easy
Which problem was the first problem proved to be NP-complete?
Not quite. Try another option.
Answer: Boolean Satisfiability Problem
The Boolean Satisfiability Problem, commonly called SAT, was the first problem proved NP-complete.
Question 7 of 60 · Examples of NP-complete problems · Easy
A problem is NP-complete when it is:
Not quite. Try another option.
Answer: Both in NP and NP-hard
An NP-complete problem must belong to NP and also be at least as hard as every problem in NP.
Question 8 of 60 · Examples of NP-complete problems · Easy
Which graph problem is a well-known NP-complete decision problem?
Not quite. Try another option.
Answer: Hamiltonian Cycle
Determining whether a graph contains a cycle that visits every vertex exactly once is NP-complete.
Question 9 of 60 · Examples of NP-complete problems · Easy
What does the Clique decision problem ask?
Not quite. Try another option.
Answer: Whether a graph has a clique of size at least
The Clique decision problem asks whether at least vertices are all pairwise adjacent.
Question 10 of 60 · Examples of NP-complete problems · Easy
Which problem asks whether some numbers in a set add up to a specified target?
Not quite. Try another option.
Answer: Subset Sum
Subset Sum asks whether a subset exists whose elements sum to a given target value.
Question 11 of 60 · Cook's theorem · Easy
What is the main conclusion of Cook's theorem?
Not quite. Try another option.
Answer: SAT is NP-complete
Cook's theorem established that Boolean satisfiability is NP-complete.
Question 12 of 60 · Cook's theorem · Easy
Cook's theorem is primarily associated with which complexity class?
Not quite. Try another option.
Answer: NP
Cook's theorem concerns NP and proves that SAT is complete for this complexity class.
Question 13 of 60 · Cook's theorem · Easy
According to Cook's theorem, every problem in NP can be reduced in polynomial time to:
Not quite. Try another option.
Answer: SAT
Cook's theorem shows that every problem in NP has a polynomial-time reduction to SAT.
Question 14 of 60 · Cook's theorem · Easy
Who is Cook's theorem named after?
Not quite. Try another option.
Answer: Stephen Cook
The theorem is named after computer scientist Stephen Cook.
Question 15 of 60 · Cook's theorem · Easy
Why is Cook's theorem historically important?
Not quite. Try another option.
Answer: It identified the first NP-complete problem
Cook's theorem provided the first proof that a problem, SAT, is NP-complete.
Question 16 of 60 · Problem reduction · Easy
What is the main purpose of a problem reduction?
Not quite. Try another option.
Answer: To transform one problem into another
A reduction converts instances of one problem into instances of another while preserving the required answer.
Question 17 of 60 · Problem reduction · Easy
To prove that a new problem is NP-hard, which reduction direction is normally used?
Not quite. Try another option.
Answer: A known NP-hard problem is reduced to
Reducing a known NP-hard problem to shows that solving would also solve the known hard problem.
Question 18 of 60 · Problem reduction · Easy
What does mean?
Not quite. Try another option.
Answer: is polynomial-time reducible to
The notation means instances of can be transformed into instances of in polynomial time.
Question 19 of 60 · Problem reduction · Easy
If and can be solved in polynomial time, what follows?
Not quite. Try another option.
Answer: can be solved in polynomial time
Transforming into and then solving gives a polynomial-time method for solving .
Question 20 of 60 · Problem reduction · Easy
What must be efficient in a polynomial-time reduction?
Not quite. Try another option.
Answer: The transformation between problem instances
A polynomial-time reduction requires the conversion from one problem instance to another to take polynomial time.
Question 21 of 60 · Examples of NP-hard problems · Medium
Which version of the Traveling Salesperson Problem (TSP) is commonly classified as NP-hard?
Not quite. Try another option.
Answer: Finding a minimum-cost tour
The optimization version of TSP asks for the minimum-cost tour and is NP-hard. Its decision version is NP-complete.
Question 22 of 60 · Examples of NP-hard problems · Medium
Why can an undecidable problem, such as the Halting Problem, be described as NP-hard?
Not quite. Try another option.
Answer: Every problem in NP reduces to it
NP-hardness requires every NP problem to reduce to the target problem; the target itself need not be decidable or belong to NP.
Question 23 of 60 · Examples of NP-hard problems · Medium
An algorithm returns the size of a maximum clique in a graph. Why is this task NP-hard?
Not quite. Try another option.
Answer: It can solve CLIQUE decisions
If the maximum clique size is known, the CLIQUE decision question is answered by comparing that size with the requested threshold.
Question 24 of 60 · Examples of NP-hard problems · Medium
Suppose a polynomial-time algorithm computes an optimal solution to every instance of an NP-hard optimization problem. What would follow for its associated NP-complete decision problem?
Not quite. Try another option.
Answer: It would be solvable in polynomial time
The optimal value can be compared with a threshold to answer the associated decision problem in polynomial time.
Question 25 of 60 · Examples of NP-hard problems · Medium
Which statement correctly distinguishes an NP-hard problem from an NP-complete problem?
Not quite. Try another option.
Answer: An NP-hard problem need not be in NP
NP-complete problems are both in NP and NP-hard, whereas NP-hard problems are not required to belong to NP.
Question 26 of 60 · Examples of NP-complete problems · Medium
For the decision version of CLIQUE, what serves as a polynomially verifiable certificate for a yes-instance?
Not quite. Try another option.
Answer: A set of mutually adjacent vertices
The certificate lists vertices. A verifier checks in polynomial time that every pair among them is connected by an edge.
Question 27 of 60 · Examples of NP-complete problems · Medium
Which formulation of Vertex Cover is NP-complete?
Not quite. Try another option.
Answer: Does a cover of size at most exist?
The decision version asks whether a vertex cover of bounded size exists. It is in NP and is NP-hard.
Question 28 of 60 · Examples of NP-complete problems · Medium
A SUBSET-SUM instance contains integers and target . Which certificate proves that it is a yes-instance?
Not quite. Try another option.
Answer: The subset
The selected values satisfy , and their sum can be verified in polynomial time.
Question 29 of 60 · Examples of NP-complete problems · Medium
Which additional fact is needed, beyond proving that a problem is NP-hard, to classify it as NP-complete?
Not quite. Try another option.
Answer: Its yes-certificates are polynomially verifiable
A problem is NP-complete when it is NP-hard and belongs to NP, meaning yes-instances have polynomially verifiable certificates.
Question 30 of 60 · Examples of NP-complete problems · Medium
A graph problem asks whether a simple cycle visits every vertex exactly once. Which NP-complete problem is being described?
Not quite. Try another option.
Answer: Hamiltonian Cycle
Hamiltonian Cycle asks whether a cycle visits every vertex exactly once and is a classic NP-complete decision problem.
Question 31 of 60 · Cook's theorem · Medium
What is the central conclusion of Cook's theorem?
Not quite. Try another option.
Answer: SAT is NP-complete
Cook's theorem established that SAT belongs to NP and that every problem in NP can be reduced to SAT in polynomial time.
Question 32 of 60 · Cook's theorem · Medium
In the proof of Cook's theorem, what does the constructed Boolean formula primarily encode?
Not quite. Try another option.
Answer: A polynomial computation tableau
The formula encodes configurations and transitions of a polynomial-time nondeterministic computation on the given input.
Question 33 of 60 · Cook's theorem · Medium
Why is the SAT problem itself in NP?
Not quite. Try another option.
Answer: A truth assignment can be checked efficiently
Given an assignment as a certificate, each clause or connective can be evaluated in polynomial time.
Question 34 of 60 · Cook's theorem · Medium
If SAT were shown to have a polynomial-time algorithm, what consequence would Cook's theorem imply?
Not quite. Try another option.
Answer:
Every problem in NP reduces to SAT. A polynomial-time SAT algorithm would therefore give polynomial-time algorithms for all NP problems.
Question 35 of 60 · Cook's theorem · Medium
Which property ensures that the formula constructed in Cook's theorem has polynomial size?
Not quite. Try another option.
Answer: The simulated machine runs for polynomial time
A polynomial time bound limits the number and size of encoded configurations, keeping the resulting formula polynomial in the input size.
Question 36 of 60 · Problem reduction · Medium
Suppose and has a polynomial-time algorithm. What can be concluded about ?
Not quite. Try another option.
Answer: is solvable in polynomial time
Transform an instance of into an instance of in polynomial time, then run the polynomial-time algorithm for .
Question 37 of 60 · Problem reduction · Medium
To prove that a new problem is NP-hard using a known NP-complete problem , which reduction direction is required?
Not quite. Try another option.
Answer:
Reducing the known hard problem to shows that an efficient solver for could also solve efficiently.
Question 38 of 60 · Problem reduction · Medium
A reduction maps each instance of problem to of problem . Which condition must hold for a valid many-one reduction?
Not quite. Try another option.
Answer: exactly when
The transformation must preserve answers: yes-instances map to yes-instances and no-instances map to no-instances.
Question 39 of 60 · Problem reduction · Medium
If and , which conclusion follows from transitivity?
Not quite. Try another option.
Answer:
Composing the two polynomial-time transformations produces a polynomial-time reduction from to .
Question 40 of 60 · Problem reduction · Medium
A researcher proves , where is NP-complete and is in NP. What classification follows for ?
Not quite. Try another option.
Answer: is NP-complete
The reduction from NP-complete makes NP-hard, and the given membership of in NP makes it NP-complete.
Question 41 of 60 · Problem reduction · Hard
Suppose and are polynomial-time many-one reductions. Which conclusion follows without any additional complexity assumptions?
Not quite. Try another option.
Answer: by composing the two reduction functions
Polynomial-time many-one reductions are transitive. The composition remains polynomial-time because the first reduction produces only polynomially many output bits.
Question 42 of 60 · Problem reduction · Hard
Let be NP-hard and suppose . What is the strongest conclusion that follows solely from these facts?
Not quite. Try another option.
Answer: is NP-hard
Every problem in NP reduces to , and reduces to . Transitivity therefore makes NP-hard, but membership of in NP is not guaranteed.
Question 43 of 60 · Examples of NP-hard problems · Hard
Why is the optimization version of Traveling Salesperson generally called NP-hard rather than NP-complete?
Not quite. Try another option.
Answer: It returns an optimal value or tour rather than deciding a language
NP-completeness is conventionally defined for decision languages. Exact TSP optimization is NP-hard because it can solve the NP-complete threshold version.
Question 44 of 60 · Cook's theorem · Hard
Which statement most precisely captures Cook's theorem, also called the Cook–Levin theorem?
Not quite. Try another option.
Answer: SAT is in NP, and every language in NP polynomial-time reduces to SAT
Cook–Levin proves both requirements for NP-completeness: SAT has efficiently verifiable certificates, and every NP computation can be encoded as a polynomial-size satisfiable formula.
Question 45 of 60 · Cook's theorem · Hard
A nondeterministic Turing machine runs in time . In the standard Cook–Levin tableau construction, why can its computation be represented by a formula of polynomial size?
Not quite. Try another option.
Answer: The tableau has polynomially many cells, and validity is enforced by local constraints
A -step computation uses a polynomial-size time-space tableau. Initial, accepting, uniqueness, and local-transition constraints can all be expressed with polynomially many clauses.
Question 46 of 60 · Cook's theorem · Hard
In the Cook–Levin reduction, what corresponds to the nondeterministic choices made by the simulated machine?
Not quite. Try another option.
Answer: Truth assignments selecting one valid accepting computation tableau
The formula is satisfiable exactly when some assignment describes an accepting branch. This existential choice mirrors nondeterministic acceptance.
Question 47 of 60 · Examples of NP-hard problems · Hard
Assume an oracle returns the exact minimum cost of a TSP tour. How can it decide the threshold version asking whether a tour of cost at most exists?
Not quite. Try another option.
Answer: Query the optimum once and compare the returned cost with
The threshold instance is a yes-instance exactly when the optimal tour cost is at most . Thus exact TSP optimization is at least as hard as its NP-complete decision version.
Question 48 of 60 · Examples of NP-hard problems · Hard
Consider the language . Which classification is correct under polynomial-time many-one reductions?
Not quite. Try another option.
Answer: is NP-hard but not NP-complete
SAT can be mapped to a machine that halts exactly when the formula is satisfiable, so HALT is NP-hard. HALT is undecidable and therefore not in NP, so it is not NP-complete.
Question 49 of 60 · Examples of NP-complete problems · Hard
How does changing integer encoding affect the classical SUBSET-SUM decision problem?
The dynamic program is pseudo-polynomial. It is polynomial for unary target , but potentially exponential in the input length when is binary-encoded.
Question 50 of 60 · Examples of NP-complete problems · Hard
Which classification correctly describes four common restrictions of Boolean satisfiability?
Not quite. Try another option.
Answer: 3-SAT is NP-complete; 2-SAT, Horn-SAT, and XOR-SAT are in P
3-SAT remains NP-complete, whereas 2-SAT uses implication graphs, Horn-SAT uses forward chaining, and XOR-SAT reduces to linear algebra over .
Question 51 of 60 · Examples of NP-complete problems · Hard
TAUT is coNP-complete. If TAUT were also NP-hard under polynomial-time many-one reductions, what major consequence would follow?
Not quite. Try another option.
Answer:
If every NP language reduced to TAUT, then every NP language would belong to coNP. Closure under complementation then gives the reverse inclusion, yielding .
Question 52 of 60 · Problem reduction · Hard
Suppose is NP-complete and both and hold. What follows?
Not quite. Try another option.
Answer: is NP-complete
makes NP-hard. Since and is in NP, a certificate for the reduced instance proves that is also in NP.
Question 53 of 60 · Examples of NP-hard problems · Hard
What would follow if the strongly NP-complete 3-PARTITION problem had an exact pseudo-polynomial-time algorithm?
Not quite. Try another option.
Answer:
Strong NP-completeness persists even when numerical values are polynomially bounded. Under that restriction, a pseudo-polynomial algorithm becomes polynomial, implying .
Question 54 of 60 · Examples of NP-complete problems · Hard
For the decision version of HAMILTONIAN-CYCLE, which certificate and verifier establish membership in NP?
Not quite. Try another option.
Answer: A cyclic ordering of all vertices, checked for uniqueness and required edges
A certificate lists each vertex exactly once in cyclic order. The verifier checks the ordering and confirms that every consecutive pair, including the last and first, is connected.
Question 55 of 60 · Cook's theorem · Hard
Why does the Cook–Levin construction not explicitly enumerate all computation branches of a nondeterministic machine?
Not quite. Try another option.
Answer: A satisfying assignment implicitly chooses one branch through tableau variables
Enumerating all branches could require exponential space. Instead, polynomially many variables describe one candidate tableau, and satisfiability existentially selects an accepting branch.
Question 56 of 60 · Problem reduction · Hard
A proposed reduction from to maps every yes-instance of to a yes-instance of , but some no-instances of also map to yes-instances of . Why is it invalid as a many-one reduction?
Not quite. Try another option.
Answer: It violates the required equivalence if and only if
A many-one reduction must preserve both yes- and no-instances. One-directional preservation is insufficient for deciding using a solver for .
Question 57 of 60 · Examples of NP-hard problems · Hard
Why does the fact that a proposed coloring can be checked efficiently not show that computing the chromatic number belongs to NP?
Not quite. Try another option.
Answer: NP classifies decision languages, while computing is a function problem
The threshold question is a decision problem in NP, but producing the exact value is a function problem. Exact chromatic-number computation is NP-hard.
Question 58 of 60 · Examples of NP-complete problems · Hard
Which transformation correctly reduces CLIQUE to VERTEX-COVER for a graph with vertices?
Not quite. Try another option.
Answer:
A size- clique in is a size- independent set in . Its complement is therefore a size- vertex cover in .
Question 59 of 60 · Cook's theorem · Hard
In a Cook–Levin tableau, which clauses enforce that a given cell contains exactly one symbol or state marker?
Not quite. Try another option.
Answer: One at-least-one clause together with pairwise at-most-one clauses
A disjunction ensures that some marker is selected, while pairwise negative clauses prevent two distinct markers from being selected simultaneously.
Question 60 of 60 · Problem reduction · Hard
Suppose is NP-hard under polynomial-time many-one reductions and via a polynomial-time Turing reduction. What can be concluded directly about ?
Not quite. Try another option.
Answer: is NP-hard under polynomial-time Turing reductions
Composing reductions gives polynomial-time oracle reductions from every NP problem to . A Turing reduction does not necessarily provide the single-instance mapping required for many-one hardness.
That's unit 14
Answer a few questions and your score shows up here.
Nearly through. Did unit 14 of ECAP538 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 14 of ECAP538 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.