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


Using static suffix array in dynamic application: Case of text compression by longest first substitution
Authors:Strahil Ristov  Damir Korenčić
Affiliation:Ru?er Boškovi? Institute, Department of Electronics, Bijeni?ka 54, 10000 Zagreb, Croatia
Abstract:Over the last decade, enhanced suffix arrays (ESA) have replaced suffix trees in many applications. Algorithms based on ESAs require less space, while allowing the same time efficiency as those based on suffix trees. However, this is only true when a suffix structure is used as a static index. Suffix trees can be updated faster than suffix arrays, which is a clear advantage in applications that require dynamic indexing. We show that for some dynamic applications a suffix array and the derived LCP-interval tree can be used in such a way that the actual index updates are not necessary. We demonstrate this in the case of grammar text compression with longest first substitution and provide the source code. The proposed algorithm has O(N2)O(N2) worst case time complexity but runs in O(N)O(N) time in practice.
Keywords:Algorithms   Enhanced suffix array   Grammar text compression   Longest first substitution   Text index update
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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