Could you explain how to convert from lz77 to huffman on the example in the below picture?
Could you explain how to convert from lz77 to huffman?
604 Views Asked by Zeyad Etman At
2
There are 2 best solutions below
Related Questions in GZIP
- Convert JSON.gz to JSON in node js
- How can i read a json file in gzip?
- Does anyone know how to read gzip file(gzip in thr spoolSourceDirectory) in Flume process?
- Grep a gzipped file?
- Compress json array list in java(Spring mvc) and decompress it in javascript(angular js)
- Seeking on a gz connection is unpredictable
- How do I grep GZ files to extract PNG files?
- I want to create a script for unzip (.tar.gz) file via (Python)
- getting CRC error while decompressing a gzip file in python
- Delete specific line(pattern) from .gz file using python for large file size
- How do I link a gzipped version of a stylesheet?
- Glassfish4 gzip encoding issue (corrupted responses)
- Apache settings to send gzipped CSS/JS files to browser
- Open a gz file using Minizip Library
- gzip and pipe to output (performance consideration)
Related Questions in HUFFMAN-CODE
- How to calculate Huffman code length without generating the actual huffman code
- Huffman algorithm inverse matching
- Cortex M0 hardfault; BLC Huffman
- nodes and structures in c
- Image compression with Huffman tree
- Unable to encode a file using Huffman tree in C
- fprintf(long) writes 8 bytes and fscanf(long) reads 6 bytes why?
- Will Serialization Help in Storing a Huffman Tree To A File
- Reconstructing Huffman tree from (preorder) bitstring in Haskell
- Huffman Tree, recursive function crashes (pointers are not relayed correctly)
- Huffman Coding Creating Tree C++
- Traversing helper method for a Huffman tree
- What is the worst case runtime for the most efficient algorithm to build a huffman tree?
- Storing table of codes in a compressed file after Huffman compression and building tree for decompression from this table
- Algorithm for Huffman Tree not working
Related Questions in LZ77
- LZ 77, 78 algorithm for ECG Compression
- understanding this LZSS based decompression algorithm
- Wrong encoding in LZ77
- LZ77 Extra Bits in DEFLATE
- ZPL II decode Z64 (base64 and LZ77) to human readable text in Python
- MS-XCA decompression metadata points outside of the compressed byte array
- How can I optimize my Lz77 Sliding Window Compressor?
- LZ77 and LZ78 differences in dictionaries
- Can DEFLATE only compress duplicate strings up to 32 KiB apart?
- How to Merge huffman and lz77?
- Could you give me some explain of LZ77 Algorithm?
- decompress a doc file using LZS algorithm
- How to use the "compressed binary" `C` arg for the compression type parameter of `^GF` in ZPL?
- DEFLATE: is back-reference really better?
- Decoding Z64 (ZB64) string
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

Easy:
In the first step your output is essentially 3 numbers:
The algorithm demands that you specify a sliding window up front. That means you know how big (1) and (2) can be at most. In other words, you know how many bits (1) and (2) will take up. Since (3) is essentially also a character from a fixed length alphabet, you also know the bit-length of (3)
That means it's safe to simply concatenate them. So, the output of the first algorithm can be thought of as outputting a bit-sequence, where every item in the sequence has a fixed length.
That's ideal for applying huffman.
Of course the specifics are not mentioned, and you can choose from a lot of options.
So I can not readily explain the exact output values you are showing. But I hope I can at least explain how to get from A to B.