Combinations Vs. Permutations on Linux and Unix

Posted by eggi on Sep 19, 2008 3:30 AM EDT
The Linux and Unix Menagerie; By Mike Tremell
Mail this story
Print this story

Here's a little something to finish the week off and tie up some loose ends. You may have noticed in our Perl script to maximize guaranteed matches in any give number pool that we did all of our work using permutations, which we then went through the trouble of sorting and removing duplicates. Probably a few people out there were thinking: "Why permutations if 1,2,3 and 3,1,2 are going to be considered equal? Isn't that just a bunch of extra work?" The answers to those questions are "why not" and "yes" ;)

Full Story

  Nav
» Read more about: Story Type: Editorial, Tutorial; Groups: Community, Linux, Sun

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.