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 Tower of Babel represented human rebellion against God. true false
Under Marxism, who must own the means of production
How many times can 2 go into 76
Kate walks 5 miles in 2 hours at a steady pace. how far can she walk in 1 hour and 30 minutes
the relationships between a community of plants and animals and their environment are known as a(n) _____. a.food chain b.food web c.ecosystem d.life cycle
Classify each expression as rational or irrational. √6× 0 π ÷ π 10 π - 7 π √49+1/3
76 100 as a mixed number
All life must maintain an internal balance, despite environmental changes. What is this called?
global financial markets operate under a system of __________, where the supply and demand for various currencies dictate their value at any moment in time
How can you find a unit rate when given a rate?