resource allocation problem