The selection sort algorithm sorts a list by finding the smallest (or equivalently largest) element in the list and then
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
The selection sort algorithm sorts a list by finding the smallest (or equivalently largest) element in the list and then
The selection sort algorithm sorts a list by finding thesmallest (or equivalently largest) element in the list and thenmoving it to the beginning (or end) of the list. What is theadvantage of using the selection sort to that of the linearsort?