Data Structures & AlgorithmsVery hardICPC regional · matroids

Problem: Which property does a 'matroid intersection' problem violate in general, making it harder than a single matroid?

  1. A. It is always solvable by sorting
  2. B. It has no independent sets
  3. C. It is trivially a tree
  4. D. It needs two matroids, and greedy alone is not optimal for their intersection

Correct answer: D. It needs two matroids, and greedy alone is not optimal for their intersection

Intersecting two matroids requires augmenting-path methods, since greedy is optimal for a single matroid only.

More Coding Interview Problems questions

Exams that ask this topic