Crates.io | aatree |
lib.rs | aatree |
version | 0.2.2 |
source | src |
created_at | 2021-11-06 14:41:02.120329 |
updated_at | 2023-01-22 13:02:13.579854 |
description | AATree implementation in Rust |
homepage | |
repository | https://github.com/msrd0/aatree |
max_upload_size | |
id | 477676 |
size | 78,688 |
This crate implements an AA Tree in Rust. An AA Tree is basically a Red-Black Tree that disallows right children to be red. This results for less complexity in the implementation. For further details on the data structure, see https://en.wikipedia.org/wiki/AA_tree for more information on the data structure.
The standard library comes with a good set of data structures. See std::collections
for a list of data structures and their (dis)advantages, however, not all advertised functionality of BTreeMap
is actually implemented (at the time of writing). On average, this AA Tree implementation is about half as fast as the standard libraries BTree
data structures.
AATree
over std::collections::BTree
AATree
over std::vec::Vec
As all rust crates, this crate will follow semantic versioning guidelines. However, increasing the MSRV (minimum supported rust version) is not considered a breaking change.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.