darts-clone - A clone of the Darts (Double-ARray Trie System) - Google Project Hosting

darts-clone - A clone of the Darts (Double-ARray Trie System) - Google Project Hosting

Darts-clone: A clone of Darts (Double-ARray Trie System)

Darts-clone is a clone of Darts (Double-ARray Trie System), which is a C++ header library for double-array structure.

The major advantages of Darts-clone are as follows:

1. Half-size units

While Darts allocates 8 bytes to each unit, Darts-clone allocates only 4 bytes to each unit. This feature simply halves the size of dictionaries.

2. More sophisticated structure

While Darts uses a trie to implement a dictionary, Darts-clone uses a Directed Acyclic Word Graph (DAWG), which is derived from a trie by merging its common subtrees. Darts-clone thus requires less units than Darts if a given keyset contains many duplicate values.

Due to these advantages, Darts-clone achieves more compact dictionaries without degrading search performance.

你可能感兴趣的:(project)