Sorter排序类实现

上传者: wangguopo1 | 上传时间: 2023-05-16 16:14:59 | 文件大小: 37KB | 文件类型: ZIP
设计一个负责排序的程序包,实现多种排序算法,至少包括插入排序、冒泡排序和快速排序算法。 要求: 1.可以对任何简单类型和任意对象进行排序 2.可以支持升序、降序、字典排序等多种顺序要求 3.可以随意增加排序算法和顺序要求,保证其他程序不修改 4.减少程序代码中逻辑上的冗余 5.至少用两种方案编程实现该程序包,并说明两个方案的优缺点 6.提交设计报告,包括:使用UML设计的类图;主要程序代码说明;方案优缺点比较。

文件下载

资源详情

[{"title":"( 63 个子文件 37KB ) Sorter排序类实现","children":[{"title":"OBjectSort","children":[{"title":".project <span style='color:#111;'> 386B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"BubbleSort.class <span style='color:#111;'> 704B </span>","children":null,"spread":false},{"title":"OrderCompare.class <span style='color:#111;'> 165B </span>","children":null,"spread":false},{"title":"Test.class <span style='color:#111;'> 943B </span>","children":null,"spread":false},{"title":"Strategy","children":[{"title":"BubbleSort.class <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"Persion.class <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"ArraySort.class <span style='color:#111;'> 3.15KB </span>","children":null,"spread":false},{"title":"Sorter.class <span style='color:#111;'> 160B </span>","children":null,"spread":false},{"title":"DEmo.class <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"QuickSort.class <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"InsertSort.class <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false}],"spread":true},{"title":"SORT","children":[{"title":"CharCompare.class <span style='color:#111;'> 616B </span>","children":null,"spread":false},{"title":"BubbleSort.class <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"FloatCompare.class <span style='color:#111;'> 592B </span>","children":null,"spread":false},{"title":"IntCompare.class <span style='color:#111;'> 592B </span>","children":null,"spread":false},{"title":"ShortCompare.class <span style='color:#111;'> 592B </span>","children":null,"spread":false},{"title":"DoubleCompare.class <span style='color:#111;'> 598B </span>","children":null,"spread":false},{"title":"Demo.class <span style='color:#111;'> 879B </span>","children":null,"spread":false},{"title":"Sorter.class <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false},{"title":"ByteCompare.class <span style='color:#111;'> 586B </span>","children":null,"spread":false},{"title":"LongCompare.class <span style='color:#111;'> 586B </span>","children":null,"spread":false},{"title":"MyCompare.class <span style='color:#111;'> 164B </span>","children":null,"spread":false},{"title":"QuickSort.class <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"InsertSort.class <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false}],"spread":false},{"title":"descCompare.class <span style='color:#111;'> 539B </span>","children":null,"spread":false},{"title":"ascCompare.class <span style='color:#111;'> 536B </span>","children":null,"spread":false},{"title":"StringCompare.class <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"Sorter.class <span style='color:#111;'> 2.45KB </span>","children":null,"spread":false},{"title":"DicCompare.class <span style='color:#111;'> 595B </span>","children":null,"spread":false},{"title":"QuickSort.class <span style='color:#111;'> 885B </span>","children":null,"spread":false},{"title":"InsertSort.class <span style='color:#111;'> 766B </span>","children":null,"spread":false}],"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 598B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"ascCompare.java <span style='color:#111;'> 200B </span>","children":null,"spread":false},{"title":"DicCompare.java <span style='color:#111;'> 213B </span>","children":null,"spread":false},{"title":"StringCompare.java <span style='color:#111;'> 148B </span>","children":null,"spread":false},{"title":"Strategy","children":[{"title":"DEmo.java <span style='color:#111;'> 812B </span>","children":null,"spread":false},{"title":"QuickSort.java <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"Persion.java <span style='color:#111;'> 428B </span>","children":null,"spread":false},{"title":"BubbleSort.java <span style='color:#111;'> 1015B </span>","children":null,"spread":false},{"title":"InsertSort.java <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"ArraySort.java <span style='color:#111;'> 2.86KB </span>","children":null,"spread":false},{"title":"Sorter.java <span style='color:#111;'> 156B </span>","children":null,"spread":false}],"spread":true},{"title":"SORT","children":[{"title":"MyCompare.java <span style='color:#111;'> 95B </span>","children":null,"spread":false},{"title":"IntCompare.java <span style='color:#111;'> 218B </span>","children":null,"spread":false},{"title":"DoubleCompare.java <span style='color:#111;'> 197B </span>","children":null,"spread":false},{"title":"FloatCompare.java <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"Demo.java <span style='color:#111;'> 377B </span>","children":null,"spread":false},{"title":"QuickSort.java <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"BubbleSort.java <span style='color:#111;'> 739B </span>","children":null,"spread":false},{"title":"InsertSort.java <span style='color:#111;'> 676B </span>","children":null,"spread":false},{"title":"LongCompare.java <span style='color:#111;'> 191B </span>","children":null,"spread":false},{"title":"ShortCompare.java <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"CharCompare.java <span style='color:#111;'> 235B </span>","children":null,"spread":false},{"title":"Sorter.java <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"ByteCompare.java <span style='color:#111;'> 187B </span>","children":null,"spread":false}],"spread":false},{"title":"descCompare.java <span style='color:#111;'> 194B </span>","children":null,"spread":false},{"title":"Test.java <span style='color:#111;'> 339B </span>","children":null,"spread":false},{"title":"QuickSort.java <span style='color:#111;'> 646B </span>","children":null,"spread":false},{"title":"BubbleSort.java <span style='color:#111;'> 384B </span>","children":null,"spread":false},{"title":"InsertSort.java <span style='color:#111;'> 397B </span>","children":null,"spread":false},{"title":"OrderCompare.java <span style='color:#111;'> 168B </span>","children":null,"spread":false},{"title":"Sorter.java <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false}],"spread":false},{"title":".classpath <span style='color:#111;'> 301B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明