Skip to content

Instantly share code, notes, and snippets.

@parastuffs
Created May 19, 2016 13:59
Show Gist options
  • Save parastuffs/3c74b8c6aece6814a95d50ac2d21734d to your computer and use it in GitHub Desktop.
Save parastuffs/3c74b8c6aece6814a95d50ac2d21734d to your computer and use it in GitHub Desktop.

Custom askmaps

This is a custom implementation of the TeX package askmaps from Jesse op den Brouw.

What is changes is twofold:

  1. It corrects the Hamming distances of the 5 variables K-maps so that it's compliant with EPB/BEAMS courses.

    When using more than four variables, Hamming distances can not be respected anymore and the table needs to be split into 4x4 sub-tables. Still, n-cubes can span over sub-tables, but their apsect will vary depending on the Hamming distances. Two cells belonging to different sub-tables will be adjacent (within the meaning of Hamming distance) when they are superimposed after the sub-tables have either been folded or stacked.

    Jesse op den Brouw used folding, we prefer stacking.

  2. In the default implementation, each variable needs to be a single character.

    However, we would like set variables like y1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment