Go-datastructures is a collection of useful, performant, and threadsafe Go datastructures. Interval tree for collision in n-dimensional ranges. Implemented via a red-black augmented tree. Extra dimensions are handled in simultaneous inserts/queries to save space although this may result in suboptimal time complexity. Intersection determined using bit arrays. In a single dimension, inserts, deletes, and queries should be in O(log n) time. Bitarray used to detect existence without having to resort to hashing with hashmaps. Requires entities have a uint64 unique identifier. Two implementations exist, regular and sparse. Sparse saves a great deal of space but insertions are O(log n). There are some useful functions on the BitArray interface to detect intersection between two bitarrays. This package also includes bitmaps of length 32 and 64 that provide increased speed and O(1) for all operations by storing the bitmaps in unsigned integers rather than arrays.

Features

  • Only tested with Go 1.3+
  • Augmented Tree, Bitarray, Futures, and Queue
  • Fibonacci Heap, Range Tree, and Threadsafe
  • AVL Tree, X-Fast Trie, and Y-Fast Trie
  • Fast integer hashmap, and Skiplist
  • Immutable B Tree, Ctrie, Dtrie, and more

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow go-datastructures

go-datastructures Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of go-datastructures!

Additional Project Details

Programming Language

Go

Related Categories

Go Libraries

Registered

2021-09-09