Artificial Intelligence: A Modern Approach
Artificial Intelligence: A Modern Approach
3rd Edition
ISBN: 9780136042594
Author: Stuart Russell, Peter Norvig
Publisher: Prentice Hall
Expert Solution & Answer
Book Icon
Chapter 6, Problem 8E

Explanation of Solution

3-coloring of graph:

a. A1 = R.

b. H = R conflicts with A1.

c. H = G.

d. A4 = R.

e. F1 = R.

f. A2 = R conflicts with A1, A2 = G conflicts with H, so A2 = B.

g. F2 = R.

h. A3 = R conflicts with A4, A3 = G conflicts with H, A3 = B conflicts with A2, so backtrack. Conflict set is {A2,H,A4}, so jump to A2. Add {H,A4} to A2’s conflict set.

i. A2 has no more values, so backtrack...

Blurred answer
Students have asked these similar questions
Consider this graph with 11 vertices and 20 edges. Our goal is to colour each of the 11 vertices with one of three colours (Apricot, Brown, Cyan) so that no edge joins two vertices of the same colour. For example, if the vertex 6 is coloured Brown, then the four vertices adjacent to this vertex (10, 5, 2, 7) cannot be coloured Brown, since that would create a Brown-Brown edge. If we can assign a colour to each vertex so that no edge joins two vertices of the same colour, then we say that this graph is 3-Colourable. If this task is impossible (i.e., no matter what, we must create at least one edge joining two vertices of the same colour), then we say that this graph is not 3-Colourable. Determine whether this graph is 3-Colourable. Answer either YES or NO.
Given a graph that is a tree (connected and acyclic).  (I) Pick any vertex v.(II) Compute the shortest path from v to every other vertex. Let w be the vertex with the largest shortest path distance.(III) Compute the shortest path from w to every other vertex. Let x be the vertex with the largest shortest path distance. Consider the path p from w to x.   Which of the following are truea. p is the longest path in the graphb. p is the shortest path in the graphc. p can be calculated in time linear in the number of edges/vertices
Given a graph that is a tree (connected and acyclic). (1) Pick any vertex v. (II) Compute the shortest path from v to every other vertex. Let w be the vertex with the largest shortest path distance. (III) Compute the shortest path from w to every other vertex. Let x be the vertex with the largest shortest path distance. Consider the path p from w to x. Which of the following are true a. p is the longest path in the graph b. p is the shortest path in the graph c. p can be calculated in time linear in the number of edges/vertices a,c a,b a,b,c b.c
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education