Skip to content

Collections pkg for golang - generics support and thread-safe

License

Notifications You must be signed in to change notification settings

althk/collections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collections

Generics-based, collection based data structures. Some of the collections provide thread-safe versions.

These data structures are based on Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne. All credit for the algorithms goes to the authors.

The package currently has the following data structures (all generics-based):

  • MaxPQ - A basic max heap.
  • ConcurrentMaxPQ - Thread-safe max heap.
  • RBTree - An implementation of a red-black tree.
  • Set - A basic implementation of a collection with properties of a Set and allowing Set operations.