A selection sort searches an array looking for the smallest element. then, the smallest element is swapped with the first element of the array. the process is repeated for the sub array beginning with the second element of the array. each pass of the array results in one element being placed in its proper location. this sort performs comparably to the insertion sort-for an array of n elements, n-1 passes must be made, and for each sub array, n-1 comparisons must be made to find the smallest value. when the sub array being processed contains one element, the array is sorted. write recursive function selectionsort to perform this algorithm.
Answers
Answered by
0
Homai Vyarawalla, commonly known by her pseudonym "Dalda 13", was India's first woman photojournalist. First active in the late 1930s, she retired in the early 1970s.
Similar questions