Buscar
Estás en modo de exploración. debe iniciar sesión para usar MEMORY

   Inicia sesión para empezar


Por supuesto:

Computer Science AQA A level

» Iniciar este curso
(Practica preguntas similares gratis)
Pregunta:

Give a way to optimise a bubble sort algotihm

Autor: Will Parker



Respuesta:

The inner loop takes into account that after each pass the last non sorted index place is sorted so there's no need to loop ​to that point again Also a recognistion (through a variable called swapped maybe) of when the algrothm has sorted the problem so no unnecessary additional passing through is done


0 / 5  (0 calificaciones)

1 answer(s) in total