paint-brush
How LZ77 Data Compression Worksby@dbudhrani
2,016 reads
2,016 reads

How LZ77 Data Compression Works

by Dhanesh Budhrani6mSeptember 10th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

LZ77, a lossless data-compression algorithm, was created by Lempel and Ziviv in 1977. The algorithm is widely spread in our current systems since, for instance, ZIP and GZIP are based on it. The process of compression can be divided in 3 steps:Find the longest match of a string that starts at the current position with a pattern available in the search buffer. Move the cursor l+1 positions to the right and find ourselves in the character ‘b’. After this (non-)match, we find the character 'a' so we need to move 2 positions (o = 2) and read 2 characters (l)
featured image - How LZ77 Data Compression Works
Dhanesh Budhrani HackerNoon profile picture
Dhanesh Budhrani

Dhanesh Budhrani

@dbudhrani

Multidisciplinary software engineer. Currently @ Wubook. MSc @ DTU. BSc @ UC3M.

About @dbudhrani
LEARN MORE ABOUT @DBUDHRANI'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Dhanesh Budhrani HackerNoon profile picture
Dhanesh Budhrani@dbudhrani
Multidisciplinary software engineer. Currently @ Wubook. MSc @ DTU. BSc @ UC3M.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite