00:01
So, in this problem, first of all we will write the given text.
00:05
So the given text is oovha2ohh22vvov2o2a3.
00:33
So we will now form the frequency table.
00:39
So how we form the frequency table? we just count the number of the different variables in the given text.
00:45
So first of all, we will write the variable which are given that is oovha2.
00:56
You see that o appears five times in the text, v appears five times, h appears three times, a appears two times, 2 appears five times.
01:09
So this is our frequency table.
01:14
We'll just box this off and this gives us our necessary frequency table.
01:26
So now we will form the hoffman tree.
01:30
So for hoffman tree, at the base, we will write all the different variables that we have, that is hav2o.
01:46
And we will write the respective frequency.
01:48
H is a frequency of three.
01:51
V is a frequency of two.
01:54
We have to round that out also.
01:56
V is a frequency of five.
01:58
2 is a frequency of five.
02:00
O is a frequency of, so we know that three plus two gives us five.
02:08
So we get two plus two is five and five plus five will give us 10, will give us 10.
02:26
And this side also five plus five will give us 10...