Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dcjones/hat-trie
An efficient trie implementation.
https://github.com/dcjones/hat-trie
Last synced: 21 days ago
JSON representation
An efficient trie implementation.
- Host: GitHub
- URL: https://github.com/dcjones/hat-trie
- Owner: dcjones
- License: mit
- Created: 2011-08-13T23:40:53.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2020-11-25T15:10:45.000Z (almost 4 years ago)
- Last Synced: 2024-10-13T19:29:25.991Z (about 1 month ago)
- Language: C
- Homepage:
- Size: 121 KB
- Stars: 252
- Watchers: 13
- Forks: 46
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
Hat-Trie
========[![Build Status](https://travis-ci.org/dcjones/hat-trie.svg)](https://travis-ci.org/dcjones/hat-trie)
This a ANSI C99 implementation of the HAT-trie data structure of Askitis and
Sinha, an extremely efficient (space and time) modern variant of tries.The version implemented here maps arrays of bytes to words (i.e., unsigned
longs), which can be used to store counts, pointers, etc, or not used at all if
you simply want to maintain a set of unique strings.For details see,
1. Askitis, N., & Sinha, R. (2007). HAT-trie: a cache-conscious trie-based data
structure for strings. Proceedings of the thirtieth Australasian conference on
Computer science-Volume 62 (pp. 97–105). Australian Computer Society, Inc.2. Askitis, N., & Zobel, J. (2005). Cache-conscious collision resolution in
string hash tables. String Processing and Information Retrieval (pp.
91–102). Springer.Installation
------------git clone [email protected]:dcjones/hat-trie.git
cd hat-trie
autoreconf -i
./configure
make installTo use the library, include `hat-trie.h` and link using `-lhat-trie`.
Tests
-----Build and run the tests:
make check
Other Language Bindings
-----------------------
* Ruby - https://github.com/luikore/triez
* Python - https://github.com/kmike/hat-trie