Skip to content

ac3 in csp.py #256

@onursurme

Description

@onursurme

at line 171 in csp.py, in the function AC3, it is written as :
if Xk != Xi:

there is no need to exclude Xi because Xi already can't be a neighbour to itself.
but I guess it should be
if Xk != Xj:
because Xi is already revised with Xj, so there is no need to add Xi, Xj to the queue again.

we can also see this in the book at Figure6.3 as :
for each Xk in Xi.NEIGHBORS - {Xj} do
here again, Xj is excluded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy