Application to mobile computer networks. Computer

Chapter 4, Problem 7E

(choose chapter or problem)

Get Unlimited Answers
QUESTION:

Application to mobile computer networks. Computer scientists often model the movement of a mobile computer as a random path within a rectangle. That is, two points are chosen at random within the rectangle, and the computer moves on a straight line from the first point to the second. In the study of mobile computer networks, it is important to know the mean length of a path (see the article "Stationary Distributions for Random Waypoint Models," W. Navidi and T. Camp, IEEE Transactions on Mobile Computing, 2004:99-108). It is very difficult to compute this mean directly, but it is easy to estimate it with a simulation. If the endpoints of a path are denoted \(\left(X_{1}, Y_{1}\right)\), and \(\left(X_{2}, Y_{2}\right)\), then the length of the path is \(\sqrt{\left(x_{2}-X_{1}\right)^{2}+\left(Y_{2}-Y_{1}\right)^{2}}\). The mean length is estimated by generating endpoints , and  for many paths, computing the length of each, and taking the mean. This exercise presents a simulation experiment that is designed to estimate the mean distance between two points randomly chosen within a square of side 1 .

a. Generate 1000 sets of endpoints \(\left(X_{1}^{*}, Y_{1}^{*}\right)\), and \(\left(X_{2}^{*}, Y_{2}^{*}\right)\) Use the uniform distribution with minimum value 0 and maximum value 1 for each coordinate of each point. The uniform distribution generates values that are equally likely to come from any part of the interval .
b. Compute the 1000 path lengths \(L_{i}^{*}=\sqrt{\left(X_{2 i}^{*}-X_{1 i}^{*}\right)^{2}+\left(Y_{2 i}^{*}-Y_{1 i}^{*}\right)^{2}}
c. Compute the sample mean path length \(L^{-*}\). The true mean, to six significant digits, is
. How close did you come?
d. Estimate the probability that a path is more than 1 unit long.

Image Text Transcription: Application to mobile computer networks. Computer scientists often model the movement of a mobile computer as a random path within a rectangle. That is, two points are chosen at random within the rectangle, and the computer moves on a straight line from the first point to the second. In the study of mobile computer networks, it is important to know the mean length of a path (see the article "Stationary Distributions for Random Waypoint Models," W. Navidi and T. Camp, IEEE Transactions on Mobile Computing, 2004:99-108). It is very difficult to compute this mean directly, but it is easy to estimate it with a simulation. If the endpoints of a path are denoted X1,Y1, and X2,Y2, then the length of the path is X2-X12+Y2-Y12. The mean length is estimated by generating endpoints X1*,Y1*, and X2*,Y2* for many paths, computing the length of each, and taking the mean. This exercise presents a simulation experiment that is designed to estimate the mean distance between two points randomly chosen within a square of side 1 . a. Generate 1000 sets of endpoints X1i*,Y1i*, and X2i*,Y2i*. Use the uniform distribution with minimum value 0 and maximum value 1 for each coordinate of each point. The uniform distribution generates values that are equally likely to come from any part of the interval (0,1). b. Compute the 1000 path lengths Li*= X2i*-X1i*2+Y2i*-Y1i*2 c. Compute the sample mean path length \(L^{-*}\). The true mean, to six significant digits, is 0.521405. How close did you come? d. Estimate the probability that a path is more than 1 unit long.

Equation transcription:

Text transcription:

\left(X_{1}, Y_{1}\right)

\left(X_{2}, Y_{2}\right)

\sqrt{\left(x_{2}-X_{1}\right)^{2}+\left(Y_{2}-Y_{1}\right)^{2}}

\left(X_{1}^{*}, Y_{1}^{*}\right)

\left(X_{2}^{*}, Y_{2}^{*}\right)

L_{i}^{*}=\sqrt{\left(X_{2 i}^{*}-X_{1 i}^{*}\right)^{2}+\left(Y_{2 i}^{*}-Y_{1 i}^{*}\right)^{2}}

L^{-*}

Questions & Answers

QUESTION:

Application to mobile computer networks. Computer scientists often model the movement of a mobile computer as a random path within a rectangle. That is, two points are chosen at random within the rectangle, and the computer moves on a straight line from the first point to the second. In the study of mobile computer networks, it is important to know the mean length of a path (see the article "Stationary Distributions for Random Waypoint Models," W. Navidi and T. Camp, IEEE Transactions on Mobile Computing, 2004:99-108). It is very difficult to compute this mean directly, but it is easy to estimate it with a simulation. If the endpoints of a path are denoted \(\left(X_{1}, Y_{1}\right)\), and \(\left(X_{2}, Y_{2}\right)\), then the length of the path is \(\sqrt{\left(x_{2}-X_{1}\right)^{2}+\left(Y_{2}-Y_{1}\right)^{2}}\). The mean length is estimated by generating endpoints , and  for many paths, computing the length of each, and taking the mean. This exercise presents a simulation experiment that is designed to estimate the mean distance between two points randomly chosen within a square of side 1 .

a. Generate 1000 sets of endpoints \(\left(X_{1}^{*}, Y_{1}^{*}\right)\), and \(\left(X_{2}^{*}, Y_{2}^{*}\right)\) Use the uniform distribution with minimum value 0 and maximum value 1 for each coordinate of each point. The uniform distribution generates values that are equally likely to come from any part of the interval .
b. Compute the 1000 path lengths \(L_{i}^{*}=\sqrt{\left(X_{2 i}^{*}-X_{1 i}^{*}\right)^{2}+\left(Y_{2 i}^{*}-Y_{1 i}^{*}\right)^{2}}
c. Compute the sample mean path length \(L^{-*}\). The true mean, to six significant digits, is
. How close did you come?
d. Estimate the probability that a path is more than 1 unit long.

Image Text Transcription: Application to mobile computer networks. Computer scientists often model the movement of a mobile computer as a random path within a rectangle. That is, two points are chosen at random within the rectangle, and the computer moves on a straight line from the first point to the second. In the study of mobile computer networks, it is important to know the mean length of a path (see the article "Stationary Distributions for Random Waypoint Models," W. Navidi and T. Camp, IEEE Transactions on Mobile Computing, 2004:99-108). It is very difficult to compute this mean directly, but it is easy to estimate it with a simulation. If the endpoints of a path are denoted X1,Y1, and X2,Y2, then the length of the path is X2-X12+Y2-Y12. The mean length is estimated by generating endpoints X1*,Y1*, and X2*,Y2* for many paths, computing the length of each, and taking the mean. This exercise presents a simulation experiment that is designed to estimate the mean distance between two points randomly chosen within a square of side 1 . a. Generate 1000 sets of endpoints X1i*,Y1i*, and X2i*,Y2i*. Use the uniform distribution with minimum value 0 and maximum value 1 for each coordinate of each point. The uniform distribution generates values that are equally likely to come from any part of the interval (0,1). b. Compute the 1000 path lengths Li*= X2i*-X1i*2+Y2i*-Y1i*2 c. Compute the sample mean path length \(L^{-*}\). The true mean, to six significant digits, is 0.521405. How close did you come? d. Estimate the probability that a path is more than 1 unit long.

Equation transcription:

Text transcription:

\left(X_{1}, Y_{1}\right)

\left(X_{2}, Y_{2}\right)

\sqrt{\left(x_{2}-X_{1}\right)^{2}+\left(Y_{2}-Y_{1}\right)^{2}}

\left(X_{1}^{*}, Y_{1}^{*}\right)

\left(X_{2}^{*}, Y_{2}^{*}\right)

L_{i}^{*}=\sqrt{\left(X_{2 i}^{*}-X_{1 i}^{*}\right)^{2}+\left(Y_{2 i}^{*}-Y_{1 i}^{*}\right)^{2}}

L^{-*}

ANSWER:

Solution:

Step 1 of 3:

In a study of computer networks,it is easy to estimate the mean length of a path with a simulation. If the endpoints of a path denoted (X1,Y1) and (X2, Y2), then the length of path is . .The mean length is estimated by generating endpoints (, ) a

And (, ) for many paths, computing the length of each, and taking the mean. Which is commonly used to estimate the mean distance between two points randomly chosen within a square of side 1.


Add to cart


Study Tools You Might Need

Not The Solution You Need? Search for Your Answer Here:

×

Login

Login or Sign up for access to all of our study tools and educational content!

Forgot password?
Register Now

×

Register

Sign up for access to all content on our site!

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back