We call this as detection time minimization problem (DTM problem for short).