Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A particle is set to travel in a random path inside a 2-dimensional domain of size 100 100 grid points. The particle is released at

A particle is set to travel in a random path inside a 2-dimensional domain of size 100 100 grid points. The particle is released at the position (1, 1) and its movement is tracked until it reaches the endpoint. It can freely move inside the domain, but it is not allowed to cross the border. Its movement is determined by taking a random step in - and - directions. Let (,) be the current position of the particle and the new position of the particle, (, ) can be described as follows, (,) = ( + , + ) where and are randomly sampled from a domain [20, 20]. If is positive, then the particle will move to the right by steps and if is negative, then the particle will move to the left. A similar scenario applies to , but in upward and downward directions. For example, let the initial position of the particle is at (5, 12), and = 8 and = 5, then the new position of the particle is at (13, 7). It means the particle has moved 8 steps to the right and 5 steps downward. Note that the particle is not allowed to cross the border, hence and must always satisfy the following conditions, a) , 1 b) , 100 If the particle touches the border, then it will be bounced back into the domain at the remaining steps. For instance, let the particle is at (10, 4), and = 7 and = 15. The particles new position should be at (17, 11). However, since < 1, hence the particle will bounce back 11 steps upward, making its new position is at (17, 11). The particle will stop moving when both and are greater than 90.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

KEY QUESTION Refer to the table in question

Answered: 1 week ago