Constant access systems : a general framework for greedy optimization on stochastic networks