Resource allocation under uncertainty: an algebraic and qualitative treatment