文件名称:merge-and-count
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2013-11-11
- 文件大小:
- 1.7mb
- 下载次数:
- 0次
- 提 供 者:
- ma***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
完成sort and count算法,是算法分析当中devide and conquer中的一道题-The attached file Q5.txt contains 100,000 integers between 1 and 100,000
(each row has a single integer), the order of these integers is random and no
integer is repeated.
1. Write a program to implement the Sort-and-Count algorithms in
your favorite language, find the number of inversions in the given file.
2. In the lecture, we count the number of inversions in O(n log n) time,
using the Merge-Sort idea. Is it possible to use the Quick-Sort
idea instead ?
If possible, implement the algorithm in your favourite language, run it
over the given file, and compare its running time with the one above.
If not, give a explanation.
(each row has a single integer), the order of these integers is random and no
integer is repeated.
1. Write a program to implement the Sort-and-Count algorithms in
your favorite language, find the number of inversions in the given file.
2. In the lecture, we count the number of inversions in O(n log n) time,
using the Merge-Sort idea. Is it possible to use the Quick-Sort
idea instead ?
If possible, implement the algorithm in your favourite language, run it
over the given file, and compare its running time with the one above.
If not, give a explanation.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
merge-and-count
...............\Debug
...............\.....\merge-and-count.exe
...............\.....\merge-and-count.ilk
...............\.....\merge-and-count.pdb
...............\ipch
...............\....\merge-and-count-bf800234
...............\....\........................\merge-and-count-e05e7c12.ipch
...............\merge-and-count
...............\merge-and-count.sdf
...............\merge-and-count.sln
...............\merge-and-count.suo
...............\...............\Debug
...............\...............\.....\CL.read.1.tlog
...............\...............\.....\CL.write.1.tlog
...............\...............\.....\link-cvtres.read.1.tlog
...............\...............\.....\link-cvtres.write.1.tlog
...............\...............\.....\link.1844-cvtres.read.1.tlog
...............\...............\.....\link.1844-cvtres.write.1.tlog
...............\...............\.....\link.1844.read.1.tlog
...............\...............\.....\link.1844.write.1.tlog
...............\...............\.....\link.2300-cvtres.read.1.tlog
...............\...............\.....\link.2300-cvtres.write.1.tlog
...............\...............\.....\link.2300.read.1.tlog
...............\...............\.....\link.2300.write.1.tlog
...............\...............\.....\link.2772-cvtres.read.1.tlog
...............\...............\.....\link.2772-cvtres.write.1.tlog
...............\...............\.....\link.2772.read.1.tlog
...............\...............\.....\link.2772.write.1.tlog
...............\...............\.....\link.2908-cvtres.read.1.tlog
...............\...............\.....\link.2908-cvtres.write.1.tlog
...............\...............\.....\link.2908.read.1.tlog
...............\...............\.....\link.2908.write.1.tlog
...............\...............\.....\link.308-cvtres.read.1.tlog
...............\...............\.....\link.308-cvtres.write.1.tlog
...............\...............\.....\link.308.read.1.tlog
...............\...............\.....\link.308.write.1.tlog
...............\...............\.....\link.3180-cvtres.read.1.tlog
...............\...............\.....\link.3180-cvtres.write.1.tlog
...............\...............\.....\link.3180.read.1.tlog
...............\...............\.....\link.3180.write.1.tlog
...............\...............\.....\link.3296-cvtres.read.1.tlog
...............\...............\.....\link.3296-cvtres.write.1.tlog
...............\...............\.....\link.3296.read.1.tlog
...............\...............\.....\link.3296.write.1.tlog
...............\...............\.....\link.3684-cvtres.read.1.tlog
...............\...............\.....\link.3684-cvtres.write.1.tlog
...............\...............\.....\link.3684.read.1.tlog
...............\...............\.....\link.3684.write.1.tlog
...............\...............\.....\link.3764-cvtres.read.1.tlog
...............\...............\.....\link.3764-cvtres.write.1.tlog
...............\...............\.....\link.3764.read.1.tlog
...............\...............\.....\link.3764.write.1.tlog
...............\...............\.....\link.4544-cvtres.read.1.tlog
...............\...............\.....\link.4544-cvtres.write.1.tlog
...............\...............\.....\link.4544.read.1.tlog
...............\...............\.....\link.4544.write.1.tlog
...............\...............\.....\link.5860-cvtres.read.1.tlog
...............\...............\.....\link.5860-cvtres.write.1.tlog
...............\...............\.....\link.5860.read.1.tlog
...............\...............\.....\link.5860.write.1.tlog
...............\...............\.....\link.744-cvtres.read.1.tlog
...............\...............\.....\link.744-cvtres.write.1.tlog
...............\...............\.....\link.744.read.1.tlog
...............\...............\.....\link.744.write.1.tlog
...............\...............\.....\link.read.1.tlog
...............\...............\.....\link.write.1.tlog
...............\...............\.....\merge-and-count.Build.CppClean.log
...............\...............\.....\merge-and-count.exe.embed.manifest
...............\...............\.....\merge-and-count.