distributed access and optimization algo