Jamar8798 Jamar8798
  • 02-09-2019
  • Computers and Technology
contestada

The bubble sort algorithm sorts using what technique?

Respuesta :

ExieFansler ExieFansler
  • 06-09-2019

Explanation:

Bubble sort is one of the simplest sorting techniques present.

In bubble sort in every iteration we compare the each element with the next element if it is out of order then we swap the elements if not we do nothing and move to next iteration.This is done n-1 times where n is the number of elements in the array.

It this algorithms the element with highest value is bubbled out in each iteration hence it is called bubble sort.

Answer Link

Otras preguntas

Write a modern question that means the same as: What would'st thou? Who hath dared to wound thee?
Can someone help with question 51 please I need to break it down
Factor out the greatest common factor. If the greatest common factor is 1, just retype the polynomial. 2b4+5
What are the disadvantages of wind pollution
what biome do we live in? Explain your answer.
find a pair of square numbers which give a difference of 39
why did some colonist enslave native Americans and Africans
Which one of the following reactions occurs in the cristae of the mitochondria? A. The citric acid cycle B. The electron transport chain C. The prep reaction
Jackie buys a basket for $6, 2 pounds of apples for $3.50 per pound, and 2 pounds of oranges for $3.50 each per pound. The tax for the whole purchase is $1.
find the x-intercept of the parabola with vertex (6,27) and y-intercept (0,-81)