How to write huffman coding algorithm without using huffmanenco & huffmandeco ?

Status
Not open for further replies.

valentinacruise

Newbie level 1
Joined
Dec 15, 2014
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
6
i should code the huffman coding without matlab codes (huffenco and deco). i mean i should write huffmanenco & huffmanenco myself. can any body help me?
 

Re: How to write huffman coding algorithm without using huffmanenco & huffmandeco ?

Why should you write them yourself? They are already written and working. If you mean you want to be able to see the source code yourself, just type the following into Matlab:


Code Matlab M - [expand]
1
2
edit huffmanenco
edit huffmandeco



There will be some extra error-checking stuff that you probably won't really need... but you can strip down the code however you want.

Alternatively, note that these functions have been implemented in GNU Octave (the free, open source version of Matlab). Because it is open source, you can freely access the code online:

https://sourceforge.net/p/octave/communications/ci/default/tree/inst/huffmanenco.m
https://sourceforge.net/p/octave/communications/ci/default/tree/inst/huffmandeco.m
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…