Samjog
Samjog

Reputation: 31

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?

Upvotes: 0

Views: 958

Answers (1)

Shamim Hafiz - MSFT
Shamim Hafiz - MSFT

Reputation: 22064

You can maintain a Trie Data Structure.

Upvotes: 1

Related Questions