SlideShare a Scribd company logo
2
Most read
3
Most read
Prepared By
Niaz Mohammad
Combinatorial problem
Class Scheduling
                                              Linear Programming

Class Scheduling is a broad general
problem which has been one of the prime       Optimization Problem
area of research. There has been a lot of
algorithms developed for this particular      Genetic Algorithm
problem using different techniques as
shown on the right.
                                              Constraint Propagation
This is a problem with so many variations
due to various constraints that can be tied
to it. And this is why it is so hard and is   Simulated Annealing
considered as NP(Non-Polynomial)
complete i.e. it does not have any
                                              Tabu Search
polynomial time bound.
However, approximate algorithm or
heuristic approach can be taken to attain     Greedy Algorithm
solution in a feasible time bound.
                                              Hill Climbing
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:
i)   No same courses can be
     taken by any teacher or
     batch for a given time
     slot.
ii) Minimize the number of
     time slots required and
     prove that it is optimum.
My Class-scheduling Approach
I researched for this problem a lot and have found
numerous articles, documents that were published on
this topic and have seen so many variants of this            Bipartite Matching
problem and also various approaches such as GA(genetic
algorithm), CSP (Constraint Satisfaction
Problem), Combinatorial approaches have been taken.


But for my purpose of creating or developing the
simplest form of this class-scheduling problem, I tried to     Edge Coloring
develop my own algorithm, it works !
Well, for at least the specific example that Jolly madam
presented in our class.
I put the teachers and the courses into two independent
sets and then created the Bipartite matching according
to the matrix of number of courses taken by each
teacher.
                                                             Draw the timetable
So, in a nutshell, the idea is to find the maximum
Bipartite matching among teacher & courses and then
do an edge coloring to find the time slot so that no
two edges coming out from a vertex have the same
color.
Edge Coloring Model
• Take bipartite graph with          Teacher/Batch   21st   22nd   23rd   24th
  vertices for teachers and for      RAJ             2      0      1      1
  classes                            AR              1      1      0      0
• Look for a coloring of the         SA              0      0      2      1
  edges such that no vertex          SIS             0      2      0      2
  has two incident edges with        KMH             1      1      1      0
  the same color.
• What is the minimum
  number of colors needed?
   – Lower bound: maximum
     degree. (Interpretation!)
   – We can attain the lower bound
     with help of matching!!
Class scheduling
A Theorem
Let G be a bipartite graph with
maximum degree d. Then G has an
edge coloring with d colors.
    Step 1: Make G regular
     by adding vertices and
     edges.
    Step 2: Repeatedly find
     a matching and remove
     it.
Edge coloring a regular graph
Say G’ is regular of degree d.
For i = 1 to d do
     Find a perfect matching
      M in G’.
     Give all edges in M color
      i.
     Remove all edges in M
      from G’. (Note that G’
      stays regular!)
Final step
Take the edge coloring c of G’. Color
G in the same way: G is subgraph of
G’.
Time: carrying out d times a perfect
matching algorithm in a regular
graph:
     O(nd3) if we use
      Schrijver’s algorithm.
     Can be done faster by
      other algorithms.
My Algorithm
1.   Find the maximum number of
     degree(d) from the given bipartite   Time Complexity:
     graph.
                                          O(nd3)
2.   Add vertex and edges so that it      Where n is the number of
     becomes a d-regular bipartite        vertices(in teacher’s set(t)) and d is
     graph.                               the maximum number of degree.
3.   Split if there are cycles in the
     given Bipartite graph until there
     are no cycle.
4.   For each color c from 1 to d
    Iteratively color different batch
     for set t ( the edges between
     them) with color c greedily.
5.   Represent it as final matrix which
     is the solution.
Class scheduling
Class scheduling

More Related Content

What's hot (20)

PPTX
Big-M Method Presentation
Nitesh Singh Patel
 
PPTX
Chapter 1 risk management
Rione Drevale
 
PPTX
Anomaly detection with machine learning at scale
Impetus Technologies
 
PPTX
Introduction to predictive modeling v1
Venkata Reddy Konasani
 
PDF
Linear Programming (graphical method)
Kamel Attar
 
PPT
Random number generation
De La Salle University-Manila
 
PPT
Reinforcement learning
Chandra Meena
 
PPT
Classification using back propagation algorithm
KIRAN R
 
PPTX
Curse of dimensionality
Nikhil Sharma
 
PPT
EULER AND FERMAT THEOREM
ankita pandey
 
PPTX
graphical method
Kratika Dhoot Kogta
 
PPT
Operational risks
Rahmat Mulyana
 
PPTX
Decision theory
Surekha98
 
PPT
CONVENTIONAL ENCRYPTION
SHUBHA CHATURVEDI
 
PDF
Bayesian networks in AI
Byoung-Hee Kim
 
PPTX
Chapter 8 image compression
asodariyabhavesh
 
PDF
6. assignment problems
Hakeem-Ur- Rehman
 
PDF
Ph.D Dissertation Defense Slides on Efficient VLSI Architectures for Image En...
BMS Institute of Technology and Management
 
PPTX
Image Processing Using MATLAB
Amarjeetsingh Thakur
 
Big-M Method Presentation
Nitesh Singh Patel
 
Chapter 1 risk management
Rione Drevale
 
Anomaly detection with machine learning at scale
Impetus Technologies
 
Introduction to predictive modeling v1
Venkata Reddy Konasani
 
Linear Programming (graphical method)
Kamel Attar
 
Random number generation
De La Salle University-Manila
 
Reinforcement learning
Chandra Meena
 
Classification using back propagation algorithm
KIRAN R
 
Curse of dimensionality
Nikhil Sharma
 
EULER AND FERMAT THEOREM
ankita pandey
 
graphical method
Kratika Dhoot Kogta
 
Operational risks
Rahmat Mulyana
 
Decision theory
Surekha98
 
CONVENTIONAL ENCRYPTION
SHUBHA CHATURVEDI
 
Bayesian networks in AI
Byoung-Hee Kim
 
Chapter 8 image compression
asodariyabhavesh
 
6. assignment problems
Hakeem-Ur- Rehman
 
Ph.D Dissertation Defense Slides on Efficient VLSI Architectures for Image En...
BMS Institute of Technology and Management
 
Image Processing Using MATLAB
Amarjeetsingh Thakur
 

Viewers also liked (20)

PPTX
Scheduling and Curriculum Planning
Kathleen Cate Sumbilon
 
PPTX
Application in graph theory
sulaiman alfahad
 
PDF
Chromatic graph theory
jotasmall
 
PPTX
On sum edge coloring of regular, bipartite and split graphs
政謙 陳
 
PPT
Intro to Social Network AnalysisSession
Sheila MacNeill
 
PPTX
Graph coloring Algorithm
আদনান ফিরোজ
 
PDF
Graph
ssnetvnr
 
PPTX
Functional sudoku
Cesar Tron-Lozai
 
PPTX
final presentation of sudoku solver project
Arafat Bin Reza
 
PPTX
Graph theory and life
Milan Joshi
 
PPTX
Graph coloring and_applications
mohammad alkhalil
 
PPTX
Graph theory 1
Tech_MX
 
PDF
Graph theory in Practise
David Simons
 
PPTX
Application of graph theory in drug design
Reihaneh Safavi
 
PPT
GRAPH COLORING AND ITS APPLICATIONS
Manojit Chakraborty
 
PPT
Applications of graphs
Tech_MX
 
PPTX
Football and graph theory
Umang Aggarwal
 
PDF
Graph theory
Kumar
 
PDF
CS6702 graph theory and applications notes pdf book
appasami
 
PPTX
Interesting applications of graph theory
Tech_MX
 
Scheduling and Curriculum Planning
Kathleen Cate Sumbilon
 
Application in graph theory
sulaiman alfahad
 
Chromatic graph theory
jotasmall
 
On sum edge coloring of regular, bipartite and split graphs
政謙 陳
 
Intro to Social Network AnalysisSession
Sheila MacNeill
 
Graph coloring Algorithm
আদনান ফিরোজ
 
Graph
ssnetvnr
 
Functional sudoku
Cesar Tron-Lozai
 
final presentation of sudoku solver project
Arafat Bin Reza
 
Graph theory and life
Milan Joshi
 
Graph coloring and_applications
mohammad alkhalil
 
Graph theory 1
Tech_MX
 
Graph theory in Practise
David Simons
 
Application of graph theory in drug design
Reihaneh Safavi
 
GRAPH COLORING AND ITS APPLICATIONS
Manojit Chakraborty
 
Applications of graphs
Tech_MX
 
Football and graph theory
Umang Aggarwal
 
Graph theory
Kumar
 
CS6702 graph theory and applications notes pdf book
appasami
 
Interesting applications of graph theory
Tech_MX
 
Ad

Similar to Class scheduling (20)

PDF
A TABU SEARCH ALGORITHM WITH EFFICIENT DIVERSIFICATION STRATEGY FOR HIGH SCHO...
ijcsit
 
PDF
A study-of-vertex-edge-coloring-techniques-with-application
Ijcem Journal
 
PDF
Lecture3
Praveen Kumar
 
PDF
An FPT Algorithm for Maximum Edge Coloring
Neeldhara Misra
 
PPTX
NP Complete Problems -- Internship
Seshagiri Rao Kornepati
 
PDF
Graph Coloring and Its Implementation
IJARIIT
 
PDF
6 CSE551 PavelGreedy5_v3 - Tagged.pdf it
srinivas281220
 
PPTX
Graph coloring problem(DAA).pptx
Home
 
PPT
Farhna shaikh webinar_graphcoloring
Farhana Shaikh
 
PDF
Applied Graph Theory Applications
vipin3195
 
PDF
Application of Graph Theory in an Intelligent Tutoring System for Solving Mat...
Valerie Felton
 
PDF
Extended online graph edge coloring
ijcsa
 
PDF
Maritaferreira Artwork2007
Marita Ferreira
 
PDF
Joco pavone
Mario Pavone
 
PDF
Cz24655657
IJERA Editor
 
PDF
Courses timetabling based on hill climbing algorithm
IJECEIAES
 
PPT
graph.ppt
yogeshbairagi126
 
PPT
Graphs in Discrete mathematics for computing
shardaharyani
 
PPT
graph.ppt
AqeelAbbas94
 
PDF
Graphtheory
Praveen Kumar
 
A TABU SEARCH ALGORITHM WITH EFFICIENT DIVERSIFICATION STRATEGY FOR HIGH SCHO...
ijcsit
 
A study-of-vertex-edge-coloring-techniques-with-application
Ijcem Journal
 
Lecture3
Praveen Kumar
 
An FPT Algorithm for Maximum Edge Coloring
Neeldhara Misra
 
NP Complete Problems -- Internship
Seshagiri Rao Kornepati
 
Graph Coloring and Its Implementation
IJARIIT
 
6 CSE551 PavelGreedy5_v3 - Tagged.pdf it
srinivas281220
 
Graph coloring problem(DAA).pptx
Home
 
Farhna shaikh webinar_graphcoloring
Farhana Shaikh
 
Applied Graph Theory Applications
vipin3195
 
Application of Graph Theory in an Intelligent Tutoring System for Solving Mat...
Valerie Felton
 
Extended online graph edge coloring
ijcsa
 
Maritaferreira Artwork2007
Marita Ferreira
 
Joco pavone
Mario Pavone
 
Cz24655657
IJERA Editor
 
Courses timetabling based on hill climbing algorithm
IJECEIAES
 
graph.ppt
yogeshbairagi126
 
Graphs in Discrete mathematics for computing
shardaharyani
 
graph.ppt
AqeelAbbas94
 
Graphtheory
Praveen Kumar
 
Ad

Recently uploaded (20)

PDF
IMP NAAC REFORMS 2024 - 10 Attributes.pdf
BHARTIWADEKAR
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
IMP NAAC-Reforms-Stakeholder-Consultation-Presentation-on-Draft-Metrics-Unive...
BHARTIWADEKAR
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PPTX
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PPTX
PPT on the Development of Education in the Victorian England
Beena E S
 
PPSX
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
PDF
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
Mathematics 5 - Time Measurement: Time Zone
menchreo
 
PDF
CHILD RIGHTS AND PROTECTION QUESTION BANK
Dr Raja Mohammed T
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PPTX
THE TAME BIRD AND THE FREE BIRD.pptxxxxx
MarcChristianNicolas
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
IMP NAAC REFORMS 2024 - 10 Attributes.pdf
BHARTIWADEKAR
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
IMP NAAC-Reforms-Stakeholder-Consultation-Presentation-on-Draft-Metrics-Unive...
BHARTIWADEKAR
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
community health nursing question paper 2.pdf
Prince kumar
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PPT on the Development of Education in the Victorian England
Beena E S
 
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
Zoology (Animal Physiology) practical Manual
raviralanaresh2
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
Mathematics 5 - Time Measurement: Time Zone
menchreo
 
CHILD RIGHTS AND PROTECTION QUESTION BANK
Dr Raja Mohammed T
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
THE TAME BIRD AND THE FREE BIRD.pptxxxxx
MarcChristianNicolas
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 

Class scheduling

  • 2. Combinatorial problem Class Scheduling Linear Programming Class Scheduling is a broad general problem which has been one of the prime Optimization Problem area of research. There has been a lot of algorithms developed for this particular Genetic Algorithm problem using different techniques as shown on the right. Constraint Propagation This is a problem with so many variations due to various constraints that can be tied to it. And this is why it is so hard and is Simulated Annealing considered as NP(Non-Polynomial) complete i.e. it does not have any Tabu Search polynomial time bound. However, approximate algorithm or heuristic approach can be taken to attain Greedy Algorithm solution in a feasible time bound. Hill Climbing
  • 3. 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: i) No same courses can be taken by any teacher or batch for a given time slot. ii) Minimize the number of time slots required and prove that it is optimum.
  • 4. My Class-scheduling Approach I researched for this problem a lot and have found numerous articles, documents that were published on this topic and have seen so many variants of this Bipartite Matching problem and also various approaches such as GA(genetic algorithm), CSP (Constraint Satisfaction Problem), Combinatorial approaches have been taken. But for my purpose of creating or developing the simplest form of this class-scheduling problem, I tried to Edge Coloring develop my own algorithm, it works ! Well, for at least the specific example that Jolly madam presented in our class. I put the teachers and the courses into two independent sets and then created the Bipartite matching according to the matrix of number of courses taken by each teacher. Draw the timetable So, in a nutshell, the idea is to find the maximum Bipartite matching among teacher & courses and then do an edge coloring to find the time slot so that no two edges coming out from a vertex have the same color.
  • 5. Edge Coloring Model • Take bipartite graph with Teacher/Batch 21st 22nd 23rd 24th vertices for teachers and for RAJ 2 0 1 1 classes AR 1 1 0 0 • Look for a coloring of the SA 0 0 2 1 edges such that no vertex SIS 0 2 0 2 has two incident edges with KMH 1 1 1 0 the same color. • What is the minimum number of colors needed? – Lower bound: maximum degree. (Interpretation!) – We can attain the lower bound with help of matching!!
  • 7. A Theorem Let G be a bipartite graph with maximum degree d. Then G has an edge coloring with d colors.  Step 1: Make G regular by adding vertices and edges.  Step 2: Repeatedly find a matching and remove it.
  • 8. Edge coloring a regular graph Say G’ is regular of degree d. For i = 1 to d do  Find a perfect matching M in G’.  Give all edges in M color i.  Remove all edges in M from G’. (Note that G’ stays regular!)
  • 9. Final step Take the edge coloring c of G’. Color G in the same way: G is subgraph of G’. Time: carrying out d times a perfect matching algorithm in a regular graph:  O(nd3) if we use Schrijver’s algorithm.  Can be done faster by other algorithms.
  • 10. My Algorithm 1. Find the maximum number of degree(d) from the given bipartite Time Complexity: graph. O(nd3) 2. Add vertex and edges so that it Where n is the number of becomes a d-regular bipartite vertices(in teacher’s set(t)) and d is graph. the maximum number of degree. 3. Split if there are cycles in the given Bipartite graph until there are no cycle. 4. For each color c from 1 to d  Iteratively color different batch for set t ( the edges between them) with color c greedily. 5. Represent it as final matrix which is the solution.

Editor's Notes

  • #7: Colored does not represent bipartite matching or edge coloring…it is used just to give clarity or avoid confusion
  • #11: Simulate the example.
  • #12: Simulate the example from my note