文件名称:Merge
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-30
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 王**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
给定k 个排好序的序列s , s , , sk 1 2 , 用 2 路合并算法将这k 个序列合并成一个序列。
假设所采用的 2 路合并算法合并 2 个长度分别为m和n的序列需要m + n -1次比较。试设
计一个算法确定合并这个序列的最优合并顺序,使所需的总比较次数最少-Given k sorted sequence s, s, sk 1 2 2-way merge algorithm these the k sequences merged into a single sequence. The assumptions used in 2-way merge algorithm combined length of 2 m+ n-1 comparisons need for the sequence of m and n, respectively. Try to design an algorithm to determine the optimal merge order to merge the sequence, so that the total number of comparisons required at least
假设所采用的 2 路合并算法合并 2 个长度分别为m和n的序列需要m + n -1次比较。试设
计一个算法确定合并这个序列的最优合并顺序,使所需的总比较次数最少-Given k sorted sequence s, s, sk 1 2 2-way merge algorithm these the k sequences merged into a single sequence. The assumptions used in 2-way merge algorithm combined length of 2 m+ n-1 comparisons need for the sequence of m and n, respectively. Try to design an algorithm to determine the optimal merge order to merge the sequence, so that the total number of comparisons required at least
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Merge.java