[futurebasic] Re: [FB] Benchmark Challenge #3 - WFC

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2000 : Group Archive : Group : All Groups

From: Joe Lewis Wilkins <PepeToo@...>
Date: Mon, 18 Sep 2000 10:16:29 -0700
Ken Shmidheiser wrote:

> Robert P., in posting is solution to The Challenge, explained:
>
> >After the above clarifications, I have posted a solution at
> >
> ><ftp://ftp.futurebasic.org/futurebasic/dropbox/Challenge_3_Robert_P.sit>
> >
> >The download is 12K.
> >
> >My method is:
> >
> >1. Scan the text, character by character, converting each character to
> >upper case with a lookup table. During the scan, collect unique words only
> >(rejecting duplicates but keeping count), via a hash table constructed so
> >that it also functions as the word list for step 2.
> >2. Sort the word list by Shell's method.
> >3. Append the word count to each line, storing all this result-text in a
> >buffer.
> >4. Dump the entire buffer into an edit field in one hit.
>
> Dr. Purves posted his entry only a few minutes before I got there with mine.
>
> Thank goodness...
>
> After seeing his elegant code, I turned tail and skedaddled. Man
> would I have embarrassed myself. Now we need to talk Staz into having
> him write a new Find function for FB^3.

Not sure why you demean yourself, the sample you posted works quite well,
though I Opened Robert's "Big" file and it worked fine until I tried to replace
an "A" with "ZZZ", where the 32k limits were immediately exceeded and the Field
appeared empty when the replace activity took place, but I know this can be
diddled with some way.

I haven't been following this thread real closely, so I'm a little bit
confused.  You and Robert P. are doing "different" things are you not?  OR,
just taking a different approach to the same thing?

Along the way, somewhere, I missed this "container" thing - except to know that
it exists.  The Release 3 Reference Manual doesn't tell exactly how one is
created (that I have found), though several references to container$$ are made
with regard to other items (EDIT$ statement and the like).

How is all of this related to the WASTE Engine - if it is?  Seems this
stretching things beyond the "old" 32k limit is a pretty important
"feature/concept", and I would like to be able to explain it.

TIA,

Joe Wilkins