Skip to content

Gaudel's Miscellany

  • Home
  • About

Posts filed under “algorithm”


Cartesian for-each at runtime

15 November 2022
  • programming

Useful when the number of arguments to a carteisan product is determined at runtime.

Generating lexicographic permutations with parity

13 May 2023
  • programming

For a totally-ordered set, lexicographically first and last sequences made of its elements can be defined. Every sequence is either an odd or an even number of element transpositions from the first sequence. How to keep track of the parity (even/odd)-ness of all permutations?

  • cpp
  • design
  • algorithm
  • programming

Theme

Follow me on:

  • GitHub

© Bimal Gaudel