Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You must use GNU Prolog(on General) to complete this assignment. 1. Consider to use the minimum number of color to color the following western states

You must use GNU Prolog(on General) to complete this assignment.

1. Consider to use the minimum number of color to color the following western states of the United States, and make sure that the neighboringstates not colored in the same color.[15points]

Alaska, Arizona, California, Colorado, Hawaii, Idaho, Montana, Nevada, New Mexico, Oregon, Utah, Washington, Wyoming,

1.1. How many colors you have used?

1.2. Use Prolog facts to represent the neighboringrelationship and the color of the states.Note, Alaskaand Hawaiihave no neighboringstates, and two states are neighboring if they share an edge of border, not a point of border.

1.3. Write the adjacent rule.

1.4. Write the miscolor rule to make sure that the neighboringstates not colored in the same color.

1.5. Write a rule called q :-condition. When testing, typing q will test your miscolor rule.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago