[solved]-Write Results Similar 5debugtxt Include Example Input Files Input File Include Intermedia Q39033824

Write down results similar to ‘5_debug.txt,’ these includeexample input files below:




Input file below. Once again, include intermediate results,Huffman tree drawing, and encoded result.

Steps to Perform Do the following Read input file 10_in.txt Calculate each character frequency (do not forget about lr and n) Make the sorted frequency table (sort by frequency, if two frequencies are the same, sort by ASCII codes, in increasing order) Build and draw the corresponding Huffman tree Make the encoding table (each character encoding) Apply the encoding to the input data and produce encoded (compressed) data Write the encoded data as a sequence of 0s and 1s While performing the exercise steps, write down their results on a piece of paper, similar to the example above. You have to include all intermediate results, the Huffman tree drawing, and the encoded result. 5_in.txt – Notepad File Edit FormatV aaa aab abc abc 5_debug.txt Notepad File Edit Format View Help Encoding 5_in.txt -> 5_encoded . txt countCharacters: 10 n 4 13 r 4) 97 a’ 7) 98 ‘b’ 3) 99 c’ (2 printQueue: 99 c’ (2) 98 ‘b’ 3) 13 r 4) 10 n (4 97 ‘a 7) makeBitData 10 n (01) 13 r 00) 97 ‘a 11 98 ‘b’ 101} 99 c’ 100 Decoding 5_encoded.txt -> 5_decoded.txt !!Files 5_in.txt and 5_decoded.txt are equal The encoded data (5_encoded.txt) is 111111000111111010001 111011000001111011000001 The decoded data (5_decoded.txt) is the same as the input file data. 5_decoded.txt – Notepad File Edit Format View Help aaa aab abc abc | 5_encoded.bxt – Notepad File Edit Format View Help 111111000111111010001111011000001111011000001 10 in.tt – Notepad File Edit Format View Help aa aabd abc Show transcribed image text Steps to Perform Do the following Read input file 10_in.txt Calculate each character frequency (do not forget about lr and n) Make the sorted frequency table (sort by frequency, if two frequencies are the same, sort by ASCII codes, in increasing order) Build and draw the corresponding Huffman tree Make the encoding table (each character encoding) Apply the encoding to the input data and produce encoded (compressed) data Write the encoded data as a sequence of 0s and 1s While performing the exercise steps, write down their results on a piece of paper, similar to the example above. You have to include all intermediate results, the Huffman tree drawing, and the encoded result.
5_in.txt – Notepad File Edit FormatV aaa aab abc abc
5_debug.txt Notepad File Edit Format View Help Encoding 5_in.txt -> 5_encoded . txt countCharacters: 10 n 4 13 r 4) 97 a’ 7) 98 ‘b’ 3) 99 c’ (2 printQueue: 99 c’ (2) 98 ‘b’ 3) 13 r 4) 10 n (4 97 ‘a 7) makeBitData 10 n (01) 13 r 00) 97 ‘a 11 98 ‘b’ 101} 99 c’ 100 Decoding 5_encoded.txt -> 5_decoded.txt !!Files 5_in.txt and 5_decoded.txt are equal The encoded data (5_encoded.txt) is 111111000111111010001 111011000001111011000001 The decoded data (5_decoded.txt) is the same as the input file data.
5_decoded.txt – Notepad File Edit Format View Help aaa aab abc abc
| 5_encoded.bxt – Notepad File Edit Format View Help 111111000111111010001111011000001111011000001
10 in.tt – Notepad File Edit Format View Help aa aabd abc
Expert Answer
Answer to Write down results similar to ‘5_debug.txt,’ these include example input files below: Input file below. Once again, incl… . . .
OR

