首页 | 本学科首页   官方微博 | 高级检索  
     

一种基于有序二叉树的高效优化索引树
引用本文:吴海辉,吴建国.一种基于有序二叉树的高效优化索引树[J].微机发展,2004,14(4):18-21,24.
作者姓名:吴海辉  吴建国
作者单位:安徽大学计算机系,安徽大学计算机系 安徽合肥230039,安徽合肥230039
摘    要:在编制汉字输入法的过程中遇到了字符串的存储和检索问题,对此提出了一种基于有序二叉树的高效优化索引树,给出了优化索引树的生成算法和搜索算法。在该高效优化索引树中,采用特定的非定长结构存储树节点,并把索引树存放在一个字节型逻辑数组中,从而大大减少了索引树中儿子指针和兄弟指针的个数,使得索引树中不存在空指针。优化后的索引树不仅占用存储空间少,而且检索速度极快,非常适合存储编码信息。

关 键 词:数据结构  有序二叉树  高效优化索引树  汉字输入法  存储结构
文章编号:1005-3751(2004)04-0018-04

An Efficient Optimized Trie-Tree Based on Ordered Binary Tree
WU Hai-hui,WU Jian-guo.An Efficient Optimized Trie-Tree Based on Ordered Binary Tree[J].Microcomputer Development,2004,14(4):18-21,24.
Authors:WU Hai-hui  WU Jian-guo
Abstract:Encountered string retrieval while programming an input method editor of Chinese character.Thus have proposed an efficient optimized trie-tree based on ordered binary tree.By using special structure as the trie-tree node's memory structure and putting the trie-tree in a byte logic array,got an optimized trie-tree which avoided null pointer.The optimized trie-tree have the merits of low memory space and rapid tree traversal.In this paper,also presented the algorithms of building and retrieval of the optimized trie-tree in detail.
Keywords:binary tree  trie-tree  optimized trie-tree  
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号