Redian新闻
>
Re: ★我型我秀★2013年水世界秋季形象秀比赛★ (转载)
avatar
Re: ★我型我秀★2013年水世界秋季形象秀比赛★ (转载)# bagua - 娱乐八卦
H*M
1
讨论讨论
You have a file with millions of lines of data. Only two lines are identical
; the rest are all unique. Each line is so long that it may not even fit in
memory. What is the most efficient solution for finding the identical lines?
这个连每行都不能放进内存里。有什么好方法吗?
avatar
h*U
2
【 以下文字转载自 WaterWorld 讨论区 】
发信人: hUrtU (荷儿特幽), 信区: WaterWorld
标 题: Re: ★我型我秀★2013年水世界秋季形象秀比赛★
发信站: BBS 未名空间站 (Thu Sep 5 18:37:43 2013, 美东)
我也来个庆中秋的主题吧
avatar
g*y
3
for each line, compute a key, hash the key, and also store the index of line(for later comparision)
manually compare lines with same key

identical
in
lines?

【在 H*M 的大作中提到】
: 讨论讨论
: You have a file with millions of lines of data. Only two lines are identical
: ; the rest are all unique. Each line is so long that it may not even fit in
: memory. What is the most efficient solution for finding the identical lines?
: 这个连每行都不能放进内存里。有什么好方法吗?

avatar
h*U
4
米扫,qq,你们俩也去贴一个?
avatar
h*k
5
计算hash function value,然后比较?

identical
in
lines?

【在 H*M 的大作中提到】
: 讨论讨论
: You have a file with millions of lines of data. Only two lines are identical
: ; the rest are all unique. Each line is so long that it may not even fit in
: memory. What is the most efficient solution for finding the identical lines?
: 这个连每行都不能放进内存里。有什么好方法吗?

avatar
w*i
6
需要给你打分不?

【在 h***U 的大作中提到】
: 米扫,qq,你们俩也去贴一个?
avatar
m*9
7
这不是amazon的题目吗?
avatar
h*U
8
不需要,等投票的时候你们帮我投票
你也去贴一个,把你的免费衣服投成第一名,多好玩

【在 w***i 的大作中提到】
: 需要给你打分不?
avatar
g*y
9
really?
我希望被亚马孙问到这类题目,呵呵

【在 m******9 的大作中提到】
: 这不是amazon的题目吗?
avatar
w*i
10
你的票没问题,免费衣服套装就算了,表玩儿政府嘛

【在 h***U 的大作中提到】
: 不需要,等投票的时候你们帮我投票
: 你也去贴一个,把你的免费衣服投成第一名,多好玩

avatar
m*9
11
好主意
double hashing

line(for later comparision)

【在 g*******y 的大作中提到】
: for each line, compute a key, hash the key, and also store the index of line(for later comparision)
: manually compare lines with same key
:
: identical
: in
: lines?

avatar
h*U
12
那才好玩啊,说明你人气足

【在 w***i 的大作中提到】
: 你的票没问题,免费衣服套装就算了,表玩儿政府嘛
avatar
w*n
13
好啊,周末我选一个

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