Most likely. That one I found somewhat annoying in that the checksum computation does depend upon the permutations being generated in a particular order. It also seems to depend upon the sign flipping being done for every permutation, even those beginning with a '1', for which the pfannkuch function returns 0.
One way to find out what the order is is to download the Java benchmark, add some debug print statements, and run it with a small argument like 6 or 7. Either that, or read and understand its permutation generating code. Andy On Thu, Sep 2, 2010 at 11:01 PM, Miki <miki.teb...@gmail.com> wrote: > Hello, > > I've tried writing a a solution to shootout "fannkuch" (http:// > shootout.alioth.debian.org/u32/performance.php?test=fannkuchredux), > however I seem to have a bug in the checksum. Is it just the order of > permutations or am I missing something? > > Code at http://bitbucket.org/tebeka/shootout-clj/src/tip/fannkuch.clj > > All the best, > -- > Miki > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com<clojure%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en