discretization, rmq