Login   Register  
PHP Classes

Huffman Compress: Perform Huffman compression on plaintext files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of David H.
Name: David H. <contact>
Classes: 1 package by
Country: France France
Age: 30
All time rank: 136943 in France France
Week rank: 1080 Up31 in France France Up

  Detailed description   Download Download .zip .tar.gz  
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.

  Classes of David H.  >  Huffman Compress  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Huffman Compress
Base name: huffcompress
Description: Perform Huffman compression on plaintext files
Version: -
PHP version: -
License: Freeware
All time users: 1971 users
All time rank: 1866
Week users: 1 user
Week rank: 1397 Up
  Groups   Rate classes User ratings   Applications   Files Files  

Group folder image Compression Data compression and file archive manipulation View top rated classes

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (65%) Sufficient (78%) Sufficient (75%) - - - Not sure (48%) 1735
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file compress.inc.php Class Compression class
Plain text file compresslib.inc.php Class Elements common to Compression and Expansion
Accessible without login Plain text file customlib.inc.php Aux. Personal extra functions (required nonetheless)
Plain text file expand.inc.php Class Expansion class
Accessible without login Plain text file INSTALL Doc. Installation instructions
Accessible without login Plain text file README Doc. Abstract info, License and Terms of Use, Use and Function Reference

Download Download all files: huffcompress.tar.gz huffcompress.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.