StackSet and QueueSet
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Seth Hoenig July 2011

This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2, as published by Sam Hocevar. See for more details.

StackSet and QueueSet
These python classes are basically as their names imply. StackSet is
a LIFO data structure which maintains a set property, meaning as
duplicate elements are added, only a single copy of that element will
be contained in the set. Likewise, QueueSet is a FIFO data structure
which also maintains the properties of a set. These structures are
designed to trade space for speed. All operations happen in the fastest
way possible in amortized time.

To use these data structures, simply copy the files and/or into somewhere that your PYTHONPATH can find them. Stick
them in your project directory, for all I care. You can even copy pasta
the source into your own source. The license allows it.