Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
pcg
 
 
 
 
 
 
 
 
 
 
 
 

iskiplist

Indexable skip lists for Go.

Skip lists are typically used to implement associative arrays (analogous to Go maps). The ISkipList provided by this package is a sequence with O(log n) access, insertion and removal of elements at a given index (analogous to Go slices, but with different big O characteristics).

Each element of an ISkipList is an int. The idea is to use the int value as an index into a slice of the data structure of your choice. If this isn't feasible, you can modify ElemType in iskiplist.go and a handful of other definitions. See the comment below the definition of ElemType for details.

Each ISkipList maintains its own local PCG pseudorandom number generator state.

Documentation

https://godoc.org/github.com/addrummond/iskiplist

https://godoc.org/github.com/addrummond/iskiplist/buffered

About

An implementation of an indexable skip list in Go

Resources

License

Releases

No releases published

Packages

No packages published

Languages