An educational journey through algorithms