文件名称:javasort
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 457kb
- 下载次数:
- 0次
- 提 供 者:
- 陈**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
(1)写一个final参数类M,包括比较次数、交换次数、探测次数属性,并重写构造器和toString方法。
(2)写一个抽象类A,其中包括要排序的数据。提供三个final方法,分别完成比较、探测、交换操作的同时,正确改变私有的M类对象成员的相关属性。并提供一个虚方法doSort,同时提供一个final方法sort(先设置M对象初值,然后调用doSort方法,返回M对象引用)
(3)写三个采用不同方法排序的A类的派生类A1,A2,A3
(4)写一个测试类作为主类,分别生成A1,A2,A3的对象并调用sort方法,显示三个方法在排序时候的性能参数。
(5)谈谈这种类设计的合理性以及可以改进之处。
(6) 给前面的排序测试算法增加排序可视化功能,提示:初始化排序类的时候用图形显示排序的数据,进行移动或者比较等操作时,用图形演示动作影响的操作。(请思考如何防止演示过快)。
-(1) write a final parameters of type M, including the number of comparisons, the exchange frequency, detecting the number of attributes, and override the constructor and toString methods.
(2) to write an abstract class A, which would include the sort of data. Provides three final methods of the respective comparison, detection, while the exchange operation, the right to change the private member of M-class object associated attributes. And to provide a virtual method doSort, while providing a final method sort (first set the initial value of M objects, then call doSort method returns an object reference M)
(3) three different ways to write sort of A class derived class A1, A2, A3
(4) Write a test class as main class, were generated A1, A2, A3 and call the sort method of the object, indicating when the three methods in order of performance parameters.
(5) to talk about this kind of design is reasonable and can be improved.
(6) to increase the previous sorting algorithm sorting
(2)写一个抽象类A,其中包括要排序的数据。提供三个final方法,分别完成比较、探测、交换操作的同时,正确改变私有的M类对象成员的相关属性。并提供一个虚方法doSort,同时提供一个final方法sort(先设置M对象初值,然后调用doSort方法,返回M对象引用)
(3)写三个采用不同方法排序的A类的派生类A1,A2,A3
(4)写一个测试类作为主类,分别生成A1,A2,A3的对象并调用sort方法,显示三个方法在排序时候的性能参数。
(5)谈谈这种类设计的合理性以及可以改进之处。
(6) 给前面的排序测试算法增加排序可视化功能,提示:初始化排序类的时候用图形显示排序的数据,进行移动或者比较等操作时,用图形演示动作影响的操作。(请思考如何防止演示过快)。
-(1) write a final parameters of type M, including the number of comparisons, the exchange frequency, detecting the number of attributes, and override the constructor and toString methods.
(2) to write an abstract class A, which would include the sort of data. Provides three final methods of the respective comparison, detection, while the exchange operation, the right to change the private member of M-class object associated attributes. And to provide a virtual method doSort, while providing a final method sort (first set the initial value of M objects, then call doSort method returns an object reference M)
(3) three different ways to write sort of A class derived class A1, A2, A3
(4) Write a test class as main class, were generated A1, A2, A3 and call the sort method of the object, indicating when the three methods in order of performance parameters.
(5) to talk about this kind of design is reasonable and can be improved.
(6) to increase the previous sorting algorithm sorting
(系统自动生成,下载前可以参看下载内容)
下载文件列表
java实验二(陈新杰20072102321)\可运行软件\MainSortApplication.jar
...............................\..........\startForWin.bat
...............................\实验报告\java排序程序实验报告.doc
...............................\测试数据\sortTest.txt
...............................\源代码\MySorts\.classpath
...............................\......\.......\.project
...............................\......\.......\.settings\org.eclipse.core.resources.prefs
...............................\......\.......\.........\org.eclipse.jdt.core.prefs
...............................\......\.......\bin\com\shui1\business\DataControl.class
...............................\......\.......\...\...\.....\mainface\MainSortApplication$1.class
...............................\......\.......\...\...\.....\........\MainSortApplication$2.class
...............................\......\.......\...\...\.....\........\MainSortApplication$3.class
...............................\......\.......\...\...\.....\........\MainSortApplication$SortThread.class
...............................\......\.......\...\...\.....\........\MainSortApplication.class
...............................\......\.......\...\...\.....\sorts\BubbleSort.class
...............................\......\.......\...\...\.....\.....\InsertSort.class
...............................\......\.......\...\...\.....\.....\Parameter.class
...............................\......\.......\...\...\.....\.....\SelectSort.class
...............................\......\.......\...\...\.....\.....\Sort.class
...............................\......\.......\...\...\.....\util\FileUtil.class
...............................\......\.......\...\...\.....\....\GenericFileFilter.class
...............................\......\.......\juniversalchardet-1.0.3.jar
...............................\......\.......\manifest.mf
...............................\......\.......\src\com\shui1\business\DataControl.java
...............................\......\.......\...\...\.....\mainface\MainSortApplication.java
...............................\......\.......\...\...\.....\sorts\BubbleSort.java
...............................\......\.......\...\...\.....\.....\InsertSort.java
...............................\......\.......\...\...\.....\.....\Parameter.java
...............................\......\.......\...\...\.....\.....\SelectSort.java
...............................\......\.......\...\...\.....\.....\Sort.java
...............................\......\.......\...\...\.....\util\FileUtil.java
...............................\......\.......\...\...\.....\....\GenericFileFilter.java
...............................\......\.......\bin\com\shui1\business
...............................\......\.......\...\...\.....\mainface
...............................\......\.......\...\...\.....\sorts
...............................\......\.......\...\...\.....\util
...............................\......\.......\src\com\shui1\business
...............................\......\.......\...\...\.....\mainface
...............................\......\.......\...\...\.....\sorts
...............................\......\.......\...\...\.....\util
...............................\......\.......\bin\com\shui1
...............................\......\.......\src\com\shui1
...............................\......\.......\bin\com
...............................\......\.......\src\com
...............................\......\.......\.settings
...............................\......\.......\bin
...............................\......\.......\src
...............................\......\MySorts
...............................\可运行软件
...............................\实验报告
...............................\测试数据
...............................\源代码
java实验二(陈新杰20072102321)
...............................\..........\startForWin.bat
...............................\实验报告\java排序程序实验报告.doc
...............................\测试数据\sortTest.txt
...............................\源代码\MySorts\.classpath
...............................\......\.......\.project
...............................\......\.......\.settings\org.eclipse.core.resources.prefs
...............................\......\.......\.........\org.eclipse.jdt.core.prefs
...............................\......\.......\bin\com\shui1\business\DataControl.class
...............................\......\.......\...\...\.....\mainface\MainSortApplication$1.class
...............................\......\.......\...\...\.....\........\MainSortApplication$2.class
...............................\......\.......\...\...\.....\........\MainSortApplication$3.class
...............................\......\.......\...\...\.....\........\MainSortApplication$SortThread.class
...............................\......\.......\...\...\.....\........\MainSortApplication.class
...............................\......\.......\...\...\.....\sorts\BubbleSort.class
...............................\......\.......\...\...\.....\.....\InsertSort.class
...............................\......\.......\...\...\.....\.....\Parameter.class
...............................\......\.......\...\...\.....\.....\SelectSort.class
...............................\......\.......\...\...\.....\.....\Sort.class
...............................\......\.......\...\...\.....\util\FileUtil.class
...............................\......\.......\...\...\.....\....\GenericFileFilter.class
...............................\......\.......\juniversalchardet-1.0.3.jar
...............................\......\.......\manifest.mf
...............................\......\.......\src\com\shui1\business\DataControl.java
...............................\......\.......\...\...\.....\mainface\MainSortApplication.java
...............................\......\.......\...\...\.....\sorts\BubbleSort.java
...............................\......\.......\...\...\.....\.....\InsertSort.java
...............................\......\.......\...\...\.....\.....\Parameter.java
...............................\......\.......\...\...\.....\.....\SelectSort.java
...............................\......\.......\...\...\.....\.....\Sort.java
...............................\......\.......\...\...\.....\util\FileUtil.java
...............................\......\.......\...\...\.....\....\GenericFileFilter.java
...............................\......\.......\bin\com\shui1\business
...............................\......\.......\...\...\.....\mainface
...............................\......\.......\...\...\.....\sorts
...............................\......\.......\...\...\.....\util
...............................\......\.......\src\com\shui1\business
...............................\......\.......\...\...\.....\mainface
...............................\......\.......\...\...\.....\sorts
...............................\......\.......\...\...\.....\util
...............................\......\.......\bin\com\shui1
...............................\......\.......\src\com\shui1
...............................\......\.......\bin\com
...............................\......\.......\src\com
...............................\......\.......\.settings
...............................\......\.......\bin
...............................\......\.......\src
...............................\......\MySorts
...............................\可运行软件
...............................\实验报告
...............................\测试数据
...............................\源代码
java实验二(陈新杰20072102321)