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

the cost of 5kg of potatoes is 3.60£ the cost of 1/2 kg of carrots is 31p. Work out the cost of 13kg of potatoes and 21/2 of carrots
what was true about the gulf of Tonkin incident?
Is Caterpillar a good stock investment? why?​
if the cost of 8 boxes is rupees 243.20 the cost of one box​
Rate this from 1-10
Write in the process used to separate each mixtureMixtureProcesssalt + watersugar + waterrice + pasta shapessand + waterfour + ricepaperclips + sawdust​
ANSWERED! Which details help to reveal the plot of this story? Check all that apply. The bachelor loves the story. The aunt is telling an uninteresting story.
Explain the Electoral College system, and compare and contrast arguments for and against it.
- ¿Me conoces? Si, A. te conozco B. los conozco C. te conocemos D. nos conoces
Jenna says that the point (30,61) is on the line y = 2x-1 Is Jenna correct? Explain how u know?​