Algorithm analysis

shape