需要对非常大的单词列表进行排序 [英] Need to sort a very large list of words

查看:80
本文介绍了需要对非常大的单词列表进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文本文件,每行一个字。

我想按字母顺序排列这些行,所以我把它打开成MS Word和

要求Word对它进行排序。

Word说这个列表太大了。

我想我会编写一个程序对文件进行排序。

但是我想知道Word是不是能处理它会遇到什么事情以及什么是最好的继续方式。


我不知道对数组大小有什么样的限制等等。

任何有用的评论?

提前致谢。

I have a text file, one word per line.
I want to arrange the lines alphabetically so I opened it into MS Word and
asked Word to sort it.
Word said that the list was too big for it.
I figure I''ll write a program to sort the file.
But I wonder if Word can''t handle it what things I''ll run into and what''s
the best way to proceed.

I have no idea what kind of limits the are on array sizes and such.
Any helpful comments?
Thanks in advance.

推荐答案

"弗兰克" < fr *** @ a-znet.com在留言新闻中写道:OZ ************* @ TK2MSFTNGP04.phx.gbl ...
" Frank" <fr***@a-znet.comwrote in message news:OZ*************@TK2MSFTNGP04.phx.gbl...

>我有一个文本文件,每行一个字。

我想按字母顺序排列这些行,所以我把它打开成MS Word并且

问要对它进行排序。

Word说这个列表太大了。

我想我会编写一个程序对文件进行排序。

但是我想知道Word是不是能够处理我遇到的事情以及什么是最好的继续方式。


我不知道对数组大小有什么样的限制等等。


任何有用的评论?


谢谢你提前。

>I have a text file, one word per line.
I want to arrange the lines alphabetically so I opened it into MS Word and
asked Word to sort it.
Word said that the list was too big for it.
I figure I''ll write a program to sort the file.
But I wonder if Word can''t handle it what things I''ll run into and what''s
the best way to proceed.

I have no idea what kind of limits the are on array sizes and such.
Any helpful comments?
Thanks in advance.



为什么不使用命令行实用程序sort.exe?


Willy。


Why not use the command line utility sort.exe?

Willy.




"弗兰克" < fr *** @ a-znet.com写信息

新闻:OZ ************* @ TK2MSFTNGP04.phx.gbl ...

" Frank" <fr***@a-znet.comwrote in message
news:OZ*************@TK2MSFTNGP04.phx.gbl...

>我有一个文本文件,每行一个单词。

我想按字母顺序排列这些行,所以我把它打开成MS Word和< br $> b $ b要求Word对它进行排序。

Word说这个列表太大了。

我想我会写一个程序给对文件进行排序。

但我不知道Word是否无法处理它将会遇到的事情以及什么是最好的继续方式。


我不知道对数组大小有什么样的限制等等。


任何有用的评论?
>I have a text file, one word per line.
I want to arrange the lines alphabetically so I opened it into MS Word and
asked Word to sort it.
Word said that the list was too big for it.
I figure I''ll write a program to sort the file.
But I wonder if Word can''t handle it what things I''ll run into and what''s
the best way to proceed.

I have no idea what kind of limits the are on array sizes and such.
Any helpful comments?



建议,首先读取数据,一次读取一行,然后

将所有As放入一个文件中,Bs in另一个等,不用担心

排序。然后,单独对每个文件进行排序,然后将所有文件连接起来。

Suggestion, first pigeonhole the data, by reading one line at a time, and
putting all the As in one file, Bs in another, etc, without worrying about
sorting. Then, sort each file independently, then catenate all the files
back together.


>


提前致谢。
>

Thanks in advance.



我会咬......什么太大了是什么意思?


你可以让我们进入一些实际的单词数量吗?我并不是说听起来很愚蠢,但如果它是gazillion,你可能会遇到不同的问题,而不仅仅是.5亿美元。除此之外,你实时排序

,每小时一次,每天一次,按需,这一次和

那么谁在乎?


"弗兰克" < fr *** @ a-znet.com写信息

新闻:OZ ************* @ TK2MSFTNGP04.phx.gbl ...
I''ll bite... what does "too large" mean?

Is there some actual number of words you might let us in on? I don''t mean
to sound silly but if it is gazillion you''d probably run into different
problems than if it was just .5 gazillion. Other than that are you sorting
it in realtime, once per hour, once per day, on demand, this one time and
then who cares?

" Frank" <fr***@a-znet.comwrote in message
news:OZ*************@TK2MSFTNGP04.phx.gbl...

>我有一个文本文件,每行一个单词。

我想按字母顺序排列这些行,所以我把它打开成MS Word和< br $> b $ b要求Word对它进行排序。

Word说这个列表太大了。

我想我会写一个程序给对文件进行排序。

但我不知道Word是否无法处理它将会遇到的事情以及什么是最好的继续方式。


我不知道对数组大小有什么样的限制等等。


任何有用的评论?

先谢谢。
>I have a text file, one word per line.
I want to arrange the lines alphabetically so I opened it into MS Word and
asked Word to sort it.
Word said that the list was too big for it.
I figure I''ll write a program to sort the file.
But I wonder if Word can''t handle it what things I''ll run into and what''s
the best way to proceed.

I have no idea what kind of limits the are on array sizes and such.

Any helpful comments?
Thanks in advance.



这篇关于需要对非常大的单词列表进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆