719
Recursion
(lemmy.world)
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
But if you assume that such a person exists, then it is inevitable that someone will pull the switch. The very best case is that such a person is immediately after you. Therefore, the only minimizing choice is to kill however many people you have.
Oh, I see. Yes, the context here was that we assume all possible chain lengths. If it's infinite the death-minimising strategy is obviously to pull it, and if your switch is the only one you obviously don't. The question was where it changes from one to the other.
I'll edit a clarification in.
Makes me wonder what happens when the number of people tied to the tracks exceeds rhe number of people currently alive. Should be around the 33rd lever.