Lemmings on a plank

Spencer and Justin
June 12, 2017

Dad said:

100 lemmings are positioned at 1-meter intervals along a narrow, 101-meter-long floating plank.  (This is a 1-dimensional problem. Picture the plank as oriented left-right.  The two outermost lemmings are 1 meter from the ends.  Consider the lemmings to have zero length.)  Each lemming is facing either left or right.  At t=0, each lemming starts moving forward at 1 m/s.  When two lemmings collide, each instantly reverses his direction of motion.  Lemmings that reach the ends fall into the water and are out of play.

If you can dictate the initial orientation of each of the lemmings, i.e., choose each lemming’s initial direction of motion, what is the longest time the game can last before all the lemmings are in the water?

Let’s simulate this hybrid dynamical system to get a feel for it.

index_1.gif

NDSolve[] bouncing ball example

index_2.gif

index_3.gif

index_4.gif

With 2 lemmings

index_5.gif

index_6.gif

Hack into the InterpolatingFunction to find its max domain:

index_7.gif

index_8.gif

index_9.gif

index_10.gif

With n lemmings

index_11.gif

index_12.gif

index_13.gif

If there are no lemmings on the plank, stop.

index_14.gif

index_15.gif

index_16.gif

x[1][0]==1
index_17.gif
index_18.gif
index_19.gif
x[2][0]==2
index_20.gif
index_21.gif
index_22.gif
x[3][0]==3
index_23.gif
index_24.gif
index_25.gif
x[4][0]==4
index_26.gif
index_27.gif
index_28.gif
x[5][0]==5
index_29.gif
index_30.gif
index_31.gif
x[6][0]==6
index_32.gif
index_33.gif
index_34.gif
x[7][0]==7
index_35.gif
index_36.gif
index_37.gif
x[8][0]==8
index_38.gif
index_39.gif
index_40.gif
x[9][0]==9
index_41.gif
index_42.gif
index_43.gif
x[10][0]==10
index_44.gif
index_45.gif
WhenEvent[(x[1][t]<0||x[1][t]>11)&&(x[2][t]<0||x[2][t]>11)&&(x[3][t]<0||x[3][t]>11)&&(x[4][t]<0||x[4][t]>11)&&(x[5][t]<0||x[5][t]>11)&&(x[6][t]<0||x[6][t]>11)&&(x[7][t]<0||x[7][t]>11)&&(x[8][t]<0||x[8][t]>11)&&(x[9][t]<0||x[9][t]>11)&&(x[10][t]<0||x[10][t]>11),StopIntegration]

index_46.gif

index_47.gif

index_48.gif

index_49.gif

index_50.gif

index_51.gif

index_52.gif

index_53.gif

index_54.gif

Spence pointed out that two lemmings bouncing off each other is actually the same as the lemmings just passing through each other. He pointed out that if the lemmings had nonzero width, the game would end sooner because they’d essentially teleport through teach other as they passed through.

Created with the Wolfram Language