Home Manual Reference Source
public class | source

ParitiesInstance

Holds all properties of a k-CNF SAT instance in parity format.

Constructor Summary

Public Constructor
public

constructor(clauses: number[][])

Clauses are in parity format.

Member Summary

Public Members
public

clauses: *

public

n: *

Method Summary

Public Methods
public

assignment(certificate: number[]): number[]

Returns assignment vector in parity format.

Public Constructors

public constructor(clauses: number[][]) source

Clauses are in parity format.

Params:

NameTypeAttributeDescription
clauses number[][]

The clauses in parity format.

Public Members

public clauses: * source

public n: * source

Public Methods

public assignment(certificate: number[]): number[] source

Returns assignment vector in parity format.

Params:

NameTypeAttributeDescription
certificate number[]

Return:

number[]