Reference no: EM131407187
We want to study the movement of an ant on a grid over m time steps. Think of each time step as another iteration of a loop. The grid is (2n+1)(2n+1) in size centered at (0; 0). Each grid point can be colored white or black. Initially all grid points are white. The ant is placed at (0; 0) facing toward (0; 1) at t = 0. The process is described by the following rules:
Suppose we are at t = j where 0 j m ???? 1. The ant is at (x; y) for some jxj < n and jyj < n.
1. If (x; y) is white, then it is colored black. The ant turns 90 to the left. The ant moves one step forward to the next grid point. Call it (ex; ey)
2. If (x; y) is black, then it is colored white. The ant turns 90 to the right. The ant moves one step forward to the next grid point. Call it (ex; ey).
3. j is replaced by j + 1
The process stops when either
1. t = m (time is up)
2. jexj = n (the ant is on the right or left edge)
3. jeyj = n (the ant is on the bottom or top)
The process is meant to illustrate a model for computers called a Turing machine. 1
a. Write a function called LangtonAnt with parameters n and m. The format should be function [Color; Position; Direction; t] = LangtonAnt(m,n)
Here
1. t is the time step at termination of the process. Note t <= m.
2. Color is a (2n + 1) (2n + 1) matrix indicating the color of the grid points (0 for black, 1 for white) at time t.
3. Position is the position of the ant at time t. Therefore Position is a 1 2 vector with Position(1) the x-coordinate and Position(2) the y-coordinate.
Distinguish between vulnerability threat and control
: Vulnerability is indicating a population or individuals that are more likely for something to happen to them or develop a disease. Such as babies, elderly are more vulnerable to become ill. To be labeled vulnerable the group or person has factor..
|
Would this be a type i error or a type ii error
: If the scientist is correct, and the world does not take her seriously, would this be a Type I error or a Type II error? Briefly explain your reasoning.
|
Determine the upper and lower control limits
: Assume that in Example 36.3 the number of samples was 8 instead of 10. Using the top half of the data in Table 36.4, recalculate the control limits and the standard deviation. Compare your observations with the results obtained by using 10 sample
|
How use of nonevaluators would affect your evaluation plan
: Discuss the advantages and disadvantages of nonevaluators in the role of internal evaluators. Analyze how the use of nonevaluators would affect your evaluation plan. Discuss your agreement or disagreement with the use of nonevaluators.
|
Movement of an ant on a grid over m time steps
: We want to study the movement of an ant on a grid over m time steps. Think of each time step as another iteration of a loop. The grid is (2n+1)(2n+1) in size centered at (0; 0). Each grid point can be colored white or black. Initially all grid poi..
|
Discuss the multiplier effect
: Discuss the multiplier effect including a description of what it describes in macroeconomic terms, how it is determined, and an illustration of how it is defined
|
What would constitute a type i error and a type ii error
: For this situation, state the null and alternative hypotheses in verbal terms, then identify what would constitute a Type I error and a Type II error in this situation.
|
How can teachers make digital presentations dynamic
: How can teachers make digital presentations dynamic, maximizing teaching methods and learning impact? How can teachers use video resources in novel ways while inviting students to contribute their ideas for learning?
|
Estimate the assembly efficiency for each design
: Include factors such as anisotropy of the rolled sheet, its surface texture, the bend directions, the nature of the sheared edges, and the way the handle is snapped in for assembly.
|