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

find the amplitude, period, and phase shift of the function defined by: y=3-2cos(3x+pi)
what is force ?is it desirable or undesirable?
If 52 x equals 7800 y what does 1 x equal? What is the maths equation?
can u tell me how to solve this promblem 4/7 plus 3/7
what is force ?is it desirable or undesirable?
If 52 x equals 7800 y what does 1 x equal? What is the maths equation?
The Commissariat established by Frederick William in Prussia became A. the overseer of the army. B. an agency of civil government. C. both a military and civil
What is the probability of someone correctly guessing your Social Security number? (Assume all digits 0-9 are available for use)a
If f(x) is 4x-3 what is (f^-1of) (10)
You would expect a phosphorous-chlorine bond to be 1. nonpolar, with the neither end having a partial charge. 2. polar, with neither end having a partial charge