Data Structures & AlgorithmsVery hardICPC regional · matroids
Problem: Which property does a 'matroid intersection' problem violate in general, making it harder than a single matroid?
- A. It is always solvable by sorting
- B. It has no independent sets
- C. It is trivially a tree
- 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
- Problem: What is the time complexity of finding a minimum spanning tree in a complete graph with V vertices using Prim's algorithm and an…
- Problem: What does Fermat's little theorem let you compute efficiently?
- Problem: Which statement about the Bellman-Ford algorithm is correct when there is a negative cycle reachable from the source?
- Problem: What is the minimum number of colours needed to colour a bipartite graph so that no adjacent vertices share a colour?
- Problem: Which operation does the 'pointer jumping' technique speed up in parallel algorithms, and what is its complexity?
- Problem: Which problem asks for the number of ways to walk exactly k steps on a graph from u to v?