

Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!


1. % Selection Sort For for i = 1:(length(v)-1) k = i; for j = (i+1): length(v) if v(k) > v(j) k = j; end end if i ~= k temp = v(i); v(i) = v(k); v(k) = temp; end end