浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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.

posted on 2012-10-19 16:03  lexus  阅读(193)  评论(0)    收藏  举报