Create a map of 200x200 pixels. At random position, put the 3 nutrients with each nutrient can be consumed up to 50 times. Randomly placed 5 bacteria into the map. After 200 steps, for each step the bacteria have a 0.5% chance of dying. If the bacteria hit the pixels with nutrient, it has 90% chance of multiplication. The bacteria always want to move towards the nutrient. It will randomly select left, right, up down to mov until it is moving to the direction of highest nutrient concentration. What is the maximum number of bacteria the 200x 200 pixels can support within such constraint? The bacteria can only move up/down left and right but not over one another. Run the simulation 10 time to determine the maximum number of bacteria the 200x200 pixels can support. Animate the motion of such bacteria into a movie file. Implement class method in your simulation.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

P7

Create a map of 200x200 pixels.
At random position, put the 3 nutrients with each nutrient can be consumed up to 50 times.
Randomly placed 5 bacteria into the map. After 200 steps, for each step the bacteria have a 0.5%
chance of dying. If the bacteria hit the pixels with nutrient, it has 90% chance of multiplication. The
bacteria always want to move towards the nutrient. It will randomly select left, right, up down to move
until it is moving to the direction of highest nutrient concentration.
What is the maximum number of bacteria the 200x 200 pixels can support within such constraint? The
bacteria can only move up/down left and right but not over one another. Run the simulation 10 times
to determine the maximum number of bacteria the 200x200 pixels can support.
Animate the motion of such bacteria into a movie file.
Implement class method in your simulation.
Transcribed Image Text:Create a map of 200x200 pixels. At random position, put the 3 nutrients with each nutrient can be consumed up to 50 times. Randomly placed 5 bacteria into the map. After 200 steps, for each step the bacteria have a 0.5% chance of dying. If the bacteria hit the pixels with nutrient, it has 90% chance of multiplication. The bacteria always want to move towards the nutrient. It will randomly select left, right, up down to move until it is moving to the direction of highest nutrient concentration. What is the maximum number of bacteria the 200x 200 pixels can support within such constraint? The bacteria can only move up/down left and right but not over one another. Run the simulation 10 times to determine the maximum number of bacteria the 200x200 pixels can support. Animate the motion of such bacteria into a movie file. Implement class method in your simulation.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY