Vstup:: Sekvencia symbolov Výstup:: Kratšia sekvencia symbolov, ktorá vyjadruje pôvodnú sekvenciu
[https://www.asciiart.eu/animals/aardvarks](Art by Horroroso)
_,,......_
,-' `'--.
,-' _ '-.
(`. ,' , `-. `.
\ \ - / ) \ \
`\`-^^^, )/ | / :
)^ ^ ^V/ / '.
| ) | `.
9 9 /,--,\ |._:` .._`.
| / / `. \ `. ( `.`.
| / \ \ \ \ `--\ ) `.`.___
-hrr- .;;./ ' ) ' ) ///' `-"'
`--' 7//\ ///\
WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW
12W1B12W3B24W1B14W
Podľa wiki:
Prebieha v plávajúcom okne, ktoré je rozdelené na minulosť a budúcnosť.
Prebieha v plávajúcom okne.
Kombinácia LZ 77 a Huffman Encoding.
Jeho upravená verzia sa nazýva Lempel-Ziv-Welch
[quote,Wikipedia]
At each stage in compression, input bytes are gathered into a sequence until the next character would make a sequence for which there is no code yet in the dictionary. The code for the sequence (without that character) is added to the output, and a new code (for the sequence with that character) is added to the dictionary.
číslo záznamu v slovníku + symbol
Podľa blogu: