You are on page 1of 9

Next value to be sorted = 503

Comparisions - 1 703 503 87 512 61 908


Made a comparison between value ==> 503 and 703

Array after 1st step 503 703 87 512 61 908


Next value to be sorted = 87

Comparisions - 2 503 703 87 512 61 908


Made a comparison between value ==> 87 and 503

Array after 2nd step 87 503 703 512 61 908


Next value to be sorted = 512

Comparisons - 3 87 503 703 512 61 908


Made a comparison between value ==> 512 and 503

Comparisons - 4 87 503 703 512 61 908


Made a comparison between value ==> 512 and 703

Array after 3rd step 87 503 512 703 61 908


Next value to be sorted = 61

Comparisons - 5 87 503 512 703 61 908


Made a comparison between value ==> 61 and 503

Comparisons - 6 87 503 512 703 61 908


Made a comparison between value ==> 61 and 87

Array after 4th step 61 87 503 512 703 908


Next value to be sorted = 908

Comparisons - 7 61 87 503 512 703 908


Made a comparison between value ==> 908 and 503

Comparisons - 8 61 87 503 512 703 908


Made a comparison between value ==> 908 and 512

Comparisons - 9 61 87 503 512 703 908


Made a comparison between value ==> 908 and 703

Array after 5th step 61 87 503 512 703 908


Next value to be sorted = 154

Comparisons - 10 61 87 503 512 703 908


Made a comparison between value ==> 154 and 503
Comparisons - 11 61 87 503 512 703 908
Made a comparison between value ==> 154 and 61

Comparisons - 12 61 87 503 512 703 908


Made a comparison between value ==> 154 and 87

Array after 6th step 61 87 154 503 512 703


Next value to be sorted = 509

Comparisons - 13 61 87 154 503 512 703


Made a comparison between value ==> 509 and 503

Comparisons - 14 61 87 154 503 512 703


Made a comparison between value ==> 509 and 703

Comparisons - 15 61 87 154 503 512 703


Made a comparison between value ==> 509 and 512

Array after 7th step 61 87 154 503 509 512


Next value to be sorted = 612

Comparisons - 16 61 87 154 503 509 512


Made a comparison between value ==> 612 and 503

Comparisons - 17 61 87 154 503 509 512


Made a comparison between value ==> 612 and 512

Comparisons - 18 61 87 154 503 509 512


Made a comparison between value ==> 612 and 703

Array after 8th step 61 87 154 503 509 512


Next value to be sorted = 53

Comparisons - 19 61 87 154 503 509 512


Made a comparison between value ==> 53 and 509

Comparisons - 20 61 87 154 503 509 512


Made a comparison between value ==> 53 and 87

Comparisons - 21 61 87 154 503 509 512


Made a comparison between value ==> 53 and 61

Array after 9th step 53 61 87 154 503 509


Next value to be sorted = 765

Comparisons - 22 53 61 87 154 503 509


Made a comparison between value ==> 765 and 503
Comparisons - 23 53 61 87 154 503 509
Made a comparison between value ==> 765 and 612

Comparisons - 24 53 61 87 154 503 509


Made a comparison between value ==> 765 and 703

Comparisons - 25 53 61 87 154 503 509


Made a comparison between value ==> 765 and 908

Array after 10th step 53 61 87 154 503 509


Next value to be sorted = 170

Comparisons - 26 53 61 87 154 503 509


Made a comparison between value ==> 170 and 509

Comparisons - 27 53 61 87 154 503 509


Made a comparison between value ==> 170 and 87

Comparisons - 28 53 61 87 154 503 509


Made a comparison between value ==> 170 and 154

Comparisons - 29 53 61 87 154 503 509


Made a comparison between value ==> 170 and 503

Array after 11th step 53 61 87 154 170 503


Next value to be sorted = 897

Comparisons - 30 53 61 87 154 170 503


Made a comparison between value ==> 897 and 503

Comparisons - 31 53 61 87 154 170 503


Made a comparison between value ==> 897 and 612

Comparisons - 32 53 61 87 154 170 503


Made a comparison between value ==> 897 and 765

Comparisons - 33 53 61 87 154 170 503


Made a comparison between value ==> 897 and 908

Array after 12th step 53 61 87 154 170 503


Next value to be sorted = 275

Comparisons - 34 53 61 87 154 170 503


Made a comparison between value ==> 275 and 509

Comparisons - 35 53 61 87 154 170 503


Made a comparison between value ==> 275 and 87

Comparisons - 36 53 61 87 154 170 503


Made a comparison between value ==> 275 and 170

Comparisons - 37 53 61 87 154 170 503


Made a comparison between value ==> 275 and 503

Array after 13th step 53 61 87 154 170 275


Next value to be sorted = 654

Comparisons - 38 53 61 87 154 170 275


Made a comparison between value ==> 654 and 503

Comparisons - 39 53 61 87 154 170 275


Made a comparison between value ==> 654 and 703

Comparisons - 40 53 61 87 154 170 275


Made a comparison between value ==> 654 and 512

Comparisons - 41 53 61 87 154 170 275


Made a comparison between value ==> 654 and 612

Array after 14th step 53 61 87 154 170 275


Next value to be sorted = 426

Comparisons - 42 53 61 87 154 170 275


Made a comparison between value ==> 426 and 509

Comparisons - 43 53 61 87 154 170 275


Made a comparison between value ==> 426 and 154

Comparisons - 44 53 61 87 154 170 275


Made a comparison between value ==> 426 and 275

Comparisons - 45 53 61 87 154 170 275


Made a comparison between value ==> 426 and 503

Final Sorted Array 53 61 87 154 170 275


154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426


154 509 612 53 765 170 897 275 654 426

154 509 612 53 765 170 897 275 654 426

908 509 612 53 765 170 897 275 654 426

908 509 612 53 765 170 897 275 654 426

908 509 612 53 765 170 897 275 654 426

908 509 612 53 765 170 897 275 654 426

703 908 612 53 765 170 897 275 654 426

703 908 612 53 765 170 897 275 654 426

703 908 612 53 765 170 897 275 654 426

703 908 612 53 765 170 897 275 654 426

612 703 908 53 765 170 897 275 654 426

612 703 908 53 765 170 897 275 654 426

612 703 908 53 765 170 897 275 654 426

612 703 908 53 765 170 897 275 654 426

512 612 703 908 765 170 897 275 654 426

512 612 703 908 765 170 897 275 654 426
512 612 703 908 765 170 897 275 654 426

512 612 703 908 765 170 897 275 654 426

512 612 703 908 765 170 897 275 654 426

512 612 703 765 908 170 897 275 654 426

512 612 703 765 908 170 897 275 654 426

512 612 703 765 908 170 897 275 654 426

512 612 703 765 908 170 897 275 654 426

512 612 703 765 908 170 897 275 654 426

509 512 612 703 765 908 897 275 654 426

509 512 612 703 765 908 897 275 654 426

509 512 612 703 765 908 897 275 654 426

509 512 612 703 765 908 897 275 654 426

509 512 612 703 765 908 897 275 654 426

509 512 612 703 765 897 908 275 654 426

509 512 612 703 765 897 908 275 654 426

509 512 612 703 765 897 908 275 654 426
509 512 612 703 765 897 908 275 654 426

509 512 612 703 765 897 908 275 654 426

503 509 512 612 703 765 897 908 654 426

503 509 512 612 703 765 897 908 654 426

503 509 512 612 703 765 897 908 654 426

503 509 512 612 703 765 897 908 654 426

503 509 512 612 703 765 897 908 654 426

503 509 512 612 654 703 765 897 908 426

503 509 512 612 654 703 765 897 908 426

503 509 512 612 654 703 765 897 908 426

503 509 512 612 654 703 765 897 908 426

503 509 512 612 654 703 765 897 908 426

426 503 509 512 612 654 703 765 897 908
- Comparing Values
- Sorted Array
- Next Value to be sorted

You might also like