-
用java语言实现策略模式
BubbleSort.java――冒泡排序算法
ChooseSort.java――选择排序算法
InsertSort.j...
用java语言实现策略模式
BubbleSort.java――冒泡排序算法
ChooseSort.java――选择排序算法
InsertSort.java――插入排序算法
MergeSort.java――合并排序算法
SortStrategy.java――排序算法的接口
Sort.java――排序类,通过此类的sort()可以对实现了Comparable接口的数组进行升序
SortMain.java――显示界面排序-Using java language model to achieve the strategy BubbleSort.java-- Bubble Sort algorithm ChooseSort.java-- choice of sorting algorithm InsertSort.java-- Insertion Sort algorithm MergeSort.java-- merge sorting algorithm SortStrategy.java-- sort of the interface algorithm Sort. java- Sort category by such sort () can be achieved for an array of Comparable interface ascending SortMain.java-- Display order
- 2023-07-31 08:20:03下载
- 积分:1
-
一种基于二维链表的稀疏矩阵模半板类设计
A template Class of sparse matrix.
Key technology: bin,2...
一种基于二维链表的稀疏矩阵模半板类设计
A template Class of sparse matrix.
Key technology: bin,2-m linked matrix.
constructors: 1.normal constuctor 2.copy constuctor. 3.assignment constructor.
Basic operator: 1. addition(sub) of two matrix
2. inverse of a matrix.
3. multiply of two matrix.
etc.-based on two-dimensional chain of sparse matrix model semi-plate design of Class A"s template parse matrix. Key technology : bin. 2-m linked matrix. constructors : 1.normal constuctor 2.copy constuctor. 3.ass ignment constructor. Basic operator : 1. addition (sub) 2 matrix of two. inverse of a ma trix. 3. multiply of two matrix. etc
- 2023-03-19 06:15:03下载
- 积分:1
-
马周游问题代码,走日字形的马在 一个棋盘
马周游问题代码,走日字形的马在 一个棋盘-Ma tour problem code
- 2022-08-24 20:45:57下载
- 积分:1
-
常用的hash算法APHash,该hash算法可以实现均衡分布,让数据均匀的分布在hash列表中...
常用的hash算法APHash,该hash算法可以实现均衡分布,让数据均匀的分布在hash列表中-Commonly used hash algorithms APHash, the hash algorithm can achieve a balanced distribution, so that uniform distribution of data in the hash list
- 2022-08-22 19:52:28下载
- 积分:1
-
微软msde,数据库引擎得简单查许分析器
微软msde,数据库引擎得简单查许分析器-Microsoft MSDE database engines were simple check Xu Analyzer
- 2023-07-26 04:40:03下载
- 积分:1
-
清华大学出版的数据结构(C++)的配套课件
清华大学出版的数据结构(C++)的配套课件-Tsinghua University published the data structure (C) matching courseware
- 2022-03-04 09:03:35下载
- 积分:1
-
问题描述:假设一个商店,有一个架子和一个仓库,当第…
问题描述: 假设一个商店,它有一个货架和一个仓库,当货架上的商品数量少于一定的数目时,从仓库运一定数量的商品摆到货架上,当仓库里的商品的数量少于一定的数目时,购买商品把仓库填满,商品的出售要按照商品的生产日期来,快要过期的商品要先出售。 解决问题的方法: 用了两个栈和 一个队列,把队列当作仓库,用一个栈作为货架,把另一个栈当作临时的存储箱。当要往货架上添商品时,先把作为货架的栈中的元素全都压到作为存储箱的栈中,再把仓库中的元素压到存储箱中,然后再把存储箱中的所有元素都压到货架上,这样,就能保证快要过期的商品先被出售。-Problem description : Suppose a shop, which has a shelf and a warehouse, when the merchandise on the shelves less than a certain quantity of the number, a certain number from the warehouses of goods on the shelves, when the warehouse volume of goods is less than certain number, purchase goods warehouse filled, the goods according to the sale of commodity production to date, is about to expire first sale of goods. The solution : a two stack and a queue, queue as a warehouse, used as a stack shelves, and another stack as a temporary storage bins. When to go to the shelves Tim commodity, first as a stack shelves of all elements of the pressure storage tank as the stack, then the warehouse down to the storage element box, and then s
- 2022-07-13 01:56:00下载
- 积分:1
-
C++ Builder程序员学习数据结构第4章
C++ Builder程序员学习数据结构第4章-Builder C programmers to learn data structure Chapter 4
- 2023-04-24 22:00:02下载
- 积分:1
-
结构链接列表的示例
这种编码使用 structthis 的链接列表是简单的输入的数据、 搜索、 显示和删除。我希望它是完全为你的使用。
- 2022-03-13 07:02:19下载
- 积分:1
-
Binomial coefficient computing] [Dev
二叉树系数计算[DeV-C++学习],利用动态规划动态编程计算
- 2022-02-01 00:21:29下载
- 积分:1