Skip to content

ido55/karnmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karnmap

A CLI Karnaugh Map simplifier written in C++. Supports 2-4 variables.

Usage

karnmap -n <variables> -o <outputs> [options]

Required flags

  • -n — Number of variables (2, 3, or 4)
  • -o — Output string of 0s, 1s, and x (don't care), length must be 2^n

Optional flags

  • -N — Custom variable names e.g. "X Y Z"
  • -s — Silent mode: print only the simplified expression

Examples

karnmap -n 2 -o 0111
karnmap -n 3 -o 11100011
karnmap -n 3 -o 11100011 -N "X Y Z"
karnmap -n 3 -o 1x100011 -N "X Y Z"
karnmap -n 3 -o 11100011 -s

Build from source

cmake -B build -G Ninja
cmake --build build
./build/karnmap -n 2 -o 0111

Install via AUR (coming soon)

yay -S karnmap

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors