Can anyone explain how WinZIP/ WinRAR works for text file ? like for this text "Canada is a North American country" or any sample text you want to explain .
Please explain the complete process . i will be very grateful .
Can anyone explain how WinZIP/ WinRAR works for text file ? like for this text "Canada is a North American country" or any sample text you want to explain .
Please explain the complete process . i will be very grateful .
Hard to explain in a post. There are plenty of compression algorithm books.
But as a matter of curiosity, here is the result:
52 61 72 21 1A 07 01 00 D8 1B 32 51 03 01 04 04
3A B7 86 3E 4B 02 03 36 AD 00 00 A2 00 20 80 1D
00 08 74 65 78 74 2E 74 78 74 22 02 00 69 0F 7B
F1 0B 38 F2 08 44 D1 65 A1 FD 5F 7E 65 6A 5A 8A
49 E6 E2 26 EC EA 72 E9 0C 69 E9 92 E5 12 03 06
03 AD 47 F5 54 0C D3 01 45 68 31 F1 54 0C D3 01
C5 B5 2A 24 04 32 FA 33 C5 7F 15 46 F7 07 F2 28
32 86 40 8C 68 77 F0 99 07 59 DB 45 CB 1C 90 BD
04 61 E2 76 2D CD 42 A5 70 47 F3 4C 7C 1D 77 56
51 03 05 04 00
Winrar is mainly popular due to it's strong multimedia filters that can compress wav, bmp, and delta encoded data very well, so it's safe to assume that it runs a scanner first over your input to detect these file types before applying lzss with huffman encoding or PPM but only if you tell it to use it. That is the rar algorithm in a nutshell.
If you want to learn more about compression I'd recommend reading http://mattmahoney.net/dc/dce.html, Matt has done a great job explaining pretty much every possible compression algorithm and how they work.
Thanks everyone