Programming Exercise: Set Comparisons - Sorting

In this exercise, we will develop a technique for comparing the contents of two multi-sets (the mathematical term "set" means roughly "group of items whose order doesn't matter, which cannot have duplicated values." "Multi-set" means "set of items where each value may be duplicated an arbitrary number of times.")

Remeber that to use vectors you need to have #include <vector> in your file.

STL Lists

Here is a very quick primer on the basic functionality for STL lists. (Note that the STL list type is a doubly-linked list, so insert and remove operations on both ends are efficient. A more space-efficient type, slist is also available, which has essentially the same interface.)

3 points

Extra Credit Options