Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need C library that implements set operations

Tags:

c

set

I'm looking for a C library (not C++) that implements set operations. I need to support the following operations:

  • intersection
  • union
  • elementOf
  • isSubset
  • insert (add to set)
  • clone
  • equals

Could I just use the libc binary tree routines?

like image 326
Barry Brown Avatar asked Nov 30 '10 01:11

Barry Brown


1 Answers

I haven't used it myself, but pblSet looks solid.

like image 52
Johan Kotlinski Avatar answered Oct 04 '22 18:10

Johan Kotlinski