commit | bc8b870cd7ec881b9d37963b25e870f4ea4359e6 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Thu Aug 27 19:12:44 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Aug 27 19:12:44 2020 +0000 |
tree | 16eab9c4e23c14415431457f950126b0b0274663 | |
parent | c3a0901d586ff4391083d76a14721d499d7dae68 [diff] | |
parent | 43c2a7b282eed7730836c86d1447547f96ef23cf [diff] |
[automerger skipped] Mark Android R (rvc-dev-plus-aosp-without-vendor@6692709) as merged am: cdb7a341d4 -s ours am: 570fb1d38e -s ours am: 43c2a7b282 -s ours am skip reason: Change-Id Ic91ee1134eb9cc96b09970635ad26da3e0246910 with SHA-1 010600680d is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/marisa-trie/+/12469816 Change-Id: If5a9be7eeaa7eaa20d161059345e057dda37afd6
marisa-trie
MARISA: Matching Algorithm with Recursively Implemented StorAge
0.2.6
Matching Algorithm with Recursively Implemented StorAge (MARISA) is a static and space-efficient trie data structure. And libmarisa is a C++ library to provide an implementation of MARISA. Also, the package of libmarisa contains a set of command line tools for building and operating a MARISA-based dictionary.
A MARISA-based dictionary supports not only lookup but also reverse lookup, common prefix search and predictive search.
The biggest advantage of libmarisa is that its dictionary size is considerably more compact than others. See below for the dictionary size of other implementations.
Implementation | Size (bytes) | Remarks |
---|---|---|
darts-clone | 376,613,888 | Compacted double-array trie |
tx-trie | 127,727,058 | LOUDS-based trie |
marisa-trie | 50,753,560 | MARISA trie |
You can get the latest version via git clone
. Then, you can generate a configure
script via autoreconf -i
. After that, you can build and install libmarisa and its command line tools via configure
and make
. For details, see also documentation in docs
.
$ git clone https://github.com/s-yata/marisa-trie.git $ cd marisa-trie $ autoreconf -i $ ./configure --enable-native-code $ make $ make install