Pātuhitia tēnei: The Design and Analysis of Algorithms