文件名称: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
(系统自动生成,下载前可以参看下载内容)

下载文件列表

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)

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org