Oct 2

Lecture Overview

I finished talking about space efficient linked lists.

Here is my implementation: selist.cpp. A few notes:

Exercise

To my selist.cpp implementation, put in the gather and remove methods. You should be able to directly translate them from the pseudocode to C++. I have already implemented remove_node, so inside gather and remove you can just call the remove_node method on the block. Remember that b+1 is block_array_size, so during the translation of the pseudocode you need to change b.