Pātuhitia tēnei: Theory and algorithms for cooperative systems