Skip to content

addrummond/iskiplist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Packages

No packages published

Languages