Re: Contest details updated

new topic     » goto parent     » topic index » view thread      » older message » newer message

Phil Russell wrote:
> 
> Derek Parnell wrote:
> > 
> > I've updated the contest page with links to further details about
> > each submission.
> 
> If you get a spare moment, any chance of a hint as to why
> pgrcom2 counts files 7 & 10 wrong?

File 7 does not end with a line-end character. The very last character
in the file is part of a token. So if you program only gather's tokens
before EOF is found, it misses out on the last token.

File 10 is just random bytes. Many are greater than #7F. Your output
is ...

Total:       1, Unique:       1
01 I                    1
01 1
Elapsed time: 0.000000

but the acceptable output is either a message stating that the file contains
invalid bytes, or a valid attempt to count tokens. ...

Total:    1563, Unique:     399
01 V                    59
01 1152
02 304
03 73
04 21
05 12
06 1
Elapsed time: 0.640000

> Many thanks for organising the contest - I've enjoyed it immensely so far
> (and most of the month still to go!).  

There is still some optimisation left. I have a submission from Jiri Babor
and it is very, very, slick. 

>At the very least, it seems to have
> stopped the various flame wars that were going on...

And people call me mad blink  It also gives a break to RDS - I'm anxious
for v2.5 and Robert doesn't need to many problems just now.

-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu