Permutations with Heap’s Algorithm

Posted on January 30, 2021. Filed under: Uncategorized | Tags: , , , , |

Permutations with Heap’s Algorithm The good thing with the current version of the Wikipedia page (as of this writing) is the pseudo-code for an iterative (i.e. non-recursive) version of the algorithm. The following is taken from there, without the comments and with variable names that are a bit more readable in my opinion… There’s a […]

Read Full Post | Make a Comment ( Comments Off on Permutations with Heap’s Algorithm )

Short survey of [perl] modules for combinations and permutations

Posted on June 1, 2020. Filed under: Uncategorized | Tags: , , , , , |

Short survey of modules for combinations and permutations This is a short look at some modules for generating combinations and permutations. There are likely more modules that aren’t listed. RosettaCode has examples of writing the combinations and permutations functions by hand. TL;DR: Just use Algorithm::Combinatorics (full-featured, xs). Article dates back to 2015, but it’s still […]

Read Full Post | Make a Comment ( Comments Off on Short survey of [perl] modules for combinations and permutations )

Liked it here?
Why not try sites on the blogroll...