Re: [Haskell-cafe] Getting highest sum of list elements with Map

2009-08-17 Thread david48
On Wed, Aug 5, 2009 at 10:51 AM, gwe...@gmail.com wrote: (Full source attached; or alternately, grab it: darcs get http://community.haskell.org/~gwern/hcorpus ) So I have this little program which hopefully will help me learn French by Probably off-topic, but also, I'm willing to help anyone

Re: [Haskell-cafe] Getting highest sum of list elements with Map

2009-08-06 Thread Gwern Branwen
-- based on http://jtauber.com/blog/2008/02/10/a_new_kind_of_graded_reader/ -- TODO: read knownwords from file -- print out matching sentences as well (make optional) -- fix performance; goal: handle Frank Herbert corpus in under 5 minutes import Data.Ord import Data.Char

[Haskell-cafe] Getting highest sum of list elements with Map

2009-08-05 Thread gwern0
-- based on http://jtauber.com/blog/2008/02/10/a_new_kind_of_graded_reader/ -- TODO: read knownwords from file -- print out matching sentences as well (make optional) -- fix performance; goal: handle Frank Herbert corpus in under 5 minutes -- benchmark parallelism; is it gaining

Re: [Haskell-cafe] Getting highest sum of list elements with Map

2009-08-05 Thread Yitzchak Gale
Hi Gwern, gwern0 wrote: ...efficiency is an issue. Here are a few efficiency issues that I noticed in your algorithm after a quick look (none of these have to do with Haskell really): o ranks sorts the entire set, then discards all but the maximum. It would be better to use maximum or