On a stochastic sensor selection algorithm with applications in sensor scheduling and sensor coverage