31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

int set S | const int set& T returns the union of S and T .<br />

int set S & const int set& T returns the intersection of S and T .<br />

int set S − const int set& T returns the set difference of S and T .<br />

int set S % const int set& T returns the symmetric difference of S and T .<br />

int set ∼S returns the complement of S, i.e. [a..b] \ S.<br />

4. Implementation<br />

Integer sets are implemented by bit vectors. Operations insert, delete, member, min and<br />

max take constant time. All other operations take time O(b − a + 1).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!