全部 标题 作者
关键词 摘要

OALib Journal期刊
ISSN: 2333-9721
费用:99美元

查看量下载量

相关文章

更多...
Algorithms  2012 

An Online Algorithm for Lightweight Grammar-Based Compression

DOI: 10.3390/a5020214

Keywords: lossless compression, grammar-based compression, online algorithm, approximation algorithm

Full-Text   Cite this paper   Add to My Lib

Abstract:

Grammar-based compression is a well-studied technique to construct a context-free grammar (CFG) deriving a given text uniquely. In this work, we propose an online algorithm for grammar-based compression. Our algorithm guarantees O(log 2 n)- approximation ratio for the minimum grammar size, where n is an input size, and it runs in input linear time and output linear space. In addition, we propose a practical encoding, which transforms a restricted CFG into a more compact representation. Experimental results by comparison with standard compressors demonstrate that our algorithm is especially effective for highly repetitive text.

Full-Text

Contact Us

service@oalib.com

QQ:3279437679

WhatsApp +8615387084133