

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An assignment for the data structures and programming course (ecs 110) where students are required to solve the famous four-color problem using object-oriented programming methods. The problem statement explains the historical background of the four-color problem and the solution approach by kenneth appel and wolfgang haken. Students are tasked with coloring a specific map using four colors, and the document provides a hint about the graph in the problem.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Thursday, March 15, 2007
The most famous mathematical problem of this century is certainly the four-color problem. The problem, simply stated, is the following: Suppose you draw a map on a piece of paper -- any map. What is the minimum number of colors you can use to color this map, with the restriction that no two neighboring "countries" get the same color? It is quite easy to see that you cannot do it in general with three colors, and you can always do it with five. So the problem is: Are there maps that could not be colored with four colors? Or, alternatively, could you always color a map with four colors? Kenneth Appel and Wolfgang Haken, who exhibited methods that cleverly segmented the map into a large number of submaps, solved this problem in 1976. They showed that if each submap could be colored with four colors, then the entire map could also be colored with four colors. They proved that all the submaps could be colored by “coloring” the individual submaps with a computer system. Your assignment is do the same thing that they did, except with the following map. Show it can be colored with only four colors. (Hint: Can you see the graph in this problem?)
Comments Good design of this program, good classes and data encapsulation is required on this problem. This is a class where object oriented programming methods are required of the students, and we will begin to examine the code for good design.