Exam 1 is due at the beginning of class Tuesday: [PDF] [Word Template]
-
Recent Posts
Recent Comments
Categories
- Announcements (44)
- Assignments (10)
- Classes (21)
- Exams (6)
- News (1)
Archives
- July 2011 (1)
- December 2010 (3)
- November 2010 (11)
- October 2010 (14)
- September 2010 (24)
- August 2010 (12)
Blogroll
Meta
For #4, in the overview of the MultiSet type, it states “where the set braces mean the collection is ordered.” Should this say unordered?
Yes, that is a mistake. It collection is unordered. The multiset is an unordered bag of elements, where the same value can appear more than once.
Several people have asked questions about the abstraction function for HashMap:
This is a bit confusingly worded since I didn’t define what “x” is here. By x, I mean the set { x_1, … , x_n} that is the abstract representation of the multiset. So, if say, map.get(3) = 7 then the value 3 (key) appears in this set (x) 7 times.