| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:n个数组如何快速合并?In Reply To:Re:n个数组如何快速合并? Posted by:frkstyc at 2006-04-24 19:34:12 > 假设存在O(n)的数组合并算法,那么对任意n个数,将每一个数看成一个只有一个元素的数组,由假设,可以在O(n)时间内将其合并成一个有序数组,即排序问题可以在O(n)时间内解决,这与排序问题的时间下界Ω(nlogn)矛盾,故假设不成立,不存在O(n)的数组合并算法。 > Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator