S444423_WDI_Zadania/Ćw3/s444423.txt

46 lines
663 B
Plaintext
Raw Permalink Normal View History

2019-01-21 16:10:27 +01:00
1.
o- orzeł
r-reszka
k1=[rooo,oroo,ooro,ooor]
k2=[orrr,rorr,rror,rrro]
log2 2=1
oba komunikaty wynoszą tyle samo informacji
2.
n->2^n
p1=p2=...=p^2n=1/2^n
H= 2^n/Z(i=1)
log2 1/1/2^n = n*log2 2 = 1:n [bitów]
3.
H= 5/16 * log2 16 + 5/16 * log2 16 + 3/16 * log2 16 + 2/16 * log2 16 + 1/16 * log2 16 = 5/16 * 4 + 5/16 * 4 + 3/16 * 4 + 2/16 * 4 + 1/16 * 4 = 2,5 + 0,75 + 0,5 + 0,25 = 4
5/16 5/16 3/16 2/16 1/16
001\ /000
3/16
01\ /00
6/16
11\ /10
10/16
1\ /0
16/16
5/16 5/16 3/16 2/16 1/16
11 10 01 001 000
L=2*5/16*2+3/16*2+2/16*3+1/16*3=1,25+0,375+0,375+0,1875=2,1875
R = 1,7125