Optimizing Resource Allocations For Dynamic Interactive Applications