avatar
an old sorting algorithm# JobHunting - 待字闺中
N*g
1
☆─────────────────────────────────────☆
winderwater (长期大量厚道收购苹果手机) 于 (Sun Jul 19 14:06:22 2009, 美东) 提到:
http://www.officedepot.com/a/products/502074/Toshiba-Satellite-L505-S5966-15-6/
☆─────────────────────────────────────☆
Sickdeal (Slickdeal) 于 (Sun Jul 19 14:31:12 2009, 美东) 提到:
这个性价比不如前天NEWEGG的312刀的 Lenovo吧?
avatar
j*r
2
two unordered array, one long,n , one short, m, sort them into a large array
. Someone say that we can sort the short array, it's mlogm, and binary
search and insert the long, the total is nlogm. but i am not clear about the
insert part, how it can be nlogm.
If there is a better algorithm, please share.
Thank for helps.
avatar
q*x
3
can't be better than O((n+m)log(n+m))
otherwise, you can always split one single unsorted array into long/short
pair.

array
the

【在 j********r 的大作中提到】
: two unordered array, one long,n , one short, m, sort them into a large array
: . Someone say that we can sort the short array, it's mlogm, and binary
: search and insert the long, the total is nlogm. but i am not clear about the
: insert part, how it can be nlogm.
: If there is a better algorithm, please share.
: Thank for helps.

avatar
p*2
4

array
the
binary search也不是logm吧?注意m只是初始值,会越来越大。

【在 j********r 的大作中提到】
: two unordered array, one long,n , one short, m, sort them into a large array
: . Someone say that we can sort the short array, it's mlogm, and binary
: search and insert the long, the total is nlogm. but i am not clear about the
: insert part, how it can be nlogm.
: If there is a better algorithm, please share.
: Thank for helps.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。