Compressed data and values you cannot expand
- Stage
- 4
- Module
- M4.14
- Lessons
- 1
In this module
- Identify when a value is too large to store or iterate over directly.
- Use coordinate compression to map large values to a smaller range.
- Understand when expansion is possible and when it is not.
- Apply compression to solve problems where naive expansion would time out.
Before this module
Lessons
Practice
Try these on the judges. Each link opens the problem on WMOJ or DMOJ.
- 2015 J4Wait Time (opens on DMOJ in a new tab) DMOJ
Track events over a wide time range using a dictionary keyed by time, not a huge array.
Why DMOJ: An older problem where a dictionary keyed by time stands in for full coordinate compression.
- 2022 J5Square Pool (opens on WMOJ in a new tab) WMOJ
Narrow a huge coordinate plane down to a small set of candidate points worth checking.