0 purchases
radix tree
Radix Tree #
Map based Dart implementation of the Radix Tree data structure.
A radix tree maps strings to values, allowing efficient string lookup and
prefix queries.
Based on radix-tree.
Usage #
A simple usage example:
import 'package:radix_tree/radix_tree.dart';
void main(List<String> arguments) {
var tree = RadixTree<int>();
tree['paku'] = 1;
tree['piku'] = 2;
tree['pako'] = 3;
tree.getValuesWithPrefix('p'); // list contains 1, 2, 3
tree.getValuesWithPrefix('pa'); // list contains 1, 3
}
copied to clipboard
License #
This project is licensed under the MIT license.
Features and bugs #
Please file feature requests and bugs at the issue tracker.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.