Re: Cross-language challenge (of POSSIBLE interest)
From: Lueko Willms (l.willms_at_jpberlin.de)
Date: 02/25/05
- Next message: Kellie Fitton: "Re: Treeviews"
- Previous message: docdwarf_at_panix.com: "Re: OT: Religion in CLC posts WAS: Re: MF Collection Class speed"
- In reply to: Rick Smith: "Re: Cross-language challenge (of POSSIBLE interest)"
- Next in thread: Robert Wagner: "Re: Cross-language challenge (of POSSIBLE interest)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 25 Feb 2005 13:57:00 GMT
. On 22.02.05
wrote ricksmith@mfi.net (Rick Smith)
on /COMP/LANG/COBOL
in 111njuk74313u0e@corp.supernews.com
about Re: Cross-language challenge (of POSSIBLE interest)
RS> Well, I moved the table and it ran slower. I tried some other
RS> things. Ran slower. Decided to stop trying to improve the
RS> algoritms. Moved all the source to one program, and ...
RS>
RS> 8177 a
RS> 319 aaron
RS> 2 aaronites
RS> . . .
RS> 63924 the
RS> . . .
RS> 1 zuriel
RS> 5 zurishaddai
RS> 1 zuzims
RS>
RS> total words = 789781
RS> unique words = 12691
RS> 0.66 Sec 2.4GHz AMD
I have just completed a version in VB Script (Visual Basic Script),
which -- of course -- does not run that fast: 14.67188 Seconds on a
2.8 GHz AMD Athlon CPU with 768 MByte Memory under Windows NT 5.0, er,
Windows 2000 Server.
The script uses mostly standard VBS objects classes: Command Line
Arguments, File System Objects, Dictionary (sort of an associative
array), and the Regular Expression object. The dictionary is
unfortunately not sorted, which accounts probably for most of the
running time. The dictionary has to be exported into an array to read
it sequentially, and the array has been sorted by a Quicksort which I
ported to VBS. This Quicksort added only a few fractions of a second
to the running time.
--------- schnipp -----------------------------------------
8.177 a
319 aaron
2 aaronites
31 aarons
63.924 the
3 zorobabel
5 zuar
3 zuph
5 zur
1 zuriel
5 zurishaddai
1 zuzims
Worte insgesamt 789.781
davon verschieden 12.691
Fertig in 14,67188 Sekunden
------------------ schnapp --------------------------------
Yours,
Lüko Willms http://www.willms-edv.de
/--------- L.WILLMS@jpberlin.de -- Alle Rechte vorbehalten --
Die Wörter-Welt. -G.C.Lichtenberg
- Next message: Kellie Fitton: "Re: Treeviews"
- Previous message: docdwarf_at_panix.com: "Re: OT: Religion in CLC posts WAS: Re: MF Collection Class speed"
- In reply to: Rick Smith: "Re: Cross-language challenge (of POSSIBLE interest)"
- Next in thread: Robert Wagner: "Re: Cross-language challenge (of POSSIBLE interest)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|