Bé no, io dicevo così:
Dato un array che contiene n elementi eseguo:
bool ordinato= false
while not ordinato {
ordinato= true
for a= 0 to length(array)- 2 {
if array[a]> array[a+1] then {
puntatore *b= array[a];
array[a]= array[a+ 1];
array[a+ 1]= b;
ordinato= false
break
}
}
}
Si tratta di un algoritmo di ordinamento che ha un nome che non ricordo.