Competition and Resource Allocation