Algoritmo Bubble Sort – O demonio das buscas
Hoje vou responder um email de uma leitora a Heloisa, que me pediu para falar mais sobre o algoritmo bubble sort, vamos lá. Algoritmo 1: Procedimento BubbleSort(Vetor) var AUX {variavel de apoio} Inicio para i=0 até n-1 faça para j=0 até n-1 faça se vetor[j] > vetor[j+1] então AUX = vetor[j] vetor[j] = vetor[j+1] vetor[j+1] … Ler mais