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 13 MCQsIntractable Problems
ECAP538 ·
60 questions. Pick an option to check it.
Answer: A problem with no known efficient algorithm
An intractable problem has no known algorithm that solves all instances efficiently, typically in polynomial time.
Question 2 of 60 · Basic concepts · Easy
Which running time is polynomial?
Not quite. Try another option.
Answer:
is polynomial because the input size is raised to a constant power.
Question 3 of 60 · Basic concepts · Easy
Which running time is exponential?
Not quite. Try another option.
Answer:
grows exponentially as the input size increases.
Question 4 of 60 · Basic concepts · Easy
What is a decision problem?
Not quite. Try another option.
Answer: A problem returning yes or no
A decision problem asks a question whose answer is either yes or no.
Question 5 of 60 · Basic concepts · Easy
Why are polynomial-time algorithms generally considered efficient?
Not quite. Try another option.
Answer: Their running time grows at a manageable rate
Polynomial running times usually grow more manageably than exponential or factorial running times.
Question 6 of 60 · Basic concepts · Easy
Which problem form asks for the best solution among all feasible solutions?
Not quite. Try another option.
Answer: Optimization problem
An optimization problem seeks a feasible solution that minimizes or maximizes an objective.
Question 7 of 60 · Non-deterministic algorithms · Easy
What does a non-deterministic algorithm conceptually do when several choices are available?
Not quite. Try another option.
Answer: It guesses a suitable choice
A non-deterministic algorithm is viewed as guessing a candidate choice and then checking it.
Question 8 of 60 · Non-deterministic algorithms · Easy
What are the two common conceptual phases of a non-deterministic algorithm?
Not quite. Try another option.
Answer: Guessing and verification
A non-deterministic algorithm conceptually guesses a solution and verifies whether it is valid.
Question 9 of 60 · Non-deterministic algorithms · Easy
When does a non-deterministic algorithm accept an input?
Not quite. Try another option.
Answer: When at least one computation path accepts
A non-deterministic computation accepts if at least one of its possible computation paths accepts.
Question 10 of 60 · Non-deterministic algorithms · Easy
In complexity theory, what is a certificate?
Not quite. Try another option.
Answer: A candidate solution used for verification
A certificate is information representing a proposed solution that a verifier can check.
Question 11 of 60 · Non-deterministic algorithms · Easy
How is non-determinism mainly used in the definition of NP?
Not quite. Try another option.
Answer: As a theoretical computation model
Non-determinism is a theoretical model used to characterize problems in NP.
Question 12 of 60 · Non-deterministic algorithms · Easy
Which machine model can conceptually branch into multiple computation paths?
Not quite. Try another option.
Answer: Non-deterministic Turing machine
A non-deterministic Turing machine can conceptually follow multiple possible computation paths.
Question 13 of 60 · NP-completeness · Easy
What does the complexity class P contain?
Not quite. Try another option.
Answer: Decision problems solvable in polynomial time
P is the class of decision problems that deterministic algorithms can solve in polynomial time.
Question 14 of 60 · NP-completeness · Easy
What does the complexity class NP contain?
Not quite. Try another option.
Answer: Problems whose certificates are polynomial-time verifiable
For problems in NP, a proposed yes-certificate can be verified in polynomial time.
Question 15 of 60 · NP-completeness · Easy
Which relationship between P and NP is known to be true?
Not quite. Try another option.
Answer:
Any problem solvable in polynomial time also has solutions verifiable in polynomial time.
Question 16 of 60 · NP-completeness · Easy
What two conditions must an NP-complete problem satisfy?
Not quite. Try another option.
Answer: It must be in NP and NP-hard
A problem is NP-complete when it belongs to NP and every problem in NP reduces to it in polynomial time.
Question 17 of 60 · NP-completeness · Easy
What is the purpose of a polynomial-time reduction?
Not quite. Try another option.
Answer: To convert one problem into another efficiently
A polynomial-time reduction efficiently transforms instances of one problem into instances of another.
Question 18 of 60 · NP-completeness · Easy
Which problem was the first to be proven NP-complete?
Not quite. Try another option.
Answer: Boolean Satisfiability
The Cook–Levin theorem established Boolean Satisfiability, or SAT, as the first NP-complete problem.
Question 19 of 60 · NP-completeness · Easy
What would follow if one NP-complete problem were solved in polynomial time?
Not quite. Try another option.
Answer:
Every NP problem reduces to an NP-complete problem, so a polynomial-time solution would imply .
Question 20 of 60 · NP-completeness · Easy
How does an NP-hard problem differ from an NP-complete problem?
Not quite. Try another option.
Answer: It need not belong to NP
An NP-hard problem is at least as hard as every NP problem, but it does not have to be in NP.
Question 21 of 60 · Basic concepts · Medium
Which statement best describes a decision problem in the complexity class ?
Not quite. Try another option.
Answer: It can be solved by a deterministic algorithm in polynomial time
contains decision problems solvable by deterministic algorithms in polynomial time with respect to the input size.
Question 22 of 60 · Basic concepts · Medium
An algorithm for a problem with input size runs in time, where is a fixed constant. How should its running time be classified with respect to ?
Not quite. Try another option.
Answer: Polynomial, because is a constant factor
Since is fixed, is constant. The running time therefore grows as with respect to .
Question 23 of 60 · Basic concepts · Medium
Why is the decision version of an optimization problem commonly used in complexity theory?
Not quite. Try another option.
Answer: It provides a yes-or-no form suitable for complexity-class definitions
Classes such as and are formally defined using decision problems, which return either yes or no.
Question 24 of 60 · Basic concepts · Medium
A dynamic programming algorithm for SUBSET SUM runs in time, where is the target value encoded in binary. Why is this called pseudo-polynomial rather than polynomial?
Not quite. Try another option.
Answer: Its time is polynomial in but may be exponential in the bit length of
A binary representation of uses bits, so a running time proportional to can be exponential in the actual input length.
Question 25 of 60 · Basic concepts · Medium
Suppose an algorithm examines all subsets of an -element set and spends time on each subset. What is its overall asymptotic running time?
Not quite. Try another option.
Answer:
An -element set has subsets. Processing each subset in time gives a total of .
Question 26 of 60 · Basic concepts · Medium
If a decision problem is proved NP-complete, which practical conclusion is most appropriate under the assumption ?
Not quite. Try another option.
Answer: No polynomial-time exact algorithm exists for every instance
If , an NP-complete problem has no polynomial-time algorithm that correctly solves all instances. Some instances or restricted cases may still be easy.
Question 27 of 60 · Non-deterministic algorithms · Medium
How does a nondeterministic algorithm accept an input?
Not quite. Try another option.
Answer: It accepts when at least one computation branch reaches an accepting state
Nondeterministic acceptance is existential: an input is accepted if at least one possible computation branch accepts it.
Question 28 of 60 · Non-deterministic algorithms · Medium
For the CLIQUE decision problem, which object is an appropriate polynomial-size certificate for a yes-instance asking whether a graph has a clique of size ?
Not quite. Try another option.
Answer: A list of vertices claimed to form a clique
The verifier checks that the list has distinct vertices and that every pair in the list is connected by an edge.
Question 29 of 60 · Non-deterministic algorithms · Medium
A nondeterministic machine guesses a certificate of polynomial length and verifies it in polynomial time. What does this establish about the corresponding decision problem?
Not quite. Try another option.
Answer: The problem belongs to
A decision problem is in when every yes-instance has a polynomial-size certificate that a deterministic verifier can check in polynomial time.
Question 30 of 60 · Non-deterministic algorithms · Medium
A nondeterministic algorithm has polynomially many steps along each branch but exponentially many branches. Why can it still represent an computation?
Not quite. Try another option.
Answer: Only the length of each accepting branch must be polynomial
Nondeterministic polynomial time limits the number of steps along a branch, not the total number of branches in the computation tree.
Question 31 of 60 · Non-deterministic algorithms · Medium
A nondeterministic algorithm for HAMILTONIAN CYCLE first guesses an ordering of all vertices. What should its deterministic verification stage check?
Not quite. Try another option.
Answer: Every vertex appears once and consecutive vertices are joined, including the last and first
The guessed ordering represents a Hamiltonian cycle exactly when it includes each vertex once and all consecutive pairs, including the wraparound pair, are edges.
Question 32 of 60 · Non-deterministic algorithms · Medium
Which statement correctly distinguishes nondeterministic computation from randomized computation?
Not quite. Try another option.
Answer: Nondeterminism accepts if an accepting choice exists, while randomness assigns probabilities to choices
Nondeterminism is a mathematical model based on the existence of an accepting branch; randomized algorithms execute choices according to probability distributions.
Question 33 of 60 · Non-deterministic algorithms · Medium
If a nondeterministic polynomial-time algorithm is simulated deterministically by exploring every computation branch, what commonly happens to the running time?
Not quite. Try another option.
Answer: It may become exponential in the input size
Polynomially many nondeterministic choices can create exponentially many branches, so exhaustive deterministic simulation may require exponential time.
Question 34 of 60 · NP-completeness · Medium
Which two conditions are sufficient to prove that a decision problem is NP-complete?
Not quite. Try another option.
Answer: is in , and a known NP-complete problem reduces to
Membership in establishes efficient verification, while a reduction from a known NP-complete problem establishes NP-hardness.
Question 35 of 60 · NP-completeness · 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:
A polynomial-time reduction from to shows that an efficient algorithm for would also solve the known hard problem efficiently.
Question 36 of 60 · NP-completeness · Medium
Suppose and has a polynomial-time algorithm. What follows?
Not quite. Try another option.
Answer: also has a polynomial-time algorithm
Transform an instance of into an instance of in polynomial time, then run the polynomial-time algorithm for .
Question 37 of 60 · NP-completeness · Medium
A polynomial-time algorithm is discovered for one NP-complete problem. Which consequence follows?
Not quite. Try another option.
Answer:
Every problem in reduces in polynomial time to an NP-complete problem. Solving that problem in polynomial time would therefore place all of inside .
Question 38 of 60 · NP-completeness · Medium
In the standard reduction from 3-SAT to CLIQUE, a 3-SAT formula with clauses is transformed into a graph. What clique size is requested?
Not quite. Try another option.
Answer: , selecting one compatible literal from each clause
The construction seeks one mutually compatible literal from each of the clauses, so the target clique has size .
Question 39 of 60 · NP-completeness · Medium
Which statement about NP-hard problems is correct?
Not quite. Try another option.
Answer: An NP-hard problem need not belong to
NP-hardness only means that every problem in reduces to the problem. The problem may be an optimization problem or may even be undecidable.
Question 40 of 60 · NP-completeness · Medium
A student proves that a restricted special case of an NP-complete problem can be solved in polynomial time. What can be concluded about the general problem?
Not quite. Try another option.
Answer: Nothing definitive; the unrestricted instances may remain NP-complete
Special cases can be tractable even when the unrestricted problem is NP-complete. A polynomial-time special-case algorithm does not automatically handle all instances.
Question 41 of 60 · Basic concepts · Hard
A numerical problem has input length and largest numeric value . An algorithm solves it in time. Which classification is most accurate when is encoded in binary?
Not quite. Try another option.
Answer: It is pseudo-polynomial because may be exponential in its bit length
Binary encoding uses only bits, so dependence on can be exponential in the actual input length. Such a runtime is pseudo-polynomial.
Question 42 of 60 · Basic concepts · Hard
Suppose a polynomial-time oracle decides whether a Boolean formula is satisfiable. How can a satisfying assignment be recovered when one exists?
Not quite. Try another option.
Answer: Fix variables successively and use at most satisfiability queries
First test satisfiability, then fix each variable to a value that preserves satisfiability. SAT is self-reducible, so only polynomially many oracle calls are needed.
Question 43 of 60 · Basic concepts · Hard
Let be NP-complete under polynomial-time many-one reductions. What follows if ?
Not quite. Try another option.
Answer: necessarily follows
Every language in NP reduces to . Since coNP is closed under inverse polynomial-time many-one reductions, this gives and hence equality.
Question 44 of 60 · Basic concepts · Hard
Suppose and has a polynomial-time algorithm. Which conclusion is guaranteed?
Not quite. Try another option.
Answer: is in P because its instances can be transformed and solved
Compute the reduction from to and run the polynomial-time algorithm for . The composition remains polynomial.
Question 45 of 60 · Basic concepts · Hard
A strongly NP-complete numerical problem admits an algorithm polynomial in and the largest input value . What would this imply?
Not quite. Try another option.
Answer: The equality follows from the bounded-value restriction
Strong NP-completeness persists when numeric values are polynomially bounded. A pseudo-polynomial algorithm would then run in polynomial time on an NP-hard restriction.
Question 46 of 60 · Non-deterministic algorithms · Hard
For a nondeterministic decision algorithm, which condition correctly characterizes rejection of an input?
Not quite. Try another option.
Answer: Every computation branch reaches a rejecting state
A nondeterministic machine accepts if at least one branch accepts. Therefore, it rejects exactly when no branch accepts.
Question 47 of 60 · Non-deterministic algorithms · Hard
Which verifier condition is sufficient to establish that a language belongs to NP?
Not quite. Try another option.
Answer: Yes-instances have polynomial certificates checked by a polynomial-time deterministic verifier
NP consists precisely of languages whose yes-instances possess polynomial-length witnesses verifiable deterministically in polynomial time.
Question 48 of 60 · Non-deterministic algorithms · Hard
A nondeterministic machine has at most successors per step and runs for at most steps on every branch, where is constant. What is the direct deterministic simulation bound?
Not quite. Try another option.
Answer: by exploring the computation tree
The computation tree can contain branches. Exploring each branch adds only polynomial overhead, yielding time when is polynomial.
Question 49 of 60 · Non-deterministic algorithms · Hard
Which nondeterministic procedure correctly decides whether an -vertex graph contains a Hamiltonian cycle?
Not quite. Try another option.
Answer: Guess a permutation of all vertices, then verify consecutive and closing edges
A Hamiltonian cycle corresponds to an ordering containing every vertex exactly once, with edges between consecutive vertices and from the last vertex back to the first.
Question 50 of 60 · Non-deterministic algorithms · Hard
Given polynomial-time verifiers for and , which certificate proves that is in NP?
Not quite. Try another option.
Answer: A pair of certificates accepted by their respective verifiers
Concatenate polynomial-length certificates for membership in and , then run both verifiers. The combined verification remains polynomial.
Question 51 of 60 · Non-deterministic algorithms · Hard
A proposed NP algorithm guesses a witness of length and verifies it in time polynomial in the witness length. Why does this not establish membership in NP?
Not quite. Try another option.
Answer: The witness and branch runtime are exponential in the input length
NP requires a polynomial-length witness and verification polynomial in the original input length. Polynomial time in an exponentially long witness is still exponential in .
Question 52 of 60 · Non-deterministic algorithms · Hard
A nondeterministic machine has a polynomial-length accepting branch for every yes-instance, but some other branches loop forever. Does this prove that its language is in NP?
Not quite. Try another option.
Answer: No, because every branch must halt within a polynomial bound
An NP decider must have a polynomial running-time bound applying to every computation branch. A machine with nonterminating branches does not satisfy that requirement.
Question 53 of 60 · NP-completeness · Hard
Given a known NP-complete language , which pair of results is sufficient to prove that a language is NP-complete?
Not quite. Try another option.
Answer: Prove and prove that belongs to NP
The reduction establishes NP-hardness of , while supplies the membership condition required for NP-completeness.
Question 54 of 60 · NP-completeness · Hard
In the standard reduction from a 3-CNF formula with clauses to CLIQUE, how is the graph constructed?
Not quite. Try another option.
Answer: Create literal-occurrence vertices and join compatible vertices from different clauses
Vertices represent literal occurrences. Edges connect noncontradictory literals from distinct clauses, and a clique of size selects one mutually compatible literal per clause.
Question 55 of 60 · NP-completeness · Hard
For an -vertex graph , which statement correctly relates CLIQUE to VERTEX-COVER?
Not quite. Try another option.
Answer: has a -clique iff has a vertex cover of size at most
A clique in is an independent set in . An independent set of size exists exactly when its complement is a vertex cover of size .
Question 56 of 60 · NP-completeness · Hard
What key property makes the Cook–Levin reduction polynomial for a nondeterministic machine running in time ?
Not quite. Try another option.
Answer: The entire computation tableau has polynomial dimensions and local constraints
A -step computation uses a polynomial-size tableau. Boolean clauses enforce the initial configuration, legal local transitions, and an accepting configuration.
Question 57 of 60 · NP-completeness · Hard
Suppose produces instances of size , and produces instances of size . What size bound follows for the composed reduction from to ?
Not quite. Try another option.
Answer: because the second bound receives an input
Substituting into gives . Thus polynomial-time many-one reductions are transitive.
Question 58 of 60 · NP-completeness · Hard
Assume a sparse language is NP-complete under polynomial-time many-one reductions. Which consequence follows from Mahaney's theorem?
Not quite. Try another option.
Answer: because no sparse language can be NP-complete otherwise
Mahaney's theorem states that an NP-hard sparse language under polynomial-time many-one reductions can exist only if .
Question 59 of 60 · NP-completeness · Hard
Let be NP-complete under many-one reductions, and suppose while . What is the strongest conclusion justified directly?
Not quite. Try another option.
Answer: is NP-complete under polynomial-time Turing reductions
The given reduction makes NP-hard under Turing reductions, and provides membership. It does not necessarily establish many-one NP-completeness.
Question 60 of 60 · NP-completeness · Hard
In the decision version of TSP with binary-encoded nonnegative edge weights and bound , why is a proposed tour a polynomially verifiable certificate?
Not quite. Try another option.
Answer: Its total weight can be computed using polynomial-time binary arithmetic
The verifier checks that the certificate is a permutation forming a tour, adds the binary weights, and compares the sum with , all in polynomial time.
That's unit 13
Answer a few questions and your score shows up here.
Nearly through. Did unit 13 of ECAP538 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 13 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.