Text this: Optimal algorithms for controlling infectious diseases in real time using noisy infection data.