ai resource allocation