https://github.com/marcelog/erl_lzw
LZW in Erlang, Not optimized in any way, written just for fun.
https://github.com/marcelog/erl_lzw
erlang lzw
Last synced: 8 months ago
JSON representation
LZW in Erlang, Not optimized in any way, written just for fun.
- Host: GitHub
- URL: https://github.com/marcelog/erl_lzw
- Owner: marcelog
- License: apache-2.0
- Created: 2017-09-06T20:28:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-08T16:54:57.000Z (almost 9 years ago)
- Last Synced: 2025-08-19T08:48:29.038Z (10 months ago)
- Topics: erlang, lzw
- Language: Erlang
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# erl_lzw
LZW implementation in Erlang, as explained in https://en.wikipedia.org/wiki/Lempel–Ziv–Welch
This is not optimized in any way, but was written just for fun.
# Example
```
1> {ok, Input} = file:read_file("./src/lzw.erl").
2> {Output, Bits, Dict} = lzw:compress(Input).
3> Ori = lzw:uncompress(Output, Bits, Dict).
4> file:write_file("/tmp/original_file.txt", Ori).
```
## License
The source code is released under Apache 2 License.
Check [LICENSE](https://github.com/marcelog/erl_lzw/blob/master/LICENSE) file for more information.