

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: CRYPTOGRAPHY; Subject: Mathematics; University: University of California - Los Angeles; Term: Unknown 1989;
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Math 171 Homework #2 – due Friday 4/18, in class
a. octave:1> P = [0 1/3 1/3 1/3 0; 1/3 0 1/3 0 1/3; 1/2 1/2 0 0 0 ; 1/2 0 0 0 1/2; 0 1/2 0 1/2 0] P =
octave:2> [1 0 0 0 0] * P^1000 * [1 0 0 0 0]’ ans = 0.
b. E(T ) = (^) π^1 (i) = (^). 251 = 4
c. Consider vertex A to be totally absorbing. Then our matrix becomes
1 0 0 0 0 1 / 3 0 1 / 3 0 1 / 3 1 / 2 1 / 2 0 0 0 1 / 2 0 0 0 1 / 2 0 1 / 2 0 1 / 2 0
Then
and
Thus the sytem spends on average 0.818 visits to B before being absorbed at vertex A.
d. Now let A and C be totally absorbing. Then we have
B D E
Then
and
So starting at vertex B, we have a 0.42857 chance of ending up at vertex C.
e. We sum the second row of the matrix from part c. and get 2.6364.
We are concerned with the sum of the rolls modulo 8. So the possible states for the system are 0,... , 7, and our transition matrix is
0 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 0 0 0 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 0 0 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 0 0 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 0 0 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 0 0 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 0 0 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 1 / 6 0 0
T 1 is the number of steps until we return to 0. So then set 0 to be totally absorbing and we have
M =
The sum of row 1 is the expected time to absorb at zero, given that we start at 1. Since our first roll gives us equal chance at starting in rows 1 through 6, we average the sums of those rows and get 8.
T 2 is the number of steps until we land in state 1. Set 1 to absorbing an then