选择排序(Selection sort)是一种简单直观的排序算法。它的工作原理是:第一次从待排序的数据元素中选出最小(或最大)的一个元素,存放在序列的起始位置,然后再从剩余的未排序元素中寻找到最小(大)元素,然后放到已排序的序列的末尾。以此类推,直到全部待排序的数据元素的个数为零。选择排序是不稳定的排序方法。
...给出n个数,怎样将它们从小到大排序?下面一口气讲三种常用的算法,它们是最简单的、最显然的、最容易想到的。选择排序(Selection Sort)是说,每次从数列中找出一个最小的数放到最前面来,再从剩下的n-1个数中选择一个最小的,不断做下去。
基于7992个网页-相关网页
直接选择排序 直接选择排序(straight selection sort)是一种最简单、且最为大家普遍使 用并熟悉的一样排序法。
基于124个网页-相关网页
选择排序法 selection sort
置换选择排序 replacement selection sort
简单选择排序 Select Sort ; Simple Selection Sort
树形选择排序 Tree Selection Sort ; Tree Select Sort
直接选择排序 Straight Selection Sort ; Select Sort ; Straight Select Sort
重复选择排序 [计] repeated selection sort
选择排序算法 Selection sort algorithm
竞赛选择排序 tournament selection sort
置换-选择排序 Replacement-Selection Sorting
这与选择排序形成了对比,在选择排序中,你一次又一次地完成寻找最小的元素。
This is in contrast to selection sort where you're fishing looking again and again for the smallest element.
那选择排序要做多少次交换呢?
本节的示例程序在一个整数数组上实现选择排序。
The example program for this section implements a selection sort on an array of integers.
Let's do selection and let's do merge sort here on the right just to see what actually happens.
中间进行选择排序,右边进行归并排序,看看会发生什么。
And this is in contrast to Selection Sort where you're fishing again and again for the then smallest element.
这与选择排序是相反的,在选择排序中你需要一次又一次地,找出最小的元素。
How many swaps do I do in general in bubble sort, compared to selection source?
在冒泡排序中,一般要做多少次交换,对比选择排序呢?
应用推荐