This unit covers tree data structures and their use:
- Binary search trees
- Sets and maps (in library)
- Heaps
- Priority queues (in library)
- Unit 1: Complexity
- UVa 11849 - CD (uses
set
) - UVa 10226 - Hardwood Species (uses
map
, input a bit tricky) - UVa 10954 - Add All (uses
priority_queue
, make sure to uselong long
because numbers get large)
- UVa 11572 - Unique Snowflakes (uses
map
) - UVa 11136 - Hoax or what (uses
multiset
orpriority_queue
) - UVa 978 - Lemmings Battle! (uses
priority_queue
)
- UVa 10029 - Edit Step Ladders (uses
map
)