go-sat

module
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: Apache-2.0

README

go-sat

A boolean satisfiability (SAT) solver for Go!

Details

This uses provides a CDCL (conflict driven clause learning) SAT solver.

There is provision for custom variable selection logic, so you can make more intelligent descisions about which variables to guess values for, and the values themselves.

And it's pretty quick, the provided Sudoku benchmark is configured and solved in ~9ms, and that's doing an "extreme" problem sourced from sudoku.com.

goos: linux
goarch: amd64
pkg: github.com/spjmurray/go-sat
cpu: 12th Gen Intel(R) Core(TM) i7-1270P
BenchmarkSudoku-16    	     444	   2761888 ns/op
PASS

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL