0.2.1 • Published 11 years ago

dlx v0.2.1

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

dlx

An implementation of Knuth's Dancing Links algorithm for the exact cover problem.

Usage:

var dlx = require("dlx");
var matrix = [
	[0, 0, 1, 0, 1, 1, 0],
	[1, 0, 0, 1, 0, 0, 1],
	[0, 1, 1, 0, 0, 1, 0],
	[1, 0, 0, 1, 0, 0, 0],
	[0, 1, 0, 0, 0, 0, 1],
	[0, 0, 0, 1, 1, 0, 1],
];

var solutions = dlx.solve(matrix);
// solutions == [[0, 3, 4]];

Install dependencies: npm install

Run tests: npm test

0.2.1

11 years ago

0.2.0

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago