Resource Allocation Tutorial (1)