Question: Using GNU Prolog please. 1 Consider to use the minimum number of color to color the following western states of the United States, and make
1 Consider to use the minimum number of color to color the following western states of the United States, and make sure that the neighboring states not colored in the same color. [8 points] Alaska, Arizona, California, Colorado, Hawaii, Idaho, Montana, Nevada, New Mexico, Oregon, Utah, Washington, Wyoming, 1.1 How many colors you have used? [1] 1.2 Use Prolog facts to represent the neighboring relationship and the color of the states. Note, Alaska and Hawaii have no neighboring states, and two states are neighboring if they share an edge of border, not a point of border. [3] 1.3 Write the adjacent rule. [1] 1.4 Write the miscolor rule to make sure that the neighboring states not colored in the same color. [2]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
