Effective selective sampling with dynamic certainty propagation