将关键字(45,68,27,54,20,25)按从小到大排列,利用快速排序,以45为枢轴,进行第一次划分之后状态为( )
A: 25, 20, 27, 45, 54, 68
B: 20, 25, 27, 45, 54, 68
C: 20, 68, 27, 45, 54, 25
D: 25, 20, 27, 45, 68, 54
A: 25, 20, 27, 45, 54, 68
B: 20, 25, 27, 45, 54, 68
C: 20, 68, 27, 45, 54, 25
D: 25, 20, 27, 45, 68, 54
举一反三
- 用某种排序方法对线性表(25, 84, 21, 47, 15, 27, 68, 35, 20)进行排列时,元素序列的变化情况如下: (1) 25, 84, 21, 47, 15, 27, 68, 35, 20 (2) 20, 15, 21,25, 47, 27, 68, 35, 84 (3) 15, 20, 21, 25, 35, 27, 47, 68,84 (4) 15, 20, 21, 25, 27, 35, 47, 68, 84 则所有的排序方法是( )。
- 用直接选择排序方法对关键字{68 ,45 ,20 ,90,15 ,10 50}进行升序排序,第一趟排序的结果是?( ) A: 10, 45, 20, 90, 15, 68 ,50 B: 10,15, 20, 90, 45, 68 ,50 C: 10, 20, 45, 90, 15, 68 ,50 D: 90, 45, 20,68, 15, 68 ,50
- 洁净区的温度和相对湿度一般为()。 A: 10~30℃,20~45% B: 20~26℃,40~60% C: 15~25℃,30~68% D: 16~25℃,40~70% E: 18~24℃,45~65%
- 6月22日某测者向南观测太阳上中天高度为68°33’.0.则测者纬度为_( )。() A: 44°54’.0N B: 45°N C: 21°27’.0S D: 2°S
- 用某种排序方法对线性表(25, 84, 21, 47, 15, 27, 68, ... 68, 84则所有的排序方法是()。