1. RE: Contest

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 blink)
> 
> 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

new topic     » topic index » view message » categorize

2. RE: Contest

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

new topic     » goto parent     » topic index » view message » categorize

3. RE: Contest

Can a quote character begin a word?
such as 'example'

Chris Bensler
Code is Alchemy

new topic     » goto parent     » topic index » view message » categorize

4. RE: Contest

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

new topic     » goto parent     » topic index » view message » categorize

5. RE: Contest

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

new topic     » goto parent     » topic index » view message » categorize

6. RE: Contest

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

new topic     » goto parent     » topic index » view message » categorize

7. RE: Contest

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

new topic     » goto parent     » topic index » view message » categorize

8. RE: Contest

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

new topic     » goto parent     » topic index » view message » categorize

9. RE: Contest

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

new topic     » goto parent     » topic index » view message » categorize

10. RE: Contest

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

new topic     » goto parent     » topic index » view message » categorize

11. RE: Contest

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

new topic     » goto parent     » topic index » view message » categorize

12. RE: Contest

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/

new topic     » goto parent     » topic index » view message » categorize

13. RE: Contest

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu