repl.it
@FellowHashbrown/

Quine-McCluskey Node.js

Nodejs

FellowHashbrown's adaptation of the Quine-McCluskey Algorithm written in Node.js

fork
loading
Files
  • index.js
  • minterm.js
  • quinemccluskey.js
  • util.js
index.js
1
2
3
4
5
6
7
8
const QuineMcCluskey = require("./quinemccluskey.js");

let values = [0, 4, 5, 7, 8, 11, 12, 15];
let variables = ["a", "b", "c", "d"];

let qm = new QuineMcCluskey(variables, values);
console.log(qm.getFunction());
?