Algorithms

EasyMediumHard
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
Question 22
Easy

An automated laboratory system uses a bubble sort to arrange a series of fluid viscosity measurements, in mPa⋅s\text{mPa}\cdot\text{s}mPa⋅s, in ascending order:

[1.45, 0.82, 2.11, 0.35, 1.90, 1.12, 0.95][1.45,\, 0.82,\, 2.11,\, 0.35,\, 1.90,\, 1.12,\, 0.95][1.45,0.82,2.11,0.35,1.90,1.12,0.95]

State the condition that determines when the bubble sort algorithm has completed and can terminate.

[1]

Algorithms Questions

  1. GCSE
  2. /Computer Science
  3. /Algorithms