Page 88 - CTS - CSA TP - Volume 2
P. 88

COMPUTER SOFTWARE APPLICATION - CITS






























                                                       Comparisons happen till the last element 1
           After each iteration, the greatest value of the array becomes the last index value of the array. In each iteration,
           the comparison happens till the last unsorted element.

























           Now comparison reduced one step because  the biggest element is at its right place






























                                                           73
                                CITS : IT & ITES - Computer Software Application - Exercise 93
   83   84   85   86   87   88   89   90   91   92   93