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. Traveling Salesperson optimization problem
B. Matrix addition problem
C. Array sorting problem
D. Binary search problem

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

Examples of NP-hard problems Easy
A. It must belong to the class NP
B. It can only have numerical inputs
C. It can always be solved in constant time
D. It is at least as hard as every problem in 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 have yes-or-no answers
C. They must belong to both P and NP
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. Counting the number of given items
B. Checking whether the bag is empty
C. Maximizing value under a weight limit
D. Reading the weight of one item

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. Maximum Flow Problem
B. Single-Source Shortest Path 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. Binary Search Problem
C. Shortest Path Problem
D. Minimum Spanning Tree Problem

7 A problem is NP-complete when it is:

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

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

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

9 What does the Clique decision problem ask?

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

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

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

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

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

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

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

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

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

14 Who is Cook's theorem named after?

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

15 Why is Cook's theorem historically important?

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

16 What is the main purpose of a problem reduction?

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

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. A known NP-hard problem is reduced to
C. An easy problem is reduced to
D. is reduced to an easy problem

18 What does mean?

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

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

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

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

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

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

Examples of NP-hard problems Medium
A. Sorting the edge weights
B. Finding a minimum-cost tour
C. Verifying a proposed 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. Every problem in NP reduces to it
B. It belongs to NP but not P
C. It has polynomial certificates
D. Every instance halts eventually

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 certificates cannot be verified
B. It can solve CLIQUE decisions
C. Its output is always exponential
D. It requires enumerating all vertices

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 require exponential verification
B. It would be solvable in polynomial time
C. It would leave the class NP
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-complete problem must be an optimization problem
D. An NP-hard problem need not be in NP

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 list of all maximal cliques
B. A set of mutually adjacent vertices
C. A coloring that uses colors
D. A spanning tree with leaves

27 Which formulation of Vertex Cover is NP-complete?

Examples of NP-complete problems Medium
A. Find the minimum possible cover size
B. Count all covers of size exactly
C. Approximate the minimum 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 inputs are encoded using binary digits
B. Its no-instances have constant-size certificates
C. Its yes-certificates are polynomially verifiable
D. Its optimization version has a unique answer

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. Single-Source Shortest Path
B. Eulerian Cycle
C. Minimum Spanning Tree
D. Hamiltonian Cycle

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

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

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

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

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.
B. SAT would become undecidable
C.
D. only

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

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

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

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

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. only when
B. must be shorter than
C. must be an optimal solution
D. exactly when

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 undecidable
B. is in P
C. is NP-complete
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. and must have identical polynomial-time algorithms
C. by reversing the two reduction functions
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-hard
B. belongs to NP
C. belongs to P
D. is NP-complete

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 cannot be reduced from its corresponding threshold decision problem
B. It is undecidable when edge weights are represented in binary
C. It has no polynomially verifiable certificate for any feasible tour
D. It returns an optimal value or tour rather than deciding a language

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

Cook's theorem Hard
A. SAT is in NP, and every language in NP polynomial-time reduces to SAT
B. SAT is NP-hard, and every decidable language polynomial-time reduces to SAT
C. SAT is coNP-complete, and every tautology polynomial-time reduces to SAT
D. SAT is in P, and every language in NP nondeterministically 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 stores only the first and final configurations of every branch
B. The tableau has polynomially many cells, and validity is enforced by local constraints
C. The construction deterministically identifies the accepting branch before encoding it
D. The formula replaces each complete branch with one constant-size Boolean variable

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

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

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. Binary-search over tours ordered lexicographically and compare with
C. Query the optimum once and compare the returned cost 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 NP-hard but not NP-complete
B. is NP-complete but not decidable
C. is in NP but not known to be NP-hard
D. is outside NP and therefore cannot be NP-hard

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

Examples of NP-complete problems Hard
A. Binary encoding yields NP-completeness, while unary encoding permits polynomial-time dynamic programming
B. Unary encoding yields NP-completeness, while binary encoding permits polynomial-time dynamic programming
C. Both encodings yield strong NP-completeness because the number of integers is unchanged
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. XOR-SAT is NP-complete; 2-SAT, Horn-SAT, and 3-SAT are in P
B. 3-SAT is NP-complete; 2-SAT, Horn-SAT, and XOR-SAT are in P
C. Horn-SAT is NP-complete; 2-SAT, 3-SAT, and XOR-SAT are in P
D. 2-SAT is NP-complete; 3-SAT, Horn-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 NP-hard but may lie outside NP
B. is in NP but may fail to be NP-hard
C. is NP-complete
D. is polynomial-time solvable regardless of

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. Polynomial solvability only for binary inputs
C.
D. Weak NP-completeness of 3-PARTITION

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 vertex coloring, checked for distinct colors on every incident pair
C. A maximal set of edges, checked only for pairwise vertex disjointness
D. A cyclic ordering of all vertices, checked for uniqueness and required edges

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

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

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 requirement that all yes-instances map to one fixed instance
D. It violates the required equivalence if and only if

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. NP classifies decision languages, while computing is a function problem
C. The chromatic number may require exponentially many bits to represent
D. A proposed coloring cannot be checked without enumerating every other coloring

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. One at-least-one clause together with pairwise at-most-one clauses
C. One at-most-one clause together with pairwise at-least-one clauses
D. Only transition clauses relating the cell to its temporal neighbors

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 many-one 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 Turing reductions