subject

Variation of the "Drunken Sailor Problem"There is a famous probability problem that states: If a drunken sailor leavesthe pub and had too much to drink so that they do not know how to get back, could they eventually get back with a nite amount of random steps, or is itpossible that they'll get lost forever? (the answer ends up being that they'llalways nd their way back if the choice is always random!)This requires a bit more than what we have right now, but here is a variation. Instead of a grid, like the original problem, we'll think of a long street. We cantrack the sailor's possible positions at any point in time using matrix algebra. Some denitions before we can begin:Remember that the diagonal of a (square) matrix are all entries ai;i where therow coordinate is equal to the column coordinate. The super-diagonal are all the entries one position to the right of the diagonal.(Alternatively, all entries one position above the diagonal)The sub-diagonal are all entries one position to the left of the of the diagonal.(Alternatively all entries one position below the diagonal)a) For 2x2 and 3x3 matrices, write the matrices that correspond to 1's on thesuper-diagonal (zeroes everywhere else). Do the same for the sub-diagonalb) Write two equivalent subscript notations for the sub and super diagonal ofa matrix (e. g. ai;i is the subscript notation for the diagonal)c) The matrix that has 1's on the super-diagonal and sub-diagonal is an ad-jacency matrix (symmetric, 0's on diagonal and only 1's as entries). Draw orexplain what the graph associated looks like in any dimension. d) If this n n adjacency matrix is A, calculate A2.e) Find the diagonal for An if n is odd (Hint: It is easier to explain via thegraph!)f) Interpret what ai;j means in the drunken sailor problem for any power of A

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:30
Given the following code: if (n == 2) { k -= 2; } else if (n == 3) { k -= 3; } can be rewritten as: if (< condition > ) { < assignment statement > ; } assume that evaluating < condition > does not change the values stored in n and k. which of the following could be used as < assignment statement > ? k -= n; k -= 1; k -= 2; k += n; k = n - k;
Answers: 2
question
Computers and Technology, 24.06.2019 14:30
Ahousehold consists of a married couple and their twin five-year old daughters. the couples children had no income and lived with their parents all of last year. how many exemptions can the couple claim on last years tax return or they file with the “ married filing jointly “ status? a. 4 b. 5 c. 3 d. 2
Answers: 1
question
Computers and Technology, 25.06.2019 01:20
Jason typically uses the internet to buy various items. it the total cost of all of the items ordered, at one time, is $250 or more, then the shipping and handling is free, otherwise the shipping and handling is $15 per item. design an algorithm that prompts jason to enter the number of items ordered and the price of each item. (remember cost = number of items order times price) the algorithm then outputs the total billing amount including shipping and handling. your algorithm must use a loop (repetition structure) to get the number and price of each item. write this in algorithm format not program code format.
Answers: 2
question
Computers and Technology, 25.06.2019 08:30
What is the chief concern of cloud computing?
Answers: 1
You know the right answer?
Variation of the "Drunken Sailor Problem"There is a famous probability problem that states: If a dru...
Questions
question
Health, 18.01.2020 01:31
Questions on the website: 13722363