WEBVTT

00:00.360 --> 00:01.830
Hey everybody welcome to the next video.

00:01.830 --> 00:06.070
So in this video we're gonna be talking about Elsie 77 and Elsie 78.

00:06.210 --> 00:13.770
So Elsie seventy seven the way this works is it replaces the repeated occurrences of data or characters

00:14.250 --> 00:17.190
with a reference to a single master copy.

00:17.430 --> 00:20.380
This master copy is normally held at the beginning of the file.

00:20.660 --> 00:25.290
It consistently holds the amount of data and memory that it last saw when comparing matches.

00:25.320 --> 00:32.880
So as it goes through the file to start compressing it it will keep track of the last section of data

00:32.910 --> 00:36.530
which can be two bytes four bytes 32 bytes.

00:36.630 --> 00:40.640
It just it just depends on how much data has to go through.

00:40.650 --> 00:46.380
This is also known as a sliding window so the the amount of data held in memory is called the sliding

00:46.380 --> 00:50.040
window which is gives it the name the sliding window compression.

00:50.040 --> 00:55.410
Now on compressing this does the exact opposite forgetting forget the sliding window part but what it

00:55.410 --> 01:02.130
does is it just goes to the file and replaces the reference with the master copy and just continuously

01:02.130 --> 01:07.730
replaces all the references with the master copy until the data has been put back.

01:07.800 --> 01:15.210
Now Elsie 78 while similar tells you 77 we'll look for all the repeated data like it should but it will

01:15.210 --> 01:18.260
replace all the data with a reference like Elsie 77.

01:18.360 --> 01:20.640
But it does it in an internal directory.

01:20.700 --> 01:26.400
So what you'll see here is the directory and then some directory index with an index number and then

01:26.400 --> 01:27.690
a character.

01:27.720 --> 01:33.500
So this kind of compounds on itself pretty hard when you start looking at the single characters.

01:33.510 --> 01:39.480
So what I'm gonna do is I'm gonna lead links above the video to Elsie 77 and Elsie 78.

01:39.510 --> 01:43.540
So you can read a little bit more detail of exactly how it works behind the scenes.

01:43.770 --> 01:51.570
Again on compressing this we'll just have it replace the data at the correct index or the separate or

01:51.570 --> 01:57.480
the specific character at the correct index in the file which in turn will give it the exact output

01:58.110 --> 01:59.910
as it had input when it compressed it.

01:59.970 --> 02:03.450
So these again are a lossless type of compression.
