The expected length of code for one encoded symbol is

where
is the probability of picking the letter
, and
is the length of code needed to encode
.
is given to us, and we have

so that we expect a contribution of

bits to the code per encoded letter. For a string of length
, we would then expect
.
By definition of variance, we have
![\mathrm{Var}[L]=E\left[(L-E[L])^2\right]=E[L^2]-E[L]^2](https://tex.z-dn.net/?f=%5Cmathrm%7BVar%7D%5BL%5D%3DE%5Cleft%5B%28L-E%5BL%5D%29%5E2%5Cright%5D%3DE%5BL%5E2%5D-E%5BL%5D%5E2)
For a string consisting of one letter, we have

so that the variance for the length such a string is

"squared" bits per encoded letter. For a string of length
, we would get
.
Answer:
Cost of Blanket = 32
Step-by-step explanation:
Let the cost of a blanket be = b , cost of a scarf be = s. Blanket price x Blanket Quantity & Scarf Price x Scarf Quantity sum up to be total sales.
So, Day 1 : 2b + 5s = 104 (i) , Day 2 : 3b + 4s = 128 (ii)
Solving equations : Multiplying (i) by 3 , & (ii) by 2 , we get
6b + 15s = 312 ,
(-)6b + (-)8s = (-)256
By elimination method, 15s - 8s = 312 - 256 → 7s = 56 → s = 56 / 7 = 8 .
Putting s value in any equation i], 2b + 5 (8) = 104 → 2b + 40 = 104 → 2b = 104 - 40 = 64 → b = 64 / 2 = 32
Answer:
1640yd
Step-by-step explanation:
10*10*2=200
36*40=1440
200+1440=1640 yd
Answer:
(5√2) / 2
Step-by-step explanation:
Multiply
(5 / √2) * (√2 / √2) = (5√2) / 2
Answer:
The statement
the product of 60 and the number of seconds is written as
60 * s
Hope this helps you