Skip to content

Instantly share code, notes, and snippets.

View aes219's full-sized avatar
:shipit:
yes

Vaidik Rungta aes219

:shipit:
yes
View GitHub Profile
@aes219
aes219 / Main.py
Last active April 30, 2024 21:40
backtrack search algorithm in python
"""
Naive backtrack searching without any heuristics or inference
"""
VARIABLES = ["A", "B", "C", "D", "E", "F", "G"]
DOMAIN_VALUES = ["Monday", "Tuesday", "Wednesday"]
CONSTRAINTS = [
("A", "B"),
("A", "C"),
("B", "C"),