Che tipo di algoritmo è questo? Per favore, spiega