Questions: Counting Complexity and the Sharp-P Class

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Given a bipartite graph, you need to determine (a) whether a perfect matching exists, and (b) how many perfect matchings exist. What is the computational complexity of each task?

ABoth tasks are in P — matching algorithms solve both efficiently
BTask (a) is in P; task (b) is #P-complete — deciding is easy but counting is hard
CBoth tasks are NP-complete — matchings are hard to find and count
DTask (a) is NP-complete; task (b) is in P — counting is easier than deciding for matchings
Question 2 Multiple Choice

Why is computing the permanent of a matrix computationally harder than computing the determinant, even though their formulas differ only in that the permanent uses all-positive signs while the determinant uses alternating signs?

AThe permanent formula has more terms and therefore takes longer to evaluate directly
BThe alternating signs in the determinant allow Gaussian elimination to exploit massive algebraic cancellations, while the all-positive permanent eliminates this structure
CMatrices with all-positive permanents are rarer than those with non-zero determinants, making them harder to find
DThe permanent is not actually harder — it just lacks efficient built-in software support
Question 3 True / False

#P is a subset of NP because most #P counting problem has a corresponding NP decision problem.

TTrue
FFalse
Question 4 True / False

A problem that is easy to decide (solvable in polynomial time, i.e., in P) can seldom be #P-hard to count.

TTrue
FFalse
Question 5 Short Answer

Explain why Toda's theorem implies that counting solutions is 'more powerful' than deciding membership, even with the full computational power of the polynomial hierarchy.

Think about your answer, then reveal below.