Unit 14: More on Intractable Problems - Practice Quiz

ECAP538 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 Which optimization problem is a well-known example of an NP-hard problem?

Examples of NP-hard problems Easy
A. Matrix addition problem
B. Binary search problem
C. Traveling Salesperson optimization problem
D. Array sorting problem

2 What does it mean for a problem to be NP-hard?

Examples of NP-hard problems Easy
A. It can always be solved in constant time
B. It can only have numerical inputs
C. It is at least as hard as every problem in NP
D. It must belong to the class NP

3 Which statement about NP-hard problems is correct?

Examples of NP-hard problems Easy
A. They need not be decision problems
B. They must belong to both P and NP
C. They must have yes-or-no answers
D. They must be solvable in polynomial time

4 Which version of the Knapsack Problem is generally NP-hard?

Examples of NP-hard problems Easy
A. Checking whether the bag is empty
B. Reading the weight of one item
C. Counting the number of given items
D. Maximizing value under a weight limit

5 Which problem asks for a shortest tour that visits every city exactly once and returns to the start?

Examples of NP-hard problems Easy
A. Single-Source Shortest Path Problem
B. Maximum Flow Problem
C. Minimum Spanning Tree Problem
D. Traveling Salesperson Problem

6 Which problem was the first problem proved to be NP-complete?

Examples of NP-complete problems Easy
A. Boolean Satisfiability Problem
B. Shortest Path Problem
C. Minimum Spanning Tree Problem
D. Binary Search Problem

7 A problem is NP-complete when it is:

Examples of NP-complete problems Easy
A. Both in P and undecidable
B. NP-hard but outside NP
C. In NP but not NP-hard
D. Both in NP and NP-hard

8 Which graph problem is a well-known NP-complete decision problem?

Examples of NP-complete problems Easy
A. Hamiltonian Cycle
B. Minimum Spanning Tree
C. Depth-First Search
D. Breadth-First Search

9 What does the Clique decision problem ask?

Examples of NP-complete problems Easy
A. Whether every vertex has degree exactly
B. Whether a graph has exactly total edges
C. Whether a graph can be traversed in steps
D. Whether a graph has a clique of size at least

10 Which problem asks whether some numbers in a set add up to a specified target?

Examples of NP-complete problems Easy
A. Matrix Multiplication
B. Maximum Flow
C. Subset Sum
D. Graph Coloring Search

11 What is the main conclusion of Cook's theorem?

Cook's theorem Easy
A. SAT is undecidable
B. SAT is NP-complete
C. Every problem is in P
D. Every graph is colorable

12 Cook's theorem is primarily associated with which complexity class?

Cook's theorem Easy
A. PSPACE only
B. Constant time
C. NP
D. L

13 According to Cook's theorem, every problem in NP can be reduced in polynomial time to:

Cook's theorem Easy
A. Binary Search
B. SAT
C. Matrix Addition
D. Merge Sort

14 Who is Cook's theorem named after?

Cook's theorem Easy
A. Donald Knuth
B. Alan Turing
C. Edsger Dijkstra
D. Stephen Cook

15 Why is Cook's theorem historically important?

Cook's theorem Easy
A. It introduced the first sorting algorithm
B. It identified the first NP-complete problem
C. It created the binary number system
D. It proved that all problems are decidable

16 What is the main purpose of a problem reduction?

Problem reduction Easy
A. To convert an algorithm into hardware
B. To remove every input from a problem
C. To guarantee a constant-time solution
D. To transform one problem into another

17 To prove that a new problem is NP-hard, which reduction direction is normally used?

Problem reduction Easy
A. is reduced to itself repeatedly
B. is reduced to an easy problem
C. An easy problem is reduced to
D. A known NP-hard problem is reduced to

18 What does mean?

Problem reduction Easy
A. always takes less space than
B. is polynomial-time reducible to
C. is strictly easier than
D. has fewer inputs than

19 If and can be solved in polynomial time, what follows?

Problem reduction Easy
A. must be an undecidable problem
B. cannot be reduced to another problem
C. can be solved in polynomial time
D. must be harder than every problem

20 What must be efficient in a polynomial-time reduction?

Problem reduction Easy
A. The manual verification by a programmer
B. The storage of every possible solution
C. The transformation between problem instances
D. The physical construction of a computer

21 Which version of the Traveling Salesperson Problem (TSP) is commonly classified as NP-hard?

Examples of NP-hard problems Medium
A. Verifying a proposed tour
B. Sorting the edge weights
C. Finding a minimum-cost tour
D. Checking whether a graph is connected

22 Why can an undecidable problem, such as the Halting Problem, be described as NP-hard?

Examples of NP-hard problems Medium
A. It has polynomial certificates
B. Every problem in NP reduces to it
C. Every instance halts eventually
D. It belongs to NP but not P

23 An algorithm returns the size of a maximum clique in a graph. Why is this task NP-hard?

Examples of NP-hard problems Medium
A. Its output is always exponential
B. Its certificates cannot be verified
C. It requires enumerating all vertices
D. It can solve CLIQUE decisions

24 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?

Examples of NP-hard problems Medium
A. It would leave the class NP
B. It would be solvable in polynomial time
C. It would require exponential verification
D. It would become undecidable

25 Which statement correctly distinguishes an NP-hard problem from an NP-complete problem?

Examples of NP-hard problems Medium
A. An NP-hard problem must be undecidable
B. An NP-complete problem need not be in NP
C. An NP-hard problem need not be in NP
D. An NP-complete problem must be an optimization problem

26 For the decision version of CLIQUE, what serves as a polynomially verifiable certificate for a yes-instance?

Examples of NP-complete problems Medium
A. A coloring that uses colors
B. A set of mutually adjacent vertices
C. A spanning tree with leaves
D. A list of all maximal cliques

27 Which formulation of Vertex Cover is NP-complete?

Examples of NP-complete problems Medium
A. Count all covers of size exactly
B. Approximate the minimum cover size
C. Find the minimum possible cover size
D. Does a cover of size at most exist?

28 A SUBSET-SUM instance contains integers and target . Which certificate proves that it is a yes-instance?

Examples of NP-complete problems Medium
A. The subset
B. The subset
C. The subset
D. The subset

29 Which additional fact is needed, beyond proving that a problem is NP-hard, to classify it as NP-complete?

Examples of NP-complete problems Medium
A. Its no-instances have constant-size certificates
B. Its optimization version has a unique answer
C. Its yes-certificates are polynomially verifiable
D. Its inputs are encoded using binary digits

30 A graph problem asks whether a simple cycle visits every vertex exactly once. Which NP-complete problem is being described?

Examples of NP-complete problems Medium
A. Hamiltonian Cycle
B. Single-Source Shortest Path
C. Minimum Spanning Tree
D. Eulerian Cycle

31 What is the central conclusion of Cook's theorem?

Cook's theorem Medium
A. Every NP problem is undecidable
B. SAT is NP-complete
C. Every Boolean formula is satisfiable
D. SAT is solvable in linear time

32 In the proof of Cook's theorem, what does the constructed Boolean formula primarily encode?

Cook's theorem Medium
A. A graph's minimum spanning tree
B. A polynomial computation tableau
C. A formula's complete truth table
D. A deterministic sorting sequence

33 Why is the SAT problem itself in NP?

Cook's theorem Medium
A. A truth table has polynomially many rows
B. Every formula has a satisfying assignment
C. A truth assignment can be checked efficiently
D. All formulas can be simplified efficiently

34 If SAT were shown to have a polynomial-time algorithm, what consequence would Cook's theorem imply?

Cook's theorem Medium
A. SAT would become undecidable
B. only
C.
D.

35 Which property ensures that the formula constructed in Cook's theorem has polynomial size?

Cook's theorem Medium
A. The machine has exactly one accepting path
B. The simulated machine runs for polynomial time
C. The input contains only Boolean variables
D. The simulated machine uses no work tape

36 Suppose and has a polynomial-time algorithm. What can be concluded about ?

Problem reduction Medium
A. is harder than
B. is necessarily NP-complete
C. is solvable in polynomial time
D. is necessarily undecidable

37 To prove that a new problem is NP-hard using a known NP-complete problem , which reduction direction is required?

Problem reduction Medium
A.
B.
C.
D.

38 A reduction maps each instance of problem to of problem . Which condition must hold for a valid many-one reduction?

Problem reduction Medium
A. must be shorter than
B. only when
C. exactly when
D. must be an optimal solution

39 If and , which conclusion follows from transitivity?

Problem reduction Medium
A.
B.
C.
D.

40 A researcher proves , where is NP-complete and is in NP. What classification follows for ?

Problem reduction Medium
A. is NP-complete
B. is undecidable
C. is in P
D. is co-NP-complete

41 Suppose and are polynomial-time many-one reductions. Which conclusion follows without any additional complexity assumptions?

Problem reduction Hard
A. by composing the two reduction functions
B. by reversing the two reduction functions
C. and must have identical polynomial-time algorithms
D. must be NP-complete because it connects both problems

42 Let be NP-hard and suppose . What is the strongest conclusion that follows solely from these facts?

Problem reduction Hard
A. is NP-complete
B. belongs to NP
C. belongs to P
D. is NP-hard

43 Why is the optimization version of Traveling Salesperson generally called NP-hard rather than NP-complete?

Examples of NP-hard problems Hard
A. It is undecidable when edge weights are represented in binary
B. It returns an optimal value or tour rather than deciding a language
C. It cannot be reduced from its corresponding threshold decision problem
D. It has no polynomially verifiable certificate for any feasible tour

44 Which statement most precisely captures Cook's theorem, also called the Cook–Levin theorem?

Cook's theorem Hard
A. SAT is coNP-complete, and every tautology polynomial-time reduces to SAT
B. SAT is in P, and every language in NP nondeterministically reduces to SAT
C. SAT is in NP, and every language in NP polynomial-time reduces to SAT
D. SAT is NP-hard, and every decidable language polynomial-time reduces to SAT

45 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?

Cook's theorem Hard
A. The tableau has polynomially many cells, and validity is enforced by local constraints
B. The formula replaces each complete branch with one constant-size Boolean variable
C. The tableau stores only the first and final configurations of every branch
D. The construction deterministically identifies the accepting branch before encoding it

46 In the Cook–Levin reduction, what corresponds to the nondeterministic choices made by the simulated machine?

Cook's theorem Hard
A. Truth assignments selecting one valid accepting computation tableau
B. Deterministic preprocessing that computes the machine's accepting branch
C. Universal quantifiers requiring every computation branch to accept
D. Clause deletions performed after the formula has been generated

47 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?

Examples of NP-hard problems Hard
A. Negate all edge weights and test whether the optimum equals
B. Query the optimum once and compare the returned cost with
C. Binary-search over tours ordered lexicographically and compare with
D. Query every possible tour and accept when one costs at most

48 Consider the language . Which classification is correct under polynomial-time many-one reductions?

Examples of NP-hard problems Hard
A. is outside NP and therefore cannot be NP-hard
B. is in NP but not known to be NP-hard
C. is NP-hard but not NP-complete
D. is NP-complete but not decidable

49 How does changing integer encoding affect the classical SUBSET-SUM decision problem?

Examples of NP-complete problems Hard
A. Both encodings yield strong NP-completeness because the number of integers is unchanged
B. Binary encoding yields NP-completeness, while unary encoding permits polynomial-time dynamic programming
C. Unary encoding yields NP-completeness, while binary encoding permits polynomial-time dynamic programming
D. Both encodings place the problem in P because each proposed subset is easily verified

50 Which classification correctly describes four common restrictions of Boolean satisfiability?

Examples of NP-complete problems Hard
A. 3-SAT is NP-complete; 2-SAT, Horn-SAT, and XOR-SAT are in P
B. XOR-SAT is NP-complete; 2-SAT, Horn-SAT, and 3-SAT are in P
C. 2-SAT is NP-complete; 3-SAT, Horn-SAT, and XOR-SAT are in P
D. Horn-SAT is NP-complete; 2-SAT, 3-SAT, and XOR-SAT are in P

51 TAUT is coNP-complete. If TAUT were also NP-hard under polynomial-time many-one reductions, what major consequence would follow?

Examples of NP-complete problems Hard
A.
B.
C.
D.

52 Suppose is NP-complete and both and hold. What follows?

Problem reduction Hard
A. is in NP but may fail to be NP-hard
B. is NP-hard but may lie outside NP
C. is polynomial-time solvable regardless of
D. is NP-complete

53 What would follow if the strongly NP-complete 3-PARTITION problem had an exact pseudo-polynomial-time algorithm?

Examples of NP-hard problems Hard
A. only
B. Weak NP-completeness of 3-PARTITION
C.
D. Polynomial solvability only for binary inputs

54 For the decision version of HAMILTONIAN-CYCLE, which certificate and verifier establish membership in NP?

Examples of NP-complete problems Hard
A. A spanning tree of the graph, checked for connectivity and minimum weight
B. A maximal set of edges, checked only for pairwise vertex disjointness
C. A cyclic ordering of all vertices, checked for uniqueness and required edges
D. A vertex coloring, checked for distinct colors on every incident pair

55 Why does the Cook–Levin construction not explicitly enumerate all computation branches of a nondeterministic machine?

Cook's theorem Hard
A. The reduction needs to encode only branches that reject the input
B. All nondeterministic machines have only polynomially many computation branches
C. Each nondeterministic transition can be replaced by a deterministic constant
D. A satisfying assignment implicitly chooses one branch through tableau variables

56 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?

Problem reduction Hard
A. It violates the requirement that every output instance have equal input length
B. It violates the requirement that be computed by a nondeterministic machine
C. It violates the required equivalence if and only if
D. It violates the requirement that all yes-instances map to one fixed instance

57 Why does the fact that a proposed coloring can be checked efficiently not show that computing the chromatic number belongs to NP?

Examples of NP-hard problems Hard
A. Proper colorings cannot serve as certificates for threshold decision problems
B. A proposed coloring cannot be checked without enumerating every other coloring
C. The chromatic number may require exponentially many bits to represent
D. NP classifies decision languages, while computing is a function problem

58 Which transformation correctly reduces CLIQUE to VERTEX-COVER for a graph with vertices?

Examples of NP-complete problems Hard
A.
B.
C.
D.

59 In a Cook–Levin tableau, which clauses enforce that a given cell contains exactly one symbol or state marker?

Cook's theorem Hard
A. Only unit clauses fixing every cell before the computation begins
B. Only transition clauses relating the cell to its temporal neighbors
C. One at-most-one clause together with pairwise at-least-one clauses
D. One at-least-one clause together with pairwise at-most-one clauses

60 Suppose is NP-hard under polynomial-time many-one reductions and via a polynomial-time Turing reduction. What can be concluded directly about ?

Problem reduction Hard
A. is NP-hard under polynomial-time Turing reductions
B. belongs to NP under polynomial-time many-one reductions
C. is NP-complete under polynomial-time Turing reductions
D. is NP-hard under polynomial-time many-one reductions