Topic: 明天考试啦。。。help |
Print this page |
1.明天考试啦。。。help | Copy to clipboard |
Posted by: ggloverv Posted on: 2008-07-09 22:34 题目:输入10个数,按由小到大的顺序排序后,再输出? 好像要用 java.io.*; 的System.in.read(); |
2.Re:明天考试啦。。。help [Re: ggloverv] | Copy to clipboard |
Posted by: weiyidexuan Posted on: 2008-07-11 01:30
Note this is called a "Bubble sorting" if I am right. There are some other algorithms common for this task, which I will provide as follows. |
3.Re:明天考试啦。。。help [Re: ggloverv] | Copy to clipboard |
Posted by: JiafanZhou Posted on: 2008-07-11 20:27 Insertion Sort Array.
|
4.Re:明天考试啦。。。help [Re: ggloverv] | Copy to clipboard |
Posted by: JiafanZhou Posted on: 2008-07-11 20:28 Ordered Array (i.e. in this data structure, everything is in order)
|
5.Re:明天考试啦。。。help [Re: ggloverv] | Copy to clipboard |
Posted by: JiafanZhou Posted on: 2008-07-11 20:29 The last one is called the "selection sorting", it is probably the most efficient one.
|
6.Re:明天考试啦。。。help [Re: ggloverv] | Copy to clipboard |
Posted by: Miragi_Song Posted on: 2008-07-12 02:38 I always use bubble sort to make an array ascending or descending(arithmetically or alphabetically)..make my life easier/_\ |
7.Re:明天考试啦。。。help [Re: ggloverv] | Copy to clipboard |
Posted by: ggloverv Posted on: 2008-07-12 15:18 Don't you think that is too long?
|
8.Re:明天考试啦。。。help [Re: ggloverv] | Copy to clipboard |
Posted by: wusky Posted on: 2008-07-14 02:05 |
9.Re:明天考试啦。。。help [Re: Miragi_Song] | Copy to clipboard |
Posted by: JiafanZhou Posted on: 2008-07-15 16:19 Miragi_Song wrote: Bubble sort is not a very good algorithm in a lot of circumstances. The worst scenario is you want to sort an array which is in totally reverse order. Then the life will not be that easy for computers. Jiafan |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |