582484 Algorithm Libraries

Exercise 5


  1. Compute a simple checksum over vector<int> as an exclusive-or (operator^) over all the elements. Use accumulate and
    1. Your own functor.
    2. Boost::lambda.
  1. An expanded version of the simple list example from lectures is available here. As it is, list nodes are never deleted. Modify the code to properly delete of the nodes.
    1. Without any smart pointers.
    2. Using boost::shared_ptr.