Dynamic Programming with Memoizing

2006-04-27 Thread Lajos Nagy
less, it takes forever to compute even `p 20'. What's wrong? (I even tried using a strict container along the lines of `N !Rational' for storing the results of `p' and `q'. It didn't help.) The program seems to work correctly for small values of `k', by

Optimization & Destructive Updates

2006-04-14 Thread Lajos Nagy
verloading (destructive vs. non-destructive) for functions which also seems an interesting research area. Regards, -- Lajos Nagy Computer Science Ph.D. Student, Florida Institute of Technology ___ Glasgow-haskell-users mailing list Glasgow-has

Dynamic Map

2005-10-16 Thread Lajos Nagy
ct the operations to insert and lookup then ER is restored. (And those two operations is all I need.) I tried several ways of implementing it but those monadic types just kept cropping up in the map interface. I'd appreciate any ideas or pointers. Regards, Lajos Nagy

How to make Data.Set.Set a Functor

2005-10-11 Thread Lajos Nagy
inition of `fmap': fmap f s = Data.Set.map f s In the definition for method `fmap' In the instance declaration for `Functor Data.Set.Set' On the other hand, it seems intuitively natural to make Set an instance of fmap. Any ideas on how to do