Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #14564 > unrolled thread

Programming Challenge

Started bymarkspace <-@.>
First post2012-05-16 09:26 -0700
Last post2012-05-17 08:50 -0700
Articles 3 — 2 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Programming Challenge markspace <-@.> - 2012-05-16 09:26 -0700
    Re: Programming Challenge Jeff Higgins <jeff@invalid.invalid> - 2012-05-17 08:13 -0400
      Re: Programming Challenge markspace <-@.> - 2012-05-17 08:50 -0700

#14564 — Programming Challenge

Frommarkspace <-@.>
Date2012-05-16 09:26 -0700
SubjectProgramming Challenge
Message-ID<jp0kf5$2le$1@dont-email.me>
Peter Norvig has a programming challenge on his website.  It's rather 
old, from 1999, and the premise is kind of off: compare Java to Lisp. 
However, ignoring the micro-benchmark discussion and the language vs. 
language debate, the problem itself is interesting.

<http://norvig.com/java-lisp.html>

So I went ahead and tried it.  I'm afraid I didn't do too well.  I 
misread the requirements (twice!) and part of the challenge is to 
measure your speed as a coder, so while I wasn't the most extreme data 
point (10 hours to code it up, iirc), I was well above the mean.

Anyway, now that I have it working, I found that the original input 
files are not available.  The website referenced is very old, and seems 
to get "tired" while downloading the large files.  So I'm wondering if 
any else would like to test their skills against Peter's and the rest of 
the sample, and share their solution.  I have a version which should be 
good and fast.  I did find one possible large optimization, and I'm 
wondering if other folks would find the same optimization, or handle the 
large search space in a different way.

Program to follow!  I'll let you work on it first before sharing my 
solution.  Don't forget to read the instructions, which say to produce a 
"professional" result, but also to keep the source to one file (which 
should make sharing over the internet easier).

ttfn

[toc] | [next] | [standalone]


#14575

FromJeff Higgins <jeff@invalid.invalid>
Date2012-05-17 08:13 -0400
Message-ID<jp2q1f$hmm$1@dont-email.me>
In reply to#14564
On 05/16/2012 12:26 PM, markspace wrote:
> Peter Norvig has a programming challenge on his website.  It's rather
> old, from 1999, and the premise is kind of off: compare Java to Lisp.
> However, ignoring the micro-benchmark discussion and the language vs.
> language debate, the problem itself is interesting.
>
> <http://norvig.com/java-lisp.html>
>
For some reason this failed to capture my imagination.
However, this one did.

<http://norvig.com/spell-correct.html>

Thanks for the link.

[toc] | [prev] | [next] | [standalone]


#14579

Frommarkspace <-@.>
Date2012-05-17 08:50 -0700
Message-ID<jp36oh$6hj$1@dont-email.me>
In reply to#14575
On 5/17/2012 5:13 AM, Jeff Higgins wrote:
> For some reason this failed to capture my imagination.
> However, this one did.
>
> <http://norvig.com/spell-correct.html>
>
> Thanks for the link.


Peter Norvig's (Google's CTO) contains a lot of interesting stuff.  If 
you like language processing, check out Natural Language Processing with 
Python and the associated toolkit:

<https://sites.google.com/site/naturallanguagetoolkit/book>

<http://nltk.org/>

It's a big subject and still pretty much in its infancy, afaict.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web