[Spot] underlying algorithm of monitor construction