#binary-search-tree #heap #map #set #time #splay

no-std splay_tree

Splay Tree based Data Structures (map, set, heap)

15 releases

0.3.1 Dec 3, 2022
0.2.10 Apr 14, 2018
0.2.9 Oct 30, 2017
0.2.6 Nov 28, 2016

#1893 in Data structures

Download history 87/week @ 2024-10-20 110/week @ 2024-10-27 96/week @ 2024-11-03 53/week @ 2024-11-10 74/week @ 2024-11-17 151/week @ 2024-11-24 130/week @ 2024-12-01 169/week @ 2024-12-08 171/week @ 2024-12-15 70/week @ 2024-12-22 86/week @ 2024-12-29 221/week @ 2025-01-05 253/week @ 2025-01-12 272/week @ 2025-01-19 175/week @ 2025-01-26 292/week @ 2025-02-02

1,017 downloads per month
Used in 34 crates (2 directly)

MIT license

96KB
2K SLoC

splay_tree

Documentation Build Status Code Coverage License: MIT

splay_tree provides data structures such as map, set and heap which are based on an in-place top-down splay tree.

A splay tree is a self-adjusting binary search tree with the additional property that recently accessed elements are quick to access again. It performs basic operations such as insertion, look-up and removal in O(log n) amortized time. - Splay tree (Wikipedia)

Documentation

See RustDoc Documentation.

The documentation includes some examples.

Installation

Add following lines to your Cargo.toml:

[dependencies]
splay_tree = "0.2"

Reference

License

This library is released under the MIT License.

See the LICENSE file for full license information.

Dependencies

~155KB