170 likes | 308 Vues
Mid Project Presentation. Project Title: Four Color Theorem Group Members: Amjad Aziz Rizwan Hanif Jaffar Hussain Arif Amir Khurram Altaf. Agenda. Introduction Current Status Demo Future Work. Four Color Theorem.
E N D
Mid Project Presentation Project Title: Four Color Theorem Group Members: • Amjad Aziz • Rizwan Hanif • Jaffar Hussain • Arif Amir • KhurramAltaf
Agenda • Introduction • Current Status • Demo • Future Work
Four Color Theorem • In mathematics, the four color theorem, or the four color map theorem, states that given any separation of a plane into contiguous regions, called a map, the regions can be colored using at most four colors so that no two adjacent regions have the same color. Two regions are called adjacent only if they share a border segment, not just a point.
Assumptions(1) Adjacency Matrix Graph 2 1 5 3 4 Writing input.txt from the given Graph…
Assumptions(2) input.txt Adjacency matrix Converting input.txt into Adjacency Matrix …………
Assumptions(3) Adjacency Matrix …. Adjacency matrix Graph 2 1 5 3 4 Converting input.txt into Adjacency Matrix …………
Assumptions(4) • We will use only 4 colors to give distinct color to adjacent nodes. • In the previous example the graph contain the 5 nodes. We are using the Brute force attack • Possible combinations will be 45. • Combination sequence format is
Assumptions(5) Checking the Combination In the Adjacency Matrix
Running the program and the output… • Total combinations are 1024 • One valid combination. • 0 1 1 0 2 • Total valid combinations are 168 • Time taken is 17 mSec • Press any key to continue... • Say • 0Green • 1 Red • 2Yellow • 3Blue 2 1 5 3 4
Total count is 422=17592186044416 combinations Total valid combinations are 0 1 0 1 0 1