study algorithm