subject

In this homework assignment you will interface with a cellular automation simulator. The rules are very simple. The board is a grid. Each grid square can hold at most one cell. For a cell to survive from generation to the next, it needs two or three neighbors. Too many neighbors cause the cell to starve. Too few neighbors causes an incurable case of ennui. All is not lost. If a grid square has exactly three neighbors, a new cell is born, which is kind of strange when you think about it. In this simulation, a grid square that includes a cell is marked as 1, and 0 otherwise. For example 0 0 0 1 0 1 0 1 0 0 0 1 1 0 1 1 would represent a 16 square grid, with 7 cells, where the underlined cell has no neighbors. There are many variations on this game, which is Conway's Game of Life and is a B3/S23 game. That is, cells survive with two or three neighbors and are born with exactly 3 neighbors. This game is can be extended into the real domain or more dimensions. However, we will stick with the original B3/S23. You are being given a very naive evolution implementation called evolve. It works, but it is slow. See how fast you can make it run (we've discussed optimization techniques). Outcomes:
Understand and apply the loop and other optimizations we discussed, including:
Remove loop inefficiencies and reduce procedure calls
Reduce unnecessary memory references and loop unrolling

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
The best definition of an idiom is a. a word or phrase that describes a noun b. a word or phrase describing a verb c. a phrase containing figurative language in which the word expresses a different idea from its exact meaning d. a phrase that compares two unlike objects or ideas
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
Me if you do then you get 10 points and brainliest
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
Explain the importance of html in web page designing in 20 sentences..
Answers: 1
You know the right answer?
In this homework assignment you will interface with a cellular automation simulator. The rules are v...
Questions
question
Mathematics, 10.04.2021 01:00
question
Mathematics, 10.04.2021 01:00
question
Mathematics, 10.04.2021 01:00
question
English, 10.04.2021 01:00
Questions on the website: 13722362