This class is intented to perform Huffman static compression on files with a PHP script.
Such compression is essentially useful for reducing the size of texts by about 43% ; it is at its best when working with data containing strong redundancies at the character level -- that is, the opposite of a binary file in which the characters would be spread over the whole ASCII alphabet.
It is questionable whether anyone would want to do such an operation with PHP, when C implementations of much stronger and more versatile algorithms are readily avaible as PHP functions. The main drawback of this script class is slowness despite processing intensiveness (7 to 8 seconds to compress a 300Kb text, about 25 seconds to expand it back).
This class will therefore probably find more of a pedagogical purpose more than anything else. That is the context it was written in, anyway.
|
|
| Name: |
Huffman Compress |
| Base name: |
huffcompress |
| Description: |
Perform Huffman compression on plaintext files |
| Version: |
- |
| PHP version: |
- |
| License: |
Freeware |
| All time users: |
1922 users |
| All time rank: |
1835 |
| Week users: |
1 user |
| Week rank: |
2089  |
| |
|
| Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
| All time: |
Sufficient (65.6%) |
Sufficient (78.1%) |
Sufficient (75.0%) |
- |
- |
- |
Not sure (48.1%) |
1655 |
| Month: |
Not yet rated by the users |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|