You are a trolley switch operator at TrolleyCorp. You have the power to pull the switch at any time, but if you do so in an unmandated situation, you will be fired. In a world where most people are deontologists, you are a utilitarian who has worked hard to infiltrate TrolleyCorp, and now you have your chance to maximize utility by saving lives. In any trolley problem, you can accurately assess how much utility you can generate by breaking protocol and intervening, but remember, you can only do so once. As such, you must plan your act of defiance carefully. You can maintain a record of past trolley problems for comparison, and you know how many trolley problems TrolleyCorp plans to assign to you during your career, but you won't get any details about those problems ahead of time. You want to only intervene in the trolley problem where you can make the biggest difference, but how can you know said problem when you see it? Find the algorithm that maximizes your chance of picking the optimal time to intervene