Ci serve un stralcio di aiuto per aiutarti...che algoritmo è, cosa sta facendo...