或者不用list或栈,直接读文件,比较,然后写文件

来源: feicen 2009-05-09 16:58:57 [] [旧帖] [给我悄悄话] 本文已被阅读: 次 (66 bytes)
因为文件很大,所以可能用储存数据进内存不现实.
不如直接用文件指针

所有跟帖: 

回复:或者不用list或栈,直接读文件,比较,然后写文件 -hello2- 给 hello2 发送悄悄话 hello2 的博客首页 (69 bytes) () 05/09/2009 postreply 17:01:02

如果排序的话,那就太简单了,这个题是open的,是考实际问题解决 -feicen- 给 feicen 发送悄悄话 (83 bytes) () 05/09/2009 postreply 17:04:40

但我还是觉得是考排序:) -戏雨飞鹰- 给 戏雨飞鹰 发送悄悄话 戏雨飞鹰 的博客首页 (0 bytes) () 05/09/2009 postreply 17:34:54

meant to follow up with feicen. -戏雨飞鹰- 给 戏雨飞鹰 发送悄悄话 戏雨飞鹰 的博客首页 (0 bytes) () 05/09/2009 postreply 17:36:42

考排序的话就不会说给的两个原文件是排好的了 -feicen- 给 feicen 发送悄悄话 (199 bytes) () 05/09/2009 postreply 17:48:13

hmm. makes sense. thanks. -戏雨飞鹰- 给 戏雨飞鹰 发送悄悄话 戏雨飞鹰 的博客首页 (0 bytes) () 05/09/2009 postreply 17:59:21

回复:考排序的话就不会说给的两个原文件是排好的了 -hello2- 给 hello2 发送悄悄话 hello2 的博客首页 (99 bytes) () 05/09/2009 postreply 18:38:17

无论如何,我认为feicen给的算法是performance最好的:) -戏雨飞鹰- 给 戏雨飞鹰 发送悄悄话 戏雨飞鹰 的博客首页 (0 bytes) () 05/10/2009 postreply 11:40:23

系统page时会不停移动数据块组合成大块内存---超级慢 -what124- 给 what124 发送悄悄话 (305 bytes) () 05/11/2009 postreply 05:26:51

同意你对算法的分析。跟feicent说的一致。关于女程序员的说法, -戏雨飞鹰- 给 戏雨飞鹰 发送悄悄话 戏雨飞鹰 的博客首页 (340 bytes) () 05/11/2009 postreply 07:01:35

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”