np

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package np provides reduction algorithms from known NP-complete problems to SAT. Currently only SET-COVER is implemented.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MinimumSetCover

func MinimumSetCover[T any](sets [][]T) [][]T

MinimumSetCover computes a minimum set cover for a given collection of sets. This is a simple MaxSAT based implementation of an algorithm and is really only meant for small set cover problems with perhaps some tens or hundreds of set and hundreds of variables.

Types

This section is empty.

Jump to

Keyboard shortcuts

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