At 13:28 -0700 2007/05/22, Roger Hui wrote:
My current champion has length 278 (titles).
A few key insights made possible several orders
of magnitude improvements in the processing speed.
Also, beware that the input file has some subtle
flaws which may make a difference (some lines
terminate in CR instead of CRLF; duplicate lines).
Actually, not too subtle. I noticed the first time
I looked at the file that it seemed to be CRLF
delimited so, as my usual practice did CR-.~ fread
I didn't notice that there were 1774 fewer CRs than
LFs ... and that there were 8 duplicated titles -
although that shouldn't make any difference in the
results. Still, one would hope that posted contests
would take some effort to preen sample files...
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm