Skip to content

2-Sat assignment of variables is incorrect #6

Description

@cerberus97

2-Sat incorrectly assigns values to variables in some cases where answer is YES, here is a small test case:

TwoSat TS(6);
TS.impl(0, 4);
TS.impl(2, 5);

The constructed solution assigns True to 2 but False to 5 - Link to test case

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions