Data Structures & AlgorithmsVery hardICPC regional · combinatorics
Problem: What does Dilworth's theorem say about a finite partially ordered set?
- A. The minimum number of chains covering it equals the maximum size of an antichain
- B. It always has a total order
- C. Every element is comparable to every other
- D. It has a unique maximal element
Correct answer: A. The minimum number of chains covering it equals the maximum size of an antichain
A chain cover and an antichain are dual, which is exactly Dilworth's theorem.
More Coding Interview Problems questions
- Problem: What is the time complexity of range-assign and range-sum queries with a lazy segment tree?
- Problem: What does the two-heap technique compute in a data stream?
- Problem: Which structure gives the best rational approximations to a real number in a tree form?
- Problem: Which algorithm computes the longest path in a weighted directed acyclic graph in O(V + E)?
- Problem: What is the minimum number of colours that suffices for any planar graph?
- Problem: What is the time complexity of computing the KMP prefix function of a pattern of length m?