Group Testing with a Dynamic Infection Spread