Home Manual Reference Source
public class | source

KeysInstance

Maintains a mapping between variable names and a parity representation of the instance.

Constructor Summary

Public Constructor
public

constructor(variables: any[], clauses: number[][])

Constructor.

Member Summary

Public Members
public

clauses: *

public

n: *

public

Method Summary

Public Methods
public

assignment(certificate: number[]): Map<any, number>

Returns an object that maps each variable name to a variable assignment.

Public Constructors

public constructor(variables: any[], clauses: number[][]) source

Constructor.

Clauses are in parity format. The variables parameter allows to map variable indices to variable names.

Params:

NameTypeAttributeDescription
variables any[]

The variables of this instance.

clauses number[][]

The clauses in parity format.

Public Members

public clauses: * source

public n: * source

public variables: * source

Public Methods

public assignment(certificate: number[]): Map<any, number> source

Returns an object that maps each variable name to a variable assignment.

Params:

NameTypeAttributeDescription
certificate number[]

Return:

Map<any, number>