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

A therapist who emphasizes helping clients to identify
Between which two hundreds does 384 fall
Which thick layer of the heart maintains its constant pulse?
President william mckinley asked congress to declare war on spain mainly because the
What can result from too many false alarms that needlessly activate your "flight or fight" response? a.caffeine addiction b.pathological lying c.high blood pres
What is the primary source of fuel for the brain? a. proteins b. fats c. carbohydrates d. vitamins?
540.1 is 55% of what amount
Does anyone know how to do this?
What larger social pattern helps explain the clashes between whites and indians on the ohio frontier and, more specifically, their resort to both religious rene
Jamie cell phone service costs $21 per month plus $0.25 for each level call in Long Distance calls are extra last month Jamie's bill was $36.64 and it included