update bubble sortin informe

This commit is contained in:
2018-11-19 15:10:56 -03:00
parent 0da047d14e
commit ac01470812
3 changed files with 18 additions and 12 deletions

12
doc/pseudo/bubblesort.txt Normal file
View File

@@ -0,0 +1,12 @@
entrada: array: arreglo de elementos enteros; n: tamaño del arreglo
salida: arreglo array ordenado ascendentemente.
cuentaDeElementos := n
repetir
haCambiado := falso
disminuir cuentaDeElementos
repetir con indice desde 1 a cuentaDeElementos
if (array en indice) > (array en (indice + 1))
intercambiar (array en indice) con (array en (indice + 1))
haCambiado := falso
hasta haCambiado = verdad
retorna array