Application to mobile computer networks. Computer scientists often model the

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 Way point 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 − X1)2 + (Y2 − Y1)2. 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 with minimum value 0 and maximum value 1 for each coordinate of each point. The uniform 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 )+ (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.

 

Leave a Comment

Your email address will not be published. Required fields are marked *

GradeEssays.com
We are GradeEssays.com, the best college essay writing service. We offer educational and research assistance to assist our customers in managing their academic work. At GradeEssays.com, we promise quality and 100% original essays written from scratch.
Contact Us

Enjoy 24/7 customer support for any queries or concerns you have.

Phone: +1 213 3772458

Email: support@gradeessays.com

© 2024 - GradeEssays.com. All rights reserved.

WE HAVE A GIFT FOR YOU!

15% OFF 🎁

Get 15% OFF on your order with us

Scroll to Top