{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# CONSTRAINT SATISFACTION PROBLEMS\n", "\n", "This IPy notebook acts as supporting material for topics covered in **Chapter 6 Constraint Satisfaction Problems** of the book* Artificial Intelligence: A Modern Approach*. We make use of the implementations in **csp.py** module. Even though this notebook includes a brief summary of the main topics, familiarity with the material present in the book is expected. We will look at some visualizations and solve some of the CSP problems described in the book. Let us import everything from the csp module to get started." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from csp import *\n", "from notebook import psource, pseudocode, plot_NQueens\n", "%matplotlib inline\n", "\n", "# Hide warnings in the matplotlib sections\n", "import warnings\n", "warnings.filterwarnings(\"ignore\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## CONTENTS\n", "\n", "* Overview\n", "* Graph Coloring\n", "* N-Queens\n", "* AC-3\n", "* Backtracking Search\n", "* Tree CSP Solver\n", "* Graph Coloring Visualization\n", "* N-Queens Visualization" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## OVERVIEW\n", "\n", "CSPs are a special kind of search problems. Here we don't treat the space as a black box but the state has a particular form and we use that to our advantage to tweak our algorithms to be more suited to the problems. A CSP State is defined by a set of variables which can take values from corresponding domains. These variables can take only certain values in their domains to satisfy the constraints. A set of assignments which satisfies all constraints passes the goal test. Let us start by exploring the CSP class which we will use to model our CSPs. You can keep the popup open and read the main page to get a better idea of the code." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", "\n", "

\n", "\n", "
class CSP(search.Problem):\n",
       "    """This class describes finite-domain Constraint Satisfaction Problems.\n",
       "    A CSP is specified by the following inputs:\n",
       "        variables   A list of variables; each is atomic (e.g. int or string).\n",
       "        domains     A dict of {var:[possible_value, ...]} entries.\n",
       "        neighbors   A dict of {var:[var,...]} that for each variable lists\n",
       "                    the other variables that participate in constraints.\n",
       "        constraints A function f(A, a, B, b) that returns true if neighbors\n",
       "                    A, B satisfy the constraint when they have values A=a, B=b\n",
       "\n",
       "    In the textbook and in most mathematical definitions, the\n",
       "    constraints are specified as explicit pairs of allowable values,\n",
       "    but the formulation here is easier to express and more compact for\n",
       "    most cases. (For example, the n-Queens problem can be represented\n",
       "    in O(n) space using this notation, instead of O(N^4) for the\n",
       "    explicit representation.) In terms of describing the CSP as a\n",
       "    problem, that's all there is.\n",
       "\n",
       "    However, the class also supports data structures and methods that help you\n",
       "    solve CSPs by calling a search function on the CSP. Methods and slots are\n",
       "    as follows, where the argument 'a' represents an assignment, which is a\n",
       "    dict of {var:val} entries:\n",
       "        assign(var, val, a)     Assign a[var] = val; do other bookkeeping\n",
       "        unassign(var, a)        Do del a[var], plus other bookkeeping\n",
       "        nconflicts(var, val, a) Return the number of other variables that\n",
       "                                conflict with var=val\n",
       "        curr_domains[var]       Slot: remaining consistent values for var\n",
       "                                Used by constraint propagation routines.\n",
       "    The following methods are used only by graph_search and tree_search:\n",
       "        actions(state)          Return a list of actions\n",
       "        result(state, action)   Return a successor of state\n",
       "        goal_test(state)        Return true if all constraints satisfied\n",
       "    The following are just for debugging purposes:\n",
       "        nassigns                Slot: tracks the number of assignments made\n",
       "        display(a)              Print a human-readable representation\n",
       "    """\n",
       "\n",
       "    def __init__(self, variables, domains, neighbors, constraints):\n",
       "        """Construct a CSP problem. If variables is empty, it becomes domains.keys()."""\n",
       "        variables = variables or list(domains.keys())\n",
       "\n",
       "        self.variables = variables\n",
       "        self.domains = domains\n",
       "        self.neighbors = neighbors\n",
       "        self.constraints = constraints\n",
       "        self.initial = ()\n",
       "        self.curr_domains = None\n",
       "        self.nassigns = 0\n",
       "\n",
       "    def assign(self, var, val, assignment):\n",
       "        """Add {var: val} to assignment; Discard the old value if any."""\n",
       "        assignment[var] = val\n",
       "        self.nassigns += 1\n",
       "\n",
       "    def unassign(self, var, assignment):\n",
       "        """Remove {var: val} from assignment.\n",
       "        DO NOT call this if you are changing a variable to a new value;\n",
       "        just call assign for that."""\n",
       "        if var in assignment:\n",
       "            del assignment[var]\n",
       "\n",
       "    def nconflicts(self, var, val, assignment):\n",
       "        """Return the number of conflicts var=val has with other variables."""\n",
       "        # Subclasses may implement this more efficiently\n",
       "        def conflict(var2):\n",
       "            return (var2 in assignment and\n",
       "                    not self.constraints(var, val, var2, assignment[var2]))\n",
       "        return count(conflict(v) for v in self.neighbors[var])\n",
       "\n",
       "    def display(self, assignment):\n",
       "        """Show a human-readable representation of the CSP."""\n",
       "        # Subclasses can print in a prettier way, or display with a GUI\n",
       "        print('CSP:', self, 'with assignment:', assignment)\n",
       "\n",
       "    # These methods are for the tree and graph-search interface:\n",
       "\n",
       "    def actions(self, state):\n",
       "        """Return a list of applicable actions: nonconflicting\n",
       "        assignments to an unassigned variable."""\n",
       "        if len(state) == len(self.variables):\n",
       "            return []\n",
       "        else:\n",
       "            assignment = dict(state)\n",
       "            var = first([v for v in self.variables if v not in assignment])\n",
       "            return [(var, val) for val in self.domains[var]\n",
       "                    if self.nconflicts(var, val, assignment) == 0]\n",
       "\n",
       "    def result(self, state, action):\n",
       "        """Perform an action and return the new state."""\n",
       "        (var, val) = action\n",
       "        return state + ((var, val),)\n",
       "\n",
       "    def goal_test(self, state):\n",
       "        """The goal is to assign all variables, with all constraints satisfied."""\n",
       "        assignment = dict(state)\n",
       "        return (len(assignment) == len(self.variables)\n",
       "                and all(self.nconflicts(variables, assignment[variables], assignment) == 0\n",
       "                        for variables in self.variables))\n",
       "\n",
       "    # These are for constraint propagation\n",
       "\n",
       "    def support_pruning(self):\n",
       "        """Make sure we can prune values from domains. (We want to pay\n",
       "        for this only if we use it.)"""\n",
       "        if self.curr_domains is None:\n",
       "            self.curr_domains = {v: list(self.domains[v]) for v in self.variables}\n",
       "\n",
       "    def suppose(self, var, value):\n",
       "        """Start accumulating inferences from assuming var=value."""\n",
       "        self.support_pruning()\n",
       "        removals = [(var, a) for a in self.curr_domains[var] if a != value]\n",
       "        self.curr_domains[var] = [value]\n",
       "        return removals\n",
       "\n",
       "    def prune(self, var, value, removals):\n",
       "        """Rule out var=value."""\n",
       "        self.curr_domains[var].remove(value)\n",
       "        if removals is not None:\n",
       "            removals.append((var, value))\n",
       "\n",
       "    def choices(self, var):\n",
       "        """Return all values for var that aren't currently ruled out."""\n",
       "        return (self.curr_domains or self.domains)[var]\n",
       "\n",
       "    def infer_assignment(self):\n",
       "        """Return the partial assignment implied by the current inferences."""\n",
       "        self.support_pruning()\n",
       "        return {v: self.curr_domains[v][0]\n",
       "                for v in self.variables if 1 == len(self.curr_domains[v])}\n",
       "\n",
       "    def restore(self, removals):\n",
       "        """Undo a supposition and all inferences from it."""\n",
       "        for B, b in removals:\n",
       "            self.curr_domains[B].append(b)\n",
       "\n",
       "    # This is for min_conflicts search\n",
       "\n",
       "    def conflicted_vars(self, current):\n",
       "        """Return a list of variables in current assignment that are in conflict"""\n",
       "        return [var for var in self.variables\n",
       "                if self.nconflicts(var, current[var], current) > 0]\n",
       "
\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "psource(CSP)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The __ _ _init_ _ __ method parameters specify the CSP. Variables can be passed as a list of strings or integers. Domains are passed as dict (dictionary datatpye) where \"key\" specifies the variables and \"value\" specifies the domains. The variables are passed as an empty list. Variables are extracted from the keys of the domain dictionary. Neighbor is a dict of variables that essentially describes the constraint graph. Here each variable key has a list of its values which are the variables that are constraint along with it. The constraint parameter should be a function **f(A, a, B, b**) that **returns true** if neighbors A, B **satisfy the constraint** when they have values **A=a, B=b**. We have additional parameters like nassings which is incremented each time an assignment is made when calling the assign method. You can read more about the methods and parameters in the class doc string. We will talk more about them as we encounter their use. Let us jump to an example." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## GRAPH COLORING\n", "\n", "We use the graph coloring problem as our running example for demonstrating the different algorithms in the **csp module**. The idea of map coloring problem is that the adjacent nodes (those connected by edges) should not have the same color throughout the graph. The graph can be colored using a fixed number of colors. Here each node is a variable and the values are the colors that can be assigned to them. Given that the domain will be the same for all our nodes we use a custom dict defined by the **UniversalDict** class. The **UniversalDict** Class takes in a parameter and returns it as a value for all the keys of the dict. It is very similar to **defaultdict** in Python except that it does not support item assignment." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "['R', 'G', 'B']" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "s = UniversalDict(['R','G','B'])\n", "s[5]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For our CSP we also need to define a constraint function **f(A, a, B, b)**. In this, we need to ensure that the neighbors don't have the same color. This is defined in the function **different_values_constraint** of the module." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", "\n", "

\n", "\n", "
def different_values_constraint(A, a, B, b):\n",
       "    """A constraint saying two neighboring variables must differ in value."""\n",
       "    return a != b\n",
       "
\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "psource(different_values_constraint)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The CSP class takes neighbors in the form of a Dict. The module specifies a simple helper function named **parse_neighbors** which allows us to take input in the form of strings and return a Dict of a form that is compatible with the **CSP Class**." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "%pdoc parse_neighbors" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The **MapColoringCSP** function creates and returns a CSP with the above constraint function and states. The variables are the keys of the neighbors dict and the constraint is the one specified by the **different_values_constratint** function. **Australia**, **USA** and **France** are three CSPs that have been created using **MapColoringCSP**. **Australia** corresponds to ** Figure 6.1 ** in the book." ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", "\n", "

\n", "\n", "
def MapColoringCSP(colors, neighbors):\n",
       "    """Make a CSP for the problem of coloring a map with different colors\n",
       "    for any two adjacent regions. Arguments are a list of colors, and a\n",
       "    dict of {region: [neighbor,...]} entries. This dict may also be\n",
       "    specified as a string of the form defined by parse_neighbors."""\n",
       "    if isinstance(neighbors, str):\n",
       "        neighbors = parse_neighbors(neighbors)\n",
       "    return CSP(list(neighbors.keys()), UniversalDict(colors), neighbors,\n",
       "               different_values_constraint)\n",
       "
\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "psource(MapColoringCSP)" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(,\n", " ,\n", " )" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "australia, usa, france" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## N-QUEENS\n", "\n", "The N-queens puzzle is the problem of placing N chess queens on an N×N chessboard in a way such that no two queens threaten each other. Here N is a natural number. Like the graph coloring problem, NQueens is also implemented in the csp module. The **NQueensCSP** class inherits from the **CSP** class. It makes some modifications in the methods to suit this particular problem. The queens are assumed to be placed one per column, from left to right. That means position (x, y) represents (var, val) in the CSP. The constraint that needs to be passed to the CSP is defined in the **queen_constraint** function. The constraint is satisfied (true) if A, B are really the same variable, or if they are not in the same row, down diagonal, or up diagonal. " ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", "\n", "

\n", "\n", "
def queen_constraint(A, a, B, b):\n",
       "    """Constraint is satisfied (true) if A, B are really the same variable,\n",
       "    or if they are not in the same row, down diagonal, or up diagonal."""\n",
       "    return A == B or (a != b and A + a != B + b and A - a != B - b)\n",
       "
\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "psource(queen_constraint)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The **NQueensCSP** method implements methods that support solving the problem via **min_conflicts** which is one of the many popular techniques for solving CSPs. Because **min_conflicts** hill climbs the number of conflicts to solve, the CSP **assign** and **unassign** are modified to record conflicts. More details about the structures: **rows**, **downs**, **ups** which help in recording conflicts are explained in the docstring." ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", "\n", "

\n", "\n", "
class NQueensCSP(CSP):\n",
       "    """Make a CSP for the nQueens problem for search with min_conflicts.\n",
       "    Suitable for large n, it uses only data structures of size O(n).\n",
       "    Think of placing queens one per column, from left to right.\n",
       "    That means position (x, y) represents (var, val) in the CSP.\n",
       "    The main structures are three arrays to count queens that could conflict:\n",
       "        rows[i]      Number of queens in the ith row (i.e val == i)\n",
       "        downs[i]     Number of queens in the \\ diagonal\n",
       "                     such that their (x, y) coordinates sum to i\n",
       "        ups[i]       Number of queens in the / diagonal\n",
       "                     such that their (x, y) coordinates have x-y+n-1 = i\n",
       "    We increment/decrement these counts each time a queen is placed/moved from\n",
       "    a row/diagonal. So moving is O(1), as is nconflicts.  But choosing\n",
       "    a variable, and a best value for the variable, are each O(n).\n",
       "    If you want, you can keep track of conflicted variables, then variable\n",
       "    selection will also be O(1).\n",
       "    >>> len(backtracking_search(NQueensCSP(8)))\n",
       "    8\n",
       "    """\n",
       "\n",
       "    def __init__(self, n):\n",
       "        """Initialize data structures for n Queens."""\n",
       "        CSP.__init__(self, list(range(n)), UniversalDict(list(range(n))),\n",
       "                     UniversalDict(list(range(n))), queen_constraint)\n",
       "\n",
       "        self.rows = [0]*n\n",
       "        self.ups = [0]*(2*n - 1)\n",
       "        self.downs = [0]*(2*n - 1)\n",
       "\n",
       "    def nconflicts(self, var, val, assignment):\n",
       "        """The number of conflicts, as recorded with each assignment.\n",
       "        Count conflicts in row and in up, down diagonals. If there\n",
       "        is a queen there, it can't conflict with itself, so subtract 3."""\n",
       "        n = len(self.variables)\n",
       "        c = self.rows[val] + self.downs[var+val] + self.ups[var-val+n-1]\n",
       "        if assignment.get(var, None) == val:\n",
       "            c -= 3\n",
       "        return c\n",
       "\n",
       "    def assign(self, var, val, assignment):\n",
       "        """Assign var, and keep track of conflicts."""\n",
       "        oldval = assignment.get(var, None)\n",
       "        if val != oldval:\n",
       "            if oldval is not None:  # Remove old val if there was one\n",
       "                self.record_conflict(assignment, var, oldval, -1)\n",
       "            self.record_conflict(assignment, var, val, +1)\n",
       "            CSP.assign(self, var, val, assignment)\n",
       "\n",
       "    def unassign(self, var, assignment):\n",
       "        """Remove var from assignment (if it is there) and track conflicts."""\n",
       "        if var in assignment:\n",
       "            self.record_conflict(assignment, var, assignment[var], -1)\n",
       "        CSP.unassign(self, var, assignment)\n",
       "\n",
       "    def record_conflict(self, assignment, var, val, delta):\n",
       "        """Record conflicts caused by addition or deletion of a Queen."""\n",
       "        n = len(self.variables)\n",
       "        self.rows[val] += delta\n",
       "        self.downs[var + val] += delta\n",
       "        self.ups[var - val + n - 1] += delta\n",
       "\n",
       "    def display(self, assignment):\n",
       "        """Print the queens and the nconflicts values (for debugging)."""\n",
       "        n = len(self.variables)\n",
       "        for val in range(n):\n",
       "            for var in range(n):\n",
       "                if assignment.get(var, '') == val:\n",
       "                    ch = 'Q'\n",
       "                elif (var + val) % 2 == 0:\n",
       "                    ch = '.'\n",
       "                else:\n",
       "                    ch = '-'\n",
       "                print(ch, end=' ')\n",
       "            print('    ', end=' ')\n",
       "            for var in range(n):\n",
       "                if assignment.get(var, '') == val:\n",
       "                    ch = '*'\n",
       "                else:\n",
       "                    ch = ' '\n",
       "                print(str(self.nconflicts(var, val, assignment)) + ch, end=' ')\n",
       "            print()\n",
       "
\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "psource(NQueensCSP)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The _ ___init___ _ method takes only one parameter **n** i.e. the size of the problem. To create an instance, we just pass the required value of n into the constructor." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "eight_queens = NQueensCSP(8)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We have defined our CSP. \n", "Now, we need to solve this.\n", "\n", "### Min-conflicts\n", "As stated above, the `min_conflicts` algorithm is an efficient method to solve such a problem.\n", "
\n", "In the start, all the variables of the CSP are _randomly_ initialized. \n", "
\n", "The algorithm then randomly selects a variable that has conflicts and violates some constraints of the CSP.\n", "
\n", "The selected variable is then assigned a value that _minimizes_ the number of conflicts.\n", "
\n", "This is a simple **stochastic algorithm** which works on a principle similar to **Hill-climbing**.\n", "The conflicting state is repeatedly changed into a state with fewer conflicts in an attempt to reach an approximate solution.\n", "
\n", "This algorithm sometimes benefits from having a good initial assignment.\n", "Using greedy techniques to get a good initial assignment and then using `min_conflicts` to solve the CSP can speed up the procedure dramatically, especially for CSPs with a large state space." ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", "\n", "

\n", "\n", "
def min_conflicts(csp, max_steps=100000):\n",
       "    """Solve a CSP by stochastic hillclimbing on the number of conflicts."""\n",
       "    # Generate a complete assignment for all variables (probably with conflicts)\n",
       "    csp.current = current = {}\n",
       "    for var in csp.variables:\n",
       "        val = min_conflicts_value(csp, var, current)\n",
       "        csp.assign(var, val, current)\n",
       "    # Now repeatedly choose a random conflicted variable and change it\n",
       "    for i in range(max_steps):\n",
       "        conflicted = csp.conflicted_vars(current)\n",
       "        if not conflicted:\n",
       "            return current\n",
       "        var = random.choice(conflicted)\n",
       "        val = min_conflicts_value(csp, var, current)\n",
       "        csp.assign(var, val, current)\n",
       "    return None\n",
       "
\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "psource(min_conflicts)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's use this algorithm to solve the `eight_queens` CSP." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "solution = min_conflicts(eight_queens)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This is indeed a valid solution. \n", "
\n", "`notebook.py` has a helper function to visualize the solution space." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAewAAAHwCAYAAABkPlyAAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAIABJREFUeJzt3X+4FdWd7/nP93IOIIZfBw6YAGOgkyczHQO2nBa7iQwxpA0IRmd6umGMXs1kuJO5hiDY6Zbn6Scmz41mVCB07OncXGnw3jagaduI2lGiEQwYtQ+00jHpnseAiYj8OAIBxUTgrvmjzvbsvU9V7dp7V+3aVfV+Pc9+9t5Vq9ZaZ69zznevVatWmXNOAACgvf27tCsAAABqI2ADAJABBGwAADKAgA0AQAYQsAEAyAACNgAAGUDABgAgAwjYAABkAAEbaDNm9kEz+0czO2ZmB83sbjPrCEk/xsz+pj/tKTP7FzP7962sM4DkEbCB9vP/Sjos6f2SLpT0P0v6v/0SmtlQSU9KOl/SH0gaLenPJN1hZstaUlsALUHABtrPVEkPOOd+45w7KOlxSR8NSHutpP9B0v/mnNvnnDvtnHtc0jJJ/8nMRkqSmTkz+1DpIDPbaGb/qez9QjN70cyOm9mzZja9bN8HzOxBMztiZvvKvwiY2a1m9oCZ/VczO2lmL5tZT9n+Pzez1/v3/ZuZfTKejwgoHgI20H7WSVpsZiPMbJKk+fKCtp9PSfqBc+7tqu0PShoh6ZJahZnZRZL+VtJ/kDRO0n+WtMXMhpnZv5P0iKSXJE2S9ElJy83s8rIsrpS0WdIYSVsk3d2f70ck3Sjp951zIyVdLunVWvUB4I+ADbSf7fJ61Cck7ZfUK+n7AWnHS3qjeqNz7oykPk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Iu5LoP6RdFz+FuawLAIAsK9KQOAAAmUXABgAgAwjYAABkAAEbAIAMIGADAJABBGwAADKAgA0AQAb8//x23dTKv1p6AAAAAElFTkSuQmCC\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "plot_NQueens(solution)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Lets' see if we can find a different solution." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAewAAAHwCAYAAABkPlyAAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAIABJREFUeJzt3X+4FdWd7/nP93IOIIZfBw6YAGOgkyczHSO2nBa7iQwxpA0IRmd6umGMXs1kuJO5hqDY6Zbn6Scmz41mVCB07OncXGnw3jagaduI2lGiEQwYtQ+00jHpnseAiYj8OMIJKCYCd80fdbZn732qatfeu2rXrqr363n2s/euWrXWOnudc757rVq1ypxzAgAA7e3fpV0BAABQGwEbAIAMIGADAJABBGwAADKAgA0AQAYQsAEAyAACNgAAGUDABgAgAwjYQJsxsw+a2T+a2TEzO2hmd5tZR0j6cWb2NwNpT5rZv5jZv29lnQEkj4ANtJ//V9JhSe+XdIGk/1nS/+2X0MyGS3pS0rmS/kDSWEl/JukOM1vektoCaAkCNtB+pkt6wDn3G+fcQUmPS/poQNprJP0Pkv4359w+59wp59zjkpZL+k9mNlqSzMyZ2YdKB5nZRjP7T2XvF5nZi2bWb2bPmtn5Zfs+YGYPmtkRM9tX/kXAzG41swfM7L+a2Qkze9nMesr2/7mZvT6w79/M7JPxfERA8RCwgfazTtISMxtlZlMkLZAXtP18StIPnHNvV21/UNIoSRfXKszMLpT0t5L+g6QJkv6zpC1mNsLM/p2kRyS9JGmKpE9KW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4Zw7bWY3SHpC0jBJf+uceznlasXGzDZJmidpopntl/QV59z6dGsVqzmSrpH0LwPneCVplXPuH1OsU9zeL+negRmq/07SA865XF7+lFOTJT00cCvIDknfdc49nm6VYvdFSfcNdHr2Sro+5frEysxGybuS6D+kXRc/hbmsCwCALCvSkDgAAJlFwAYAIAMI2AAAZAABGwCADCBgAwCQAQRsAAAygIANAEAG/P+hhOc/JTI0VQAAAABJRU5ErkJggg==\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "eight_queens = NQueensCSP(8)\n", "solution = min_conflicts(eight_queens)\n", "plot_NQueens(solution)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The solution is a bit different this time. \n", "Running the above cell several times should give you different valid solutions.\n", "
\n", "In the `search.ipynb` notebook, we will see how NQueensProblem can be solved using a **heuristic search method** such as `uniform_cost_search` and `astar_search`." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Helper Functions\n", "\n", "We will now implement a few helper functions that will allow us to visualize the Coloring Problem; we'll also make a few modifications to the existing classes and functions for additional record keeping. To begin, we modify the **assign** and **unassign** methods in the **CSP** in order to add a copy of the assignment to the **assignment_history**. We name this new class as **InstruCSP**; it will allow us to see how the assignment evolves over time. " ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [], "source": [ "import copy\n", "class InstruCSP(CSP):\n", " \n", " def __init__(self, variables, domains, neighbors, constraints):\n", " super().__init__(variables, domains, neighbors, constraints)\n", " self.assignment_history = []\n", " \n", " def assign(self, var, val, assignment):\n", " super().assign(var,val, assignment)\n", " self.assignment_history.append(copy.deepcopy(assignment))\n", " \n", " def unassign(self, var, assignment):\n", " super().unassign(var,assignment)\n", " self.assignment_history.append(copy.deepcopy(assignment))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Next, we define **make_instru** which takes an instance of **CSP** and returns an instance of **InstruCSP**." ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [], "source": [ "def make_instru(csp):\n", " return InstruCSP(csp.variables, csp.domains, csp.neighbors, csp.constraints)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We will now use a graph defined as a dictionary for plotting purposes in our Graph Coloring Problem. The keys are the nodes and their values are the corresponding nodes they are connected to." ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [], "source": [ "neighbors = {\n", " 0: [6, 11, 15, 18, 4, 11, 6, 15, 18, 4], \n", " 1: [12, 12, 14, 14], \n", " 2: [17, 6, 11, 6, 11, 10, 17, 14, 10, 14], \n", " 3: [20, 8, 19, 12, 20, 19, 8, 12], \n", " 4: [11, 0, 18, 5, 18, 5, 11, 0], \n", " 5: [4, 4], \n", " 6: [8, 15, 0, 11, 2, 14, 8, 11, 15, 2, 0, 14], \n", " 7: [13, 16, 13, 16], \n", " 8: [19, 15, 6, 14, 12, 3, 6, 15, 19, 12, 3, 14], \n", " 9: [20, 15, 19, 16, 15, 19, 20, 16], \n", " 10: [17, 11, 2, 11, 17, 2], \n", " 11: [6, 0, 4, 10, 2, 6, 2, 0, 10, 4], \n", " 12: [8, 3, 8, 14, 1, 3, 1, 14], \n", " 13: [7, 15, 18, 15, 16, 7, 18, 16], \n", " 14: [8, 6, 2, 12, 1, 8, 6, 2, 1, 12], \n", " 15: [8, 6, 16, 13, 18, 0, 6, 8, 19, 9, 0, 19, 13, 18, 9, 16], \n", " 16: [7, 15, 13, 9, 7, 13, 15, 9], \n", " 17: [10, 2, 2, 10], \n", " 18: [15, 0, 13, 4, 0, 15, 13, 4], \n", " 19: [20, 8, 15, 9, 15, 8, 3, 20, 3, 9], \n", " 20: [3, 19, 9, 19, 3, 9]\n", "}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we are ready to create an InstruCSP instance for our problem. We are doing this for an instance of **MapColoringProblem** class which inherits from the **CSP** Class. This means that our **make_instru** function will work perfectly for it." ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [], "source": [ "coloring_problem = MapColoringCSP('RGBY', neighbors)" ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [], "source": [ "coloring_problem1 = make_instru(coloring_problem)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### CONSTRAINT PROPAGATION\n", "Algorithms that solve CSPs have a choice between searching and or doing a _constraint propagation_, a specific type of inference.\n", "The constraints can be used to reduce the number of legal values for another variable, which in turn can reduce the legal values for some other variable, and so on. \n", "
\n", "Constraint propagation tries to enforce _local consistency_.\n", "Consider each variable as a node in a graph and each binary constraint as an arc.\n", "Enforcing local consistency causes inconsistent values to be eliminated throughout the graph, \n", "a lot like the `GraphPlan` algorithm in planning, where mutex links are removed from a planning graph.\n", "There are different types of local consistencies:\n", "1. Node consistency\n", "2. Arc consistency\n", "3. Path consistency\n", "4. K-consistency\n", "5. Global constraints\n", "\n", "Refer __section 6.2__ in the book for details.\n", "
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## AC-3\n", "Before we dive into AC-3, we need to know what _arc-consistency_ is.\n", "
\n", "A variable $X_i$ is __arc-consistent__ with respect to another variable $X_j$ if for every value in the current domain $D_i$ there is some value in the domain $D_j$ that satisfies the binary constraint on the arc $(X_i, X_j)$.\n", "
\n", "A network is arc-consistent if every variable is arc-consistent with every other variable.\n", "
\n", "\n", "AC-3 is an algorithm that enforces arc consistency.\n", "After applying AC-3, either every arc is arc-consistent, or some variable has an empty domain, indicating that the CSP cannot be solved.\n", "Let's see how `AC3` is implemented in the module." ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", "\n", "

\n", "\n", "
def AC3(csp, queue=None, removals=None):\n",
       "    """[Figure 6.3]"""\n",
       "    if queue is None:\n",
       "        queue = {(Xi, Xk) for Xi in csp.variables for Xk in csp.neighbors[Xi]}\n",
       "    csp.support_pruning()\n",
       "    while queue:\n",
       "        (Xi, Xj) = queue.pop()\n",
       "        if revise(csp, Xi, Xj, removals):\n",
       "            if not csp.curr_domains[Xi]:\n",
       "                return False\n",
       "            for Xk in csp.neighbors[Xi]:\n",
       "                if Xk != Xj:\n",
       "                    queue.add((Xk, Xi))\n",
       "    return True\n",
       "
\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "psource(AC3)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "`AC3` also employs a helper function `revise`." ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", "\n", "

\n", "\n", "
def revise(csp, Xi, Xj, removals):\n",
       "    """Return true if we remove a value."""\n",
       "    revised = False\n",
       "    for x in csp.curr_domains[Xi][:]:\n",
       "        # If Xi=x conflicts with Xj=y for every possible y, eliminate Xi=x\n",
       "        if all(not csp.constraints(Xi, x, Xj, y) for y in csp.curr_domains[Xj]):\n",
       "            csp.prune(Xi, x, removals)\n",
       "            revised = True\n",
       "    return revised\n",
       "
\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "psource(revise)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "`AC3` maintains a queue of arcs to consider which initially contains all the arcs in the CSP.\n", "An arbitrary arc $(X_i, X_j)$ is popped from the queue and $X_i$ is made _arc-consistent_ with respect to $X_j$.\n", "
\n", "If in doing so, $D_i$ is left unchanged, the algorithm just moves to the next arc, \n", "but if the domain $D_i$ is revised, then we add all the neighboring arcs $(X_k, X_i)$ to the queue.\n", "
\n", "We repeat this process and if at any point, the domain $D_i$ is reduced to nothing, then we know the whole CSP has no consistent solution and `AC3` can immediately return failure.\n", "
\n", "Otherwise, we keep removing values from the domains of variables until the queue is empty.\n", "We finally get the arc-consistent CSP which is faster to search because the variables have smaller domains." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's see how `AC3` can be used.\n", "
\n", "We'll first define the required variables." ] }, { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [], "source": [ "neighbors = parse_neighbors('A: B; B: ')\n", "domains = {'A': [0, 1, 2, 3, 4], 'B': [0, 1, 2, 3, 4]}\n", "constraints = lambda X, x, Y, y: x % 2 == 0 and (x + y) == 4 and y % 2 != 0\n", "removals = []" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We'll now define a `CSP` object." ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [], "source": [ "csp = CSP(variables=None, domains=domains, neighbors=neighbors, constraints=constraints)" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "False" ] }, "execution_count": 24, "metadata": {}, "output_type": "execute_result" } ], "source": [ "AC3(csp, removals=removals)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This configuration is inconsistent." ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [], "source": [ "constraints = lambda X, x, Y, y: (x % 2) == 0 and (x + y) == 4\n", "removals = []\n", "csp = CSP(variables=None, domains=domains, neighbors=neighbors, constraints=constraints)" ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "True" ] }, "execution_count": 26, "metadata": {}, "output_type": "execute_result" } ], "source": [ "AC3(csp,removals=removals)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This configuration is consistent." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## BACKTRACKING SEARCH\n", "\n", "The main issue with using Naive Search Algorithms to solve a CSP is that they can continue to expand obviously wrong paths; whereas, in **backtracking search**, we check the constraints as we go and we deal with only one variable at a time. Backtracking Search is implemented in the repository as the function **backtracking_search**. This is the same as **Figure 6.5** in the book. The function takes as input a CSP and a few other optional parameters which can be used to speed it up further. The function returns the correct assignment if it satisfies the goal. However, we will discuss these later. For now, let us solve our **coloring_problem1** with **backtracking_search**." ] }, { "cell_type": "code", "execution_count": 27, "metadata": {}, "outputs": [], "source": [ "result = backtracking_search(coloring_problem1)" ] }, { "cell_type": "code", "execution_count": 28, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{0: 'R',\n", " 1: 'R',\n", " 2: 'R',\n", " 3: 'R',\n", " 4: 'G',\n", " 5: 'R',\n", " 6: 'G',\n", " 7: 'R',\n", " 8: 'B',\n", " 9: 'R',\n", " 10: 'G',\n", " 11: 'B',\n", " 12: 'G',\n", " 13: 'G',\n", " 14: 'Y',\n", " 15: 'Y',\n", " 16: 'B',\n", " 17: 'B',\n", " 18: 'B',\n", " 19: 'G',\n", " 20: 'B'}" ] }, "execution_count": 28, "metadata": {}, "output_type": "execute_result" } ], "source": [ "result # A dictonary of assignments." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let us also check the number of assignments made." ] }, { "cell_type": "code", "execution_count": 29, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "21" ] }, "execution_count": 29, "metadata": {}, "output_type": "execute_result" } ], "source": [ "coloring_problem1.nassigns" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now, let us check the total number of assignments and unassignments, which would be the length of our assignment history. We can see it by using the command below. " ] }, { "cell_type": "code", "execution_count": 30, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "21" ] }, "execution_count": 30, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(coloring_problem1.assignment_history)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now let us explore the optional keyword arguments that the **backtracking_search** function takes. These optional arguments help speed up the assignment further. Along with these, we will also point out the methods in the CSP class that help to make this work. \n", "\n", "The first one is **select_unassigned_variable**. It takes in, as a parameter, a function that helps in deciding the order in which the variables will be selected for assignment. We use a heuristic called Most Restricted Variable which is implemented by the function **mrv**. The idea behind **mrv** is to choose the variable with the least legal values left in its domain. The intuition behind selecting the **mrv** or the most constrained variable is that it allows us to encounter failure quickly before going too deep into a tree if we have selected a wrong step before. The **mrv** implementation makes use of another function **num_legal_values** to sort out the variables by the number of legal values left in its domain. This function, in turn, calls the **nconflicts** method of the **CSP** to return such values." ] }, { "cell_type": "code", "execution_count": 31, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", "\n", "

\n", "\n", "
def mrv(assignment, csp):\n",
       "    """Minimum-remaining-values heuristic."""\n",
       "    return argmin_random_tie(\n",
       "        [v for v in csp.variables if v not in assignment],\n",
       "        key=lambda var: num_legal_values(csp, var, assignment))\n",
       "
\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "psource(mrv)" ] }, { "cell_type": "code", "execution_count": 32, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", "\n", "

\n", "\n", "
def num_legal_values(csp, var, assignment):\n",
       "    if csp.curr_domains:\n",
       "        return len(csp.curr_domains[var])\n",
       "    else:\n",
       "        return count(csp.nconflicts(var, val, assignment) == 0\n",
       "                     for val in csp.domains[var])\n",
       "
\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "psource(num_legal_values)" ] }, { "cell_type": "code", "execution_count": 33, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", "\n", "

\n", "\n", "
    def nconflicts(self, var, val, assignment):\n",
       "        """Return the number of conflicts var=val has with other variables."""\n",
       "        # Subclasses may implement this more efficiently\n",
       "        def conflict(var2):\n",
       "            return (var2 in assignment and\n",
       "                    not self.constraints(var, val, var2, assignment[var2]))\n",
       "        return count(conflict(v) for v in self.neighbors[var])\n",
       "
\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "psource(CSP.nconflicts)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Another ordering related parameter **order_domain_values** governs the value ordering. Here we select the Least Constraining Value which is implemented by the function **lcv**. The idea is to select the value which rules out least number of values in the remaining variables. The intuition behind selecting the **lcv** is that it allows a lot of freedom to assign values later. The idea behind selecting the mrc and lcv makes sense because we need to do all variables but for values, and it's better to try the ones that are likely. So for vars, we face the hard ones first." ] }, { "cell_type": "code", "execution_count": 34, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", "\n", "

\n", "\n", "
def lcv(var, assignment, csp):\n",
       "    """Least-constraining-values heuristic."""\n",
       "    return sorted(csp.choices(var),\n",
       "                  key=lambda val: csp.nconflicts(var, val, assignment))\n",
       "
\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "psource(lcv)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Finally, the third parameter **inference** can make use of one of the two techniques called Arc Consistency or Forward Checking. The details of these methods can be found in the **Section 6.3.2** of the book. In short the idea of inference is to detect the possible failure before it occurs and to look ahead to not make mistakes. **mac** and **forward_checking** implement these two techniques. The **CSP** methods **support_pruning**, **suppose**, **prune**, **choices**, **infer_assignment** and **restore** help in using these techniques. You can find out more about these by looking up the source code." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now let us compare the performance with these parameters enabled vs the default parameters. We will use the Graph Coloring problem instance 'usa' for comparison. We will call the instances **solve_simple** and **solve_parameters** and solve them using backtracking and compare the number of assignments." ] }, { "cell_type": "code", "execution_count": 35, "metadata": {}, "outputs": [], "source": [ "solve_simple = copy.deepcopy(usa)\n", "solve_parameters = copy.deepcopy(usa)" ] }, { "cell_type": "code", "execution_count": 36, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'NJ': 'R',\n", " 'DE': 'G',\n", " 'PA': 'B',\n", " 'MD': 'R',\n", " 'NY': 'G',\n", " 'WV': 'G',\n", " 'VA': 'B',\n", " 'OH': 'R',\n", " 'KY': 'Y',\n", " 'IN': 'G',\n", " 'IL': 'R',\n", " 'MO': 'G',\n", " 'TN': 'R',\n", " 'AR': 'B',\n", " 'OK': 'R',\n", " 'IA': 'B',\n", " 'NE': 'R',\n", " 'MI': 'B',\n", " 'TX': 'G',\n", " 'NM': 'B',\n", " 'LA': 'R',\n", " 'KA': 'B',\n", " 'NC': 'G',\n", " 'GA': 'B',\n", " 'MS': 'G',\n", " 'AL': 'Y',\n", " 'CO': 'G',\n", " 'WY': 'B',\n", " 'SC': 'R',\n", " 'FL': 'R',\n", " 'UT': 'R',\n", " 'ID': 'G',\n", " 'SD': 'G',\n", " 'MT': 'R',\n", " 'ND': 'B',\n", " 'DC': 'G',\n", " 'NV': 'B',\n", " 'OR': 'R',\n", " 'MN': 'R',\n", " 'CA': 'G',\n", " 'AZ': 'Y',\n", " 'WA': 'B',\n", " 'WI': 'G',\n", " 'CT': 'R',\n", " 'MA': 'B',\n", " 'VT': 'R',\n", " 'NH': 'G',\n", " 'RI': 'G',\n", " 'ME': 'R'}" ] }, "execution_count": 36, "metadata": {}, "output_type": "execute_result" } ], "source": [ "backtracking_search(solve_simple)\n", "backtracking_search(solve_parameters, order_domain_values=lcv, select_unassigned_variable=mrv, inference=mac)" ] }, { "cell_type": "code", "execution_count": 36, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0" ] }, "execution_count": 36, "metadata": {}, "output_type": "execute_result" } ], "source": [ "solve_simple.nassigns" ] }, { "cell_type": "code", "execution_count": 37, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0" ] }, "execution_count": 37, "metadata": {}, "output_type": "execute_result" } ], "source": [ "solve_parameters.nassigns" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## TREE CSP SOLVER\n", "\n", "The `tree_csp_solver` function (**Figure 6.11** in the book) can be used to solve problems whose constraint graph is a tree. Given a CSP, with `neighbors` forming a tree, it returns an assignment that satisfies the given constraints. The algorithm works as follows:\n", "\n", "First it finds the *topological sort* of the tree. This is an ordering of the tree where each variable/node comes after its parent in the tree. The function that accomplishes this is `topological_sort`; it builds the topological sort using the recursive function `build_topological`. That function is an augmented DFS (Depth First Search), where each newly visited node of the tree is pushed on a stack. The stack in the end holds the variables topologically sorted.\n", "\n", "Then the algorithm makes arcs between each parent and child consistent. *Arc-consistency* between two variables, *a* and *b*, occurs when for every possible value of *a* there is an assignment in *b* that satisfies the problem's constraints. If such an assignment cannot be found, the problematic value is removed from *a*'s possible values. This is done with the use of the function `make_arc_consistent`, which takes as arguments a variable `Xj` and its parent, and makes the arc between them consistent by removing any values from the parent which do not allow for a consistent assignment in `Xj`.\n", "\n", "If an arc cannot be made consistent, the solver fails. If every arc is made consistent, we move to assigning values.\n", "\n", "First we assign a random value to the root from its domain and then we assign values to the rest of the variables. Since the graph is now arc-consistent, we can simply move from variable to variable picking any remaining consistent values. At the end we are left with a valid assignment. If at any point though we find a variable where no consistent value is left in its domain, the solver fails.\n", "\n", "Run the cell below to see the implementation of the algorithm:" ] }, { "cell_type": "code", "execution_count": 38, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", "\n", "

\n", "\n", "
def tree_csp_solver(csp):\n",
       "    """[Figure 6.11]"""\n",
       "    assignment = {}\n",
       "    root = csp.variables[0]\n",
       "    X, parent = topological_sort(csp, root)\n",
       "\n",
       "    csp.support_pruning()\n",
       "    for Xj in reversed(X[1:]):\n",
       "        if not make_arc_consistent(parent[Xj], Xj, csp):\n",
       "            return None\n",
       "\n",
       "    assignment[root] = csp.curr_domains[root][0]\n",
       "    for Xi in X[1:]:\n",
       "        assignment[Xi] = assign_value(parent[Xi], Xi, csp, assignment)\n",
       "        if not assignment[Xi]:\n",
       "            return None\n",
       "    return assignment\n",
       "
\n", "\n", "\n" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "psource(tree_csp_solver)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We will now use the above function to solve a problem. More specifically, we will solve the problem of coloring Australia's map. We have two colors at our disposal: Red and Blue. As a reminder, this is the graph of Australia:\n", "\n", "`\"SA: WA NT Q NSW V; NT: WA Q; NSW: Q V; T: \"`\n", "\n", "Unfortunately, as you can see, the above is not a tree. However, if we remove `SA`, which has arcs to `WA`, `NT`, `Q`, `NSW` and `V`, we are left with a tree (we also remove `T`, since it has no in-or-out arcs). We can now solve this using our algorithm. Let's define the map coloring problem at hand:" ] }, { "cell_type": "code", "execution_count": 39, "metadata": {}, "outputs": [], "source": [ "australia_small = MapColoringCSP(list('RB'),\n", " 'NT: WA Q; NSW: Q V')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We will input `australia_small` to the `tree_csp_solver` and print the given assignment." ] }, { "cell_type": "code", "execution_count": 40, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'NT': 'R', 'Q': 'B', 'NSW': 'R', 'V': 'B', 'WA': 'B'}\n" ] } ], "source": [ "assignment = tree_csp_solver(australia_small)\n", "print(assignment)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "`WA`, `Q` and `V` got painted with the same color and `NT` and `NSW` got painted with the other." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## GRAPH COLORING VISUALIZATION\n", "\n", "Next, we define some functions to create the visualisation from the assignment_history of **coloring_problem1**. The readers need not concern themselves with the code that immediately follows as it is the usage of Matplotib with IPython Widgets. If you are interested in reading more about these, visit [ipywidgets.readthedocs.io](http://ipywidgets.readthedocs.io). We will be using the **networkx** library to generate graphs. These graphs can be treated as graphs that need to be colored or as constraint graphs for this problem. If interested you can check out a fairly simple tutorial [here](https://www.udacity.com/wiki/creating-network-graphs-with-python). We start by importing the necessary libraries and initializing matplotlib inline.\n" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "%matplotlib inline\n", "import networkx as nx\n", "import matplotlib.pyplot as plt\n", "import matplotlib\n", "import time" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The ipython widgets we will be using require the plots in the form of a step function such that there is a graph corresponding to each value. We define the **make_update_step_function** which returns such a function. It takes in as inputs the neighbors/graph along with an instance of the **InstruCSP**. The example below will elaborate it further. If this sounds confusing, don't worry. This is not part of the core material and our only goal is to help you visualize how the process works." ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "def make_update_step_function(graph, instru_csp):\n", " \n", " #define a function to draw the graphs\n", " def draw_graph(graph):\n", " \n", " G=nx.Graph(graph)\n", " pos = nx.spring_layout(G,k=0.15)\n", " return (G, pos)\n", " \n", " G, pos = draw_graph(graph)\n", " \n", " def update_step(iteration):\n", " # here iteration is the index of the assignment_history we want to visualize.\n", " current = instru_csp.assignment_history[iteration]\n", " # We convert the particular assignment to a default dict so that the color for nodes which \n", " # have not been assigned defaults to black.\n", " current = defaultdict(lambda: 'Black', current)\n", "\n", " # Now we use colors in the list and default to black otherwise.\n", " colors = [current[node] for node in G.node.keys()]\n", " # Finally drawing the nodes.\n", " nx.draw(G, pos, node_color=colors, node_size=500)\n", "\n", " labels = {label:label for label in G.node}\n", " # Labels shifted by offset so that nodes don't overlap\n", " label_pos = {key:[value[0], value[1]+0.03] for key, value in pos.items()}\n", " nx.draw_networkx_labels(G, label_pos, labels, font_size=20)\n", "\n", " # display the graph\n", " plt.show()\n", "\n", " return update_step # <-- this is a function\n", "\n", "def make_visualize(slider):\n", " ''' Takes an input a slider and returns \n", " callback function for timer and animation\n", " '''\n", " \n", " def visualize_callback(Visualize, time_step):\n", " if Visualize is True:\n", " for i in range(slider.min, slider.max + 1):\n", " slider.value = i\n", " time.sleep(float(time_step))\n", " \n", " return visualize_callback\n", " " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Finally let us plot our problem. We first use the function below to obtain a step function." ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "ename": "NameError", "evalue": "name 'neighbors' is not defined", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mstep_func\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mmake_update_step_function\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mneighbors\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcoloring_problem1\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", "\u001b[0;31mNameError\u001b[0m: name 'neighbors' is not defined" ] } ], "source": [ "step_func = make_update_step_function(neighbors, coloring_problem1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Next, we set the canvas size." ] }, { "cell_type": "code", "execution_count": 44, "metadata": {}, "outputs": [], "source": [ "matplotlib.rcParams['figure.figsize'] = (18.0, 18.0)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Finally, our plot using ipywidget slider and matplotib. You can move the slider to experiment and see the colors change. It is also possible to move the slider using arrow keys or to jump to the value by directly editing the number with a double click. The **Visualize Button** will automatically animate the slider for you. The **Extra Delay Box** allows you to set time delay in seconds (upto one second) for each time step." ] }, { "cell_type": "code", "execution_count": 45, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "12a35f60e8754acfb2aaa9ee272ef9c1", "version_major": 2, "version_minor": 0 }, "text/html": [ "

Failed to display Jupyter Widget of type interactive.

\n", "

\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "

\n", "

\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "

\n" ], "text/plain": [ "interactive(children=(IntSlider(value=0, description='iteration', max=20), Output()), _dom_classes=('widget-interact',))" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "869965d6473f46d8bc62a32995091d1e", "version_major": 2, "version_minor": 0 }, "text/html": [ "

Failed to display Jupyter Widget of type interactive.

\n", "

\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "

\n", "

\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "

\n" ], "text/plain": [ "interactive(children=(ToggleButton(value=False, description='Visualize'), ToggleButtons(description='Extra Delay:', options=('0', '0.1', '0.2', '0.5', '0.7', '1.0'), value='0'), Output()), _dom_classes=('widget-interact',))" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import ipywidgets as widgets\n", "from IPython.display import display\n", "\n", "iteration_slider = widgets.IntSlider(min=0, max=len(coloring_problem1.assignment_history)-1, step=1, value=0)\n", "w=widgets.interactive(step_func,iteration=iteration_slider)\n", "display(w)\n", "\n", "visualize_callback = make_visualize(iteration_slider)\n", "\n", "visualize_button = widgets.ToggleButton(description = \"Visualize\", value = False)\n", "time_select = widgets.ToggleButtons(description='Extra Delay:',options=['0', '0.1', '0.2', '0.5', '0.7', '1.0'])\n", "\n", "a = widgets.interactive(visualize_callback, Visualize = visualize_button, time_step=time_select)\n", "display(a)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## N-QUEENS VISUALIZATION\n", "\n", "Just like the Graph Coloring Problem, we will start with defining a few helper functions to help us visualize the assignments as they evolve over time. The **make_plot_board_step_function** behaves similar to the **make_update_step_function** introduced earlier. It initializes a chess board in the form of a 2D grid with alternating 0s and 1s. This is used by **plot_board_step** function which draws the board using matplotlib and adds queens to it. This function also calls the **label_queen_conflicts** which modifies the grid placing a 3 in any position where there is a conflict." ] }, { "cell_type": "code", "execution_count": 47, "metadata": {}, "outputs": [], "source": [ "def label_queen_conflicts(assignment,grid):\n", " ''' Mark grid with queens that are under conflict. '''\n", " for col, row in assignment.items(): # check each queen for conflict\n", " conflicts = {temp_col:temp_row for temp_col,temp_row in assignment.items() \n", " if (temp_row == row and temp_col != col)\n", " or (temp_row+temp_col == row+col and temp_col != col)\n", " or (temp_row-temp_col == row-col and temp_col != col)}\n", " \n", " # Place a 3 in positions where this is a conflict\n", " for col, row in conflicts.items():\n", " grid[col][row] = 3\n", "\n", " return grid\n", "\n", "def make_plot_board_step_function(instru_csp):\n", " '''ipywidgets interactive function supports\n", " single parameter as input. This function\n", " creates and return such a function by taking\n", " in input other parameters.\n", " '''\n", " n = len(instru_csp.variables)\n", " \n", " \n", " def plot_board_step(iteration):\n", " ''' Add Queens to the Board.'''\n", " data = instru_csp.assignment_history[iteration]\n", " \n", " grid = [[(col+row+1)%2 for col in range(n)] for row in range(n)]\n", " grid = label_queen_conflicts(data, grid) # Update grid with conflict labels.\n", " \n", " # color map of fixed colors\n", " cmap = matplotlib.colors.ListedColormap(['white','lightsteelblue','red'])\n", " bounds=[0,1,2,3] # 0 for white 1 for black 2 onwards for conflict labels (red).\n", " norm = matplotlib.colors.BoundaryNorm(bounds, cmap.N)\n", " \n", " fig = plt.imshow(grid, interpolation='nearest', cmap = cmap,norm=norm)\n", "\n", " plt.axis('off')\n", " fig.axes.get_xaxis().set_visible(False)\n", " fig.axes.get_yaxis().set_visible(False)\n", "\n", " # Place the Queens Unicode Symbol\n", " for col, row in data.items():\n", " fig.axes.text(row, col, u\"\\u265B\", va='center', ha='center', family='Dejavu Sans', fontsize=32)\n", " plt.show()\n", " \n", " return plot_board_step" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now let us visualize a solution obtained via backtracking. We make use of the previosuly defined **make_instru** function for keeping a history of steps." ] }, { "cell_type": "code", "execution_count": 48, "metadata": {}, "outputs": [], "source": [ "twelve_queens_csp = NQueensCSP(12)\n", "backtracking_instru_queen = make_instru(twelve_queens_csp)\n", "result = backtracking_search(backtracking_instru_queen)" ] }, { "cell_type": "code", "execution_count": 49, "metadata": {}, "outputs": [], "source": [ "backtrack_queen_step = make_plot_board_step_function(backtracking_instru_queen) # Step Function for Widgets" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now finally we set some matplotlib parameters to adjust how our plot will look like. The font is necessary because the Black Queen Unicode character is not a part of all fonts. You can move the slider to experiment and observe how the queens are assigned. It is also possible to move the slider using arrow keys or to jump to the value by directly editing the number with a double click. The **Visualize Button** will automatically animate the slider for you. The **Extra Delay Box** allows you to set time delay in seconds of upto one second for each time step." ] }, { "cell_type": "code", "execution_count": 50, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "c634be8e964042ff8f6e0696dca7968d", "version_major": 2, "version_minor": 0 }, "text/html": [ "

Failed to display Jupyter Widget of type interactive.

\n", "

\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "

\n", "

\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "

\n" ], "text/plain": [ "interactive(children=(IntSlider(value=0, description='iteration', max=473, step=0), Output()), _dom_classes=('widget-interact',))" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "c1fa4f8e573f4c44a648f6ad24a04eb1", "version_major": 2, "version_minor": 0 }, "text/html": [ "

Failed to display Jupyter Widget of type interactive.

\n", "

\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "

\n", "

\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "

\n" ], "text/plain": [ "interactive(children=(ToggleButton(value=False, description='Visualize'), ToggleButtons(description='Extra Delay:', options=('0', '0.1', '0.2', '0.5', '0.7', '1.0'), value='0'), Output()), _dom_classes=('widget-interact',))" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "matplotlib.rcParams['figure.figsize'] = (8.0, 8.0)\n", "matplotlib.rcParams['font.family'].append(u'Dejavu Sans')\n", "\n", "iteration_slider = widgets.IntSlider(min=0, max=len(backtracking_instru_queen.assignment_history)-1, step=0, value=0)\n", "w=widgets.interactive(backtrack_queen_step,iteration=iteration_slider)\n", "display(w)\n", "\n", "visualize_callback = make_visualize(iteration_slider)\n", "\n", "visualize_button = widgets.ToggleButton(description = \"Visualize\", value = False)\n", "time_select = widgets.ToggleButtons(description='Extra Delay:',options=['0', '0.1', '0.2', '0.5', '0.7', '1.0'])\n", "\n", "a = widgets.interactive(visualize_callback, Visualize = visualize_button, time_step=time_select)\n", "display(a)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now let us finally repeat the above steps for **min_conflicts** solution." ] }, { "cell_type": "code", "execution_count": 51, "metadata": {}, "outputs": [], "source": [ "conflicts_instru_queen = make_instru(twelve_queens_csp)\n", "result = min_conflicts(conflicts_instru_queen)" ] }, { "cell_type": "code", "execution_count": 52, "metadata": {}, "outputs": [], "source": [ "conflicts_step = make_plot_board_step_function(conflicts_instru_queen)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This visualization has same features as the one above; however, this one also highlights the conflicts by labeling the conflicted queens with a red background." ] }, { "cell_type": "code", "execution_count": 53, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "4174e28bef63440391eb2048d4851e8a", "version_major": 2, "version_minor": 0 }, "text/html": [ "

Failed to display Jupyter Widget of type interactive.

\n", "

\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "

\n", "

\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "

\n" ], "text/plain": [ "interactive(children=(IntSlider(value=0, description='iteration', max=66, step=0), Output()), _dom_classes=('widget-interact',))" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "f56863b054214f3b94e35693f9e11d0c", "version_major": 2, "version_minor": 0 }, "text/html": [ "

Failed to display Jupyter Widget of type interactive.

\n", "

\n", " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", " that the widgets JavaScript is still loading. If this message persists, it\n", " likely means that the widgets JavaScript library is either not installed or\n", " not enabled. See the Jupyter\n", " Widgets Documentation for setup instructions.\n", "

\n", "

\n", " If you're reading this message in another frontend (for example, a static\n", " rendering on GitHub or NBViewer),\n", " it may mean that your frontend doesn't currently support widgets.\n", "

\n" ], "text/plain": [ "interactive(children=(ToggleButton(value=False, description='Visualize'), ToggleButtons(description='Extra Delay:', options=('0', '0.1', '0.2', '0.5', '0.7', '1.0'), value='0'), Output()), _dom_classes=('widget-interact',))" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "iteration_slider = widgets.IntSlider(min=0, max=len(conflicts_instru_queen.assignment_history)-1, step=0, value=0)\n", "w=widgets.interactive(conflicts_step,iteration=iteration_slider)\n", "display(w)\n", "\n", "visualize_callback = make_visualize(iteration_slider)\n", "\n", "visualize_button = widgets.ToggleButton(description = \"Visualize\", value = False)\n", "time_select = widgets.ToggleButtons(description='Extra Delay:',options=['0', '0.1', '0.2', '0.5', '0.7', '1.0'])\n", "\n", "a = widgets.interactive(visualize_callback, Visualize = visualize_button, time_step=time_select)\n", "display(a)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.5" } }, "nbformat": 4, "nbformat_minor": 1 }