简体   繁体   中英

Data Compression algorithm

I need an alogorihtm to store credit card data in reduced format [less memory]. For eg:-to store following number as 12345665 12345777 12456666 12458888

as
12345
665 777
1245
6666 8888
Is there any algorithm to find out best storage group?

您可以维护Trie数据结构。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM