home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_04 / 251.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-11  |  678KB  |  2550x3300
Labels: book | crt screen | monitor | poster | reckoner
OCR: Searching and Sorting Arrays 251 this algorithm with the twist that the index of the maximum is what 15 important. It starts with index that specifies that array [0] is the first value of the temporary maximum When finds larger value, changes the variable index to keep track of where the larger value found It returns the index of the largest value an array ****/ Learning Activities te5 Complete the last three iterations through the selection sort algo- rithm to complete the sorting of the array e5 Walk through the selection sort algorithm with the array 37 selec- izes an Cby Discovery How would the selection sort algorithm handle ort() repeated elements in an array? Walk through the se ection sort ray algorithm with the following array to find out 46 Modify ssort.c to have it sort an array ...