Resource Allocation with Population Dynamics