LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Syndicated Linux News (https://www.linuxquestions.org/questions/syndicated-linux-news-67/)
-   -   LXer: Combinations Vs. Permutations on Linux and Unix (https://www.linuxquestions.org/questions/syndicated-linux-news-67/lxer-combinations-vs-permutations-on-linux-and-unix-670983/)

LXer 09-19-2008 02:50 AM

LXer: Combinations Vs. Permutations on Linux and Unix
 
Published at LXer:

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" ;)

Read More...


All times are GMT -5. The time now is 11:18 AM.