September 19, 2017
Tuesday of Week 5
Topic of the day
- Using maps
Suggested reading
- Section 4.8 from Mark Allen Weiss, Data structures and algorithm analysis in C++, 3e
Online references
- map in C++ (en.cppreference.com)
- Map in Java (docs.oracle.com)
Questions and exercises
- Consider the map/dictionary type in the language of your choice. If you have a key and you aren't sure it's in the map, what can/should you do? Do you need to first check if it's present? (_Can_ you?) What happens if you try to access a key that isn't present?
Assignments
Today
- Project 2: SpamAssassin design due
- Homework 2 due
Upcoming
- Homework 1 (date in handout was incorrect; now fixed) revision due (26 Sep)
- Homework 2 revision due (26 Sep)