Efficient stochastic simulation on discrete spaces