Cooperative task assignment, search and pursuit