I have an array of numbers that I need to create an algorithm for the selection sort, show it as pseudocode OR a flowchart, and desk check it before submitting. (23, 19, 35, 12, 30)is there something more I should fix or add?
For K= 0 to n – 1
MAX = 0
For j = 0 to n – k - 1
If item[j] > item[MAX]
MAX = item[j]
end if
end for
swap item[n - k - 1] with item[MAX]
end for
end SelectionSort

New Topic/Question
Reply


MultiQuote






|