Monday, April 15, 2019

algorithm - Cubical Infection


You may remember the C. Coli bacteria, which infects checkerboard squares. There is a similar disease which plagues cubes, known as cubic lice. Once a cube gets infested with cubic lice, it will be infested for the rest of its life!


A refresher on cube biology: cubes live together in colonies, which consist of $1000$ cubes tightly packed together in a $10\times 10 \times 10$ cubical pattern. If a healthy cube is ever adjacent to at least three infested cubes, then that cube will itself become infested the next day.


A bioterrorist wants to infest an entire colony of cubes with cubic lice. He plans to break into a WHO lab and steal several cubic larvae, each of which can cause a single cube to become infested.




What is fewest number of larvae he needs to steal to be able to infect the entire colony?



As usual, you should prove your answer is correct, by showing how he can infect the colony with that many larvae, and why he can't with fewer.



Answer




Answer - we need at least 100.





Just as before, after each iteration the surface of the infected part does not increase. Since the surface of a unit cube is 6 and the surface of the big cube is 600, we need at least 600/6=100 infected cubes. This is my pattern for infecting 10x10x10 block with 200 larvae:

1st layer:

X 0 0 0 0 0 0 0 0 0
0 X 0 0 0 0 0 0 0 0
0 0 X 0 0 0 0 0 0 0
0 0 0 X 0 0 0 0 0 0
............................
0 0 0 0 0 0 0 0 0 X

2nd layer:
0 X 0 0 0 0 0 0 0 0
0 0 X 0 0 0 0 0 0 0
0 0 0 X 0 0 0 0 0 0
0 0 0 0 X 0 0 0 0 0

............................
X 0 0 0 0 0 0 0 0 0

10th layer:
0 0 0 0 0 0 0 0 0 X
X 0 0 0 0 0 0 0 0 0
0 X 0 0 0 0 0 0 0 0
0 0 X 0 0 0 0 0 0 0
............................
0 0 0 0 0 0 0 0 X 0

However, there also exist patterns that will work, for which no two infested cubes are in the same line.



No comments:

Post a Comment

classical mechanics - Moment of a force about a given axis (Torque) - Scalar or vectorial?

I am studying Statics and saw that: The moment of a force about a given axis (or Torque) is defined by the equation: $M_X = (\vec r \times \...