Timetable Problem solving using Graph Coloring

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics and Its Applications
Advertisements

Covers, Dominations, Independent Sets and Matchings AmirHossein Bayegan Amirkabir University of Technology.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
ROUND ROBIN SCHEDULING BY NAGA SAI HANUMAN.POTTI.
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
Last time: terminology reminder w Simple graph Vertex = node Edge Degree Weight Neighbours Complete Dual Bipartite Planar Cycle Tree Path Circuit Components.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Computational problems, algorithms, runtime, hardness
The Instant Insanity Game
Computability and Complexity 15-1 Computability and Complexity Andrei Bulatov NP-Completeness.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
Approximation Algorithms
Job Scheduling Lecture 19: March 19. Job Scheduling: Unrelated Multiple Machines There are n jobs, each job has: a processing time p(i,j) (the time to.
Exam Timetabling Problem using Graph Coloring
The Maximum Independent Set Problem Sarah Bleiler DIMACS REU 2005 Advisor: Dr. Vadim Lozin, RUTCOR.
The Art Gallery Problem
CS 2813 Discrete Structures
Graph Theory Topics to be covered:
CS774. Markov Random Field : Theory and Application Lecture 13 Kyomin Jung KAIST Oct
Incidentor coloring: methods and results A.V. Pyatkin "Graph Theory and Interactions" Durham, 2013.
 2. Region(face) colourings  Definitions 46: A edge of the graph is called a bridge, if the edge is not in any circuit. A connected planar graph is called.
1 Graph Coloring: An Overview Graph Coloring Basics Planar/4-color Graphs Applications New Register Allocation Technique.
Memory Allocation of Multi programming using Permutation Graph By Bhavani Duggineni.
Graph Colouring L09: Oct 10. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including the famous.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Planar Graphs Graph Coloring
Chapter 10.8 Graph Coloring
CSE, IIT KGP Graph Coloring. CSE, IIT KGP K-coloring A k-coloring of G is a labeling f:V(G)  {1,…,k}.A k-coloring of G is a labeling f:V(G)  {1,…,k}.
September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins.
Graph Theory and Applications
CPS Computational problems, algorithms, runtime, hardness (a ridiculously brief introduction to theoretical computer science) Vincent Conitzer.
Introduction to Graph Theory Lecture 13: Graph Coloring: Edge Coloring.
NP-completeness NP-complete problems. Homework Vertex Cover Instance. A graph G and an integer k. Question. Is there a vertex cover of cardinality k?
NPC.
Chapter 10.8 Graph Coloring These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 7 th ed., by Kenneth.
C&O 355 Lecture 19 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
Common Intersection of Half-Planes in R 2 2 PROBLEM (Common Intersection of half- planes in R 2 ) Given n half-planes H 1, H 2,..., H n in R 2 compute.
Introduction to NP Instructor: Neelima Gupta 1.
A problem with train tracks and interval graphs PRESENTED BY MANVITHA NELLORE.
Maryam Pourebadi Kent State University April 2016.
Presented By Ravindra Babu, Pentyala.  Real World Problem  What is Coloring  Planar Graphs  Vertex Coloring  Edge Coloring  NP Hard Problem  Problem.
Assigning tropical fish into tanks Presented by, Manisha Reddy Podduturi.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
The NP class. NP-completeness
More NP-Complete and NP-hard Problems
Chapter 10 NP-Complete Problems.
Planar Graphs Hubert Chan (Chapter 9.7) [O2 Proof Techniques]
Graph Coloring.
Design and Analysis of Algorithm
The Taxi Scheduling Problem
Computability and Complexity
The Art Gallery Problem
ICS 353: Design and Analysis of Algorithms
The Art Gallery Problem
Chapter 10.8 Graph Coloring
Discrete Math II Howon Kim
Chapter 10.8 Graph Coloring
Chapter 10.8 Graph Coloring
Linear Programming Duality, Reductions, and Bipartite Matching
Allocating time to Instructors
Problem Solving 4.
Graph Coloring.
Copyright © Cengage Learning. All rights reserved.
The Full Steiner tree problem Part Two
Chapter 10.8 Graph Coloring
Section Linear Programming
The Complexity of Approximation
Chapter 9 Graph algorithms
Presentation transcript:

Timetable Problem solving using Graph Coloring By, Venkateswara reddy. Tallapu reddy

Outline What is Timetable problem..? Problem Statement. How to construct a graph for this Real-World problem..? What is Graph Coloring..? How graph coloring can solve this RW problem..? Is it NP-hard or not..? References.

What is Timetable Problem..? Timetable problem can be seen as a form of scheduling where the task is to allocate activities to available slots within resources respecting some constraints. There has been a lot of algorithms developed for this particular problem using different techniques like Graph Coloring, Tabu Search, Genetic Algorithm, Optimization problem and so on.. This is a problem with so many variations due to various constraints that can be tied to it.

Problem Statement. Design a simple class schedule with no conflict between a set of teachers and a set of courses with the following set of constraints: 1. No same courses can be taken by any teacher or batch for a given time slot. 2. Minimize the number of time slots required and prove that it is optimum.

How to construct a Graph for this RW Problem..? For example, let us consider 5 courses needed to be scheduled without any conflicts. Then how we can represent them in a graph is as shown below Graph representation Vertices: represents courses Edges: represents a pair of courses that conflict, and a Color: represents the period in which that particular course is to be scheduled.

What is Graph Coloring..? Vertex coloring : It is a way of coloring the vertices of a graph such that no two adjacent vertices share the same color. Edge coloring : An edge-coloring of G is a mapping f : E(G)→S. The element of S are colors; the edges of one color form a color class. If |S| = k, then f is a k-edge coloring. Chromatic Number: χ = least number of colors needed to color a graph.

How graph coloring can solve this RW problem..? Let us consider an example, In a college there are m professors x1, x2, …, xm and n subjects y1, y2, …, yn to be taught. Given that professor xi is required to teach subject yj for pij periods. Construct a bipartite multigraph G with vertices x1, x2, …, xm, and  y1, y2, …, yn such that vertices xi and yj are connected by pij edges. Initially consider a single period. The timetable for this single period corresponds to a matching in the graph and, conversely, each matching corresponds to a possible assignment of professors to subjects taught during this period. Thus, the solution to the timetabling problem consists of partitioning the edges of G into the minimum number of matching's. Equivalently, we must properly color the edges of G with the minimum number of colors.

Contd…. We shall show yet another way of solving the problem using the vertex coloring algorithm. Recall that the line graph L(G) of G has as vertices the edges of G and two vertices in L(G) are connected by an edge if and only if the corresponding edges in G have a vertex in common. The line graph L(G) is a simple graph and a proper vertex coloring of L(G) yields a proper edge coloring of G using the same number of colors. Thus, to solve the timetabling problem, it needs to find a minimum proper vertex coloring of L(G).We demonstrate the solution with a small example. 

Suppose there are four professors x1, x2, x3, x4 and five subjects y1, y2, y3, y4, y5 to be taught. The teaching requirement matrix p = [ pij ] is as shown: p y1 y2 y3 y4 y5 x1 2 1 x2 x3 x4 The bipartite multi graph G

Vertex Coloring:  (1, green), (2, red), (3, blue), (4, yellow), (5, yellow), (6, green), (7, green), (8, yellow), (9, red), (10, blue), (11, yellow). This, in turn, yields a minimum proper vertex 4-coloring of the bipartite multigraph G:    3 2 4 1 5 11 6 10 7 8 9

Edge Coloring:  ({x1, y1}, green), ({x1, y1}, red), ({x1, y3}, blue), ({x1, y4}, yellow), ({x2, y2}, yellow), ({x2, y4}, green), ({x3, y2}, green), ({x3, y3}, yellow), ({x3, y4}, red), ({x4, y4}, blue), ({x4, y5}, yellow). Then, from the edge coloring of G, we obtain a solution of the given timetabling problem as shown below: - 1 2 3 4 x1 y1 y3 y4 x2 y2 x3 x4 y5 Consider green, red, blue, yellow as periods 1, 2, 3, 4 respectively.

Contd..

Is it NP-hard or not..? Timetable problem solving has many variations due to various constraints that can be tied to it. That is why it is so hard and is considered as NP(Non-Polynomial) complete. i.e. it does not have any polynomial time bound. However, approximate algorithm or heuristic approach can be taken to attain solution in a feasible time bound

References. http://www.iro.umontreal.ca/~hahn/IFT3545/GTWA.pdf http://www.hoonzis.com/applications-of-graph-theory/ http://www.cs.xu.edu/csci390/12s/IJEST10-02-09-124.pdf