1. RE: Contest
- Posted by Chris Bensler <bensler at nt.net> Nov 02, 2004
- 503 views
Pete Lomax wrote: > > > On Tue, 2 Nov 2004 11:12:21 +1100, Patrick Barnes <mrtrick at gmail.com> > wrote: > > >>Pete Lomax wrote: > >> Total: 124690, Unique: 7531 > >Patrick Barnes win32lib.ew > >Total: 124690, Unique: 7531 > <snip> > Yup, 100% > Now show me (and Derek) what speed you got under that hood ) > > Pete > PS Chuffed as I am by the ridiculous and scary score of 99.5%, my algo > is pretty simple (just 266 lines). It can be beaten, and it will be. > Your % score is relative to the fastest entries. Yours being the only one, 99.5% is not unexpected. I wonder why you lost 0.5% :) Chris Bensler Code is Alchemy
2. RE: Contest
- Posted by Chris Bensler <bensler at nt.net> Oct 28, 2004
- 494 views
Andy Serpa wrote: > > > posted by: Andy Serpa <ac at onehorseshy.com> > > > 512 *KB*? Under Windows? That can't be right. You can't even turn on > Windows with less than 64MB these days. It is hard to imagine any > system having less than 256MB. > > What OS, by the way? Euphoria 2.4 under 98/ME has a number of > idiosycrancies with memory allocation/deallocation that don't exist > (much) under XP. This was caused when Rob switched to using the Windows > malloc instead of the Watcom malloc... Have you ever seen a 512KB ram stick, that would run on any machine capable of running windows? I didn't think so. I've never even seen < 1MB sticks for 286's. Actually, I can't recall ever seeing a 512Kb ram stick! :) C'mon now, enough with the brainless question :P Chris Bensler Code is Alchemy
3. RE: Contest
- Posted by Chris Bensler <bensler at nt.net> Oct 29, 2004
- 479 views
Can a quote character begin a word? such as 'example' Chris Bensler Code is Alchemy
4. RE: Contest
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 29, 2004
- 481 views
Chris Bensler wrote: > > Can a quote character begin a word? > such as 'example' > Yes. A quote is a word character but it does not take part in comparisons or word-length determination. Thus " 'example' " is a word of 7 characters, and " 'Tis lov'd anon' " is three words and equivalent to "TIS", "LOVD" and "ANON" - okay? -- Derek Parnell Melbourne, Australia
5. RE: Contest
- Posted by "Kat" <gertie at visionsix.com> Oct 29, 2004
- 480 views
On 28 Oct 2004, at 19:20, Derek Parnell wrote: > > > posted by: Derek Parnell <ddparnell at bigpond.com> > > Chris Bensler wrote: > > > > Can a quote character begin a word? > > such as 'example' > > > > Yes. A quote is a word character but it does not take part in comparisons > or word-length determination. Thus " 'example' " is a word of 7 characters, > and > " 'Tis lov'd anon' " is three words and equivalent to "TIS", "LOVD" and "ANON" > - > okay? Not entirely. Do we display ( "'TIS" or "TIS" ) and ( "LOVD" or "LOV'D" ) as the word found? Kat
6. RE: Contest
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 29, 2004
- 484 views
Kat wrote: > > On 28 Oct 2004, at 19:20, Derek Parnell wrote: > > > > > posted by: Derek Parnell <ddparnell at bigpond.com> > > > > Chris Bensler wrote: > > > > > > Can a quote character begin a word? > > > such as 'example' > > > > > > > Yes. A quote is a word character but it does not take part in comparisons > > or word-length determination. Thus " 'example' " is a word of 7 characters, > > and > > " 'Tis lov'd anon' " is three words and equivalent to "TIS", "LOVD" and > > "ANON" - > > okay? > > Not entirely. Do we display ( "'TIS" or "TIS" ) and ( "LOVD" or "LOV'D" ) as > the word found? I don't care. But remember that if you find "IT'S", "ITS" and "'I'T''S'" in a file they are all counted as the same word so I don't mind if you display any of them. It's your call. But I will be more impressed by a legible display that one that is hard to read. -- Derek Parnell Melbourne, Australia
7. RE: Contest
- Posted by Chris Bensler <bensler at nt.net> Oct 29, 2004
- 468 views
- Last edited Oct 30, 2004
Tommy Carlier wrote: <SNIP> > > Matt Lewis wrnpc11.txt <SNIP> > My program outputs the following result for wrnpc11.txt: > > Tommy Carlier wrnpc11.txt <SNIP> My output matches Tommy's. Matt Lewis, you've got a bug. Chris Bensler Code is Alchemy
8. RE: Contest
- Posted by Brian Broker <bkb at cnw.com> Oct 29, 2004
- 486 views
- Last edited Oct 30, 2004
Phil Russell wrote: > > Pete Lomax wrote: > > > > Just for a laugh, I tried words.txt (omitting most frequent!): > > Total: 51792, Unique: 51682 > > 01 2 > > 02 128 > > 03 824 > > 04 2823 > > 05 5059 > > 06 7544 > > 07 9182 > > 08 7627 > > 09 6525 > > 10 4900 > > 11 3176 > > 12 1932 > > 13 1135 > > 14 522 > > 15 242 > > 16 90 > > 17 52 > > 18 22 > > 19 4 > > 20 3 > > Phil Russell words.txt > Total: 51799, Unique: 51684 > <most frequent omitted> > 01 2 > 02 129 > 03 824 > 04 2823 > 05 5060 > 06 7545 > 07 9183 > 08 7628 > 09 6525 > 10 4901 > 11 3177 > 12 1932 > 13 1135 > 14 522 > 15 242 > 16 90 > 17 52 > 18 22 > 19 4 > 20 3 > > Sigh. > > Phil An easy check for total words is that there are 51795 lines in the file (each containing one valid word). The following three words are omitted for being over 20 characters: Line: Word: 14986: ELECTROENCEPHALOGRAPH 14987: ELECTROENCEPHALOGRAPHY 22727: IMMUNOELECTROPHORESIS I contend that no word from words.txt should be omitted... perhaps the max word length limit should be 22? -- Brian
9. RE: Contest
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 29, 2004
- 470 views
- Last edited Oct 30, 2004
Brian Broker wrote: [snip] > I contend that no word from words.txt should be omitted... perhaps the > max word length limit should be 22? Well 20 was fairly arbitary. And it doesn't really matter that much. If you all want it raised to some other figure, its okay by me however some of the files that will be used in judging contain many words longer than 20 (even 22) characters. -- Derek Parnell Melbourne, Australia
10. RE: Contest
- Posted by Chris Bensler <bensler at nt.net> Oct 30, 2004
- 484 views
- Last edited Oct 31, 2004
Derek Parnell wrote: > > > posted by: Derek Parnell <ddparnell at bigpond.com> > > cklester wrote: > > > > Derek Parnell wrote: > > > > > > Juergen Luethje wrote: > > > > > > > > Hi Derek, > > > > > > > > according to your rules, > > > > 2004 is not a word, but > > > > '04 is a word. > > > > Would this be a token of "04," despite that "all numbers" is not > > considered a valid token? > > '04 Is a three-character token > <SNIP> Don't you mean TWO?? if its and it's are the same, then ' is ignored. its can't be both 3 chars and 4 characters long. Are you saying that its and it's are treated as the same token, but have different lengths? In other words, while ' should be ignored, they should still be counted? Chris Bensler Code is Alchemy
11. RE: Contest
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 30, 2004
- 472 views
- Last edited Oct 31, 2004
Chris Bensler wrote: > > > Derek Parnell wrote: > > > > > > posted by: Derek Parnell <ddparnell at bigpond.com> > > > > cklester wrote: > > > > > > Derek Parnell wrote: > > > > > > > > Juergen Luethje wrote: > > > > > > > > > > Hi Derek, > > > > > > > > > > according to your rules, > > > > > 2004 is not a word, but > > > > > '04 is a word. > > > > > > Would this be a token of "04," despite that "all numbers" is not > > > considered a valid token? > > > > '04 Is a three-character token > > > <SNIP> > > Don't you mean TWO?? > if its and it's are the same, then ' is ignored. > its can't be both 3 chars and 4 characters long. > > Are you saying that its and it's are treated as the same token, but > have different lengths? In other words, while ' should be ignored, they > should still be counted? LOL! I've only just got up and I'm a bit "fuzzy". The length of '04 is TWO even though it uses up three characters. -- Derek Parnell Melbourne, Australia
12. RE: Contest
- Posted by cklester <cklester at yahoo.com> Oct 31, 2004
- 478 views
Derek Parnell wrote: > > Are you saying that its and it's are treated as the same token, but > > have different lengths? In other words, while ' should be ignored, they > > should still be counted? > > LOL! I've only just got up and I'm a bit "fuzzy". > > The length of '04 is TWO even though it uses up three characters. How about another token validation rule (like the "can't be 0-length"), which is, "Must contain at least one letter," thereby making "'04" not a valid token, ever. :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
13. RE: Contest
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 31, 2004
- 482 views
cklester wrote: > > Derek Parnell wrote: > > > > Are you saying that its and it's are treated as the same token, but > > > have different lengths? In other words, while ' should be ignored, they > > > should still be counted? > > > > LOL! I've only just got up and I'm a bit "fuzzy". > > > > The length of '04 is TWO even though it uses up three characters. > > How about another token validation rule (like the "can't be 0-length"), > which is, "Must contain at least one letter," thereby making "'04" not > a valid token, ever. :) No thanks. There are already enough confusion with the current ones. I wanted to have a few quirks to make it a bit of a challenge. -- Derek Parnell Melbourne, Australia