SlideShare a Scribd company logo
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!!
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

Graph Coloring
Graph ColoringGraph Coloring
Graph Coloring
Dr. Abdul Ahad Abro
 
Graph colouring
Graph colouringGraph colouring
Graph colouring
Priyank Jain
 
Section3 2
Section3 2Section3 2
Section3 2
guest783f1f80
 
1641 vector-matrix
1641 vector-matrix1641 vector-matrix
1641 vector-matrix
Dr Fereidoun Dejahang
 
GRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONSGRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONS
Manojit Chakraborty
 
SATISFIABILITY METHODS FOR COLOURING GRAPHS
SATISFIABILITY METHODS FOR COLOURING GRAPHSSATISFIABILITY METHODS FOR COLOURING GRAPHS
SATISFIABILITY METHODS FOR COLOURING GRAPHS
cscpconf
 
Methods of writing sets
Methods of writing setsMethods of writing sets
Methods of writing sets
VaibhvZade
 
Rules of writing sets
Rules of writing setsRules of writing sets
Rules of writing sets
VaibhvZade
 
Data Analysis and Algorithms Lecture 1: Introduction
 Data Analysis and Algorithms Lecture 1: Introduction Data Analysis and Algorithms Lecture 1: Introduction
Data Analysis and Algorithms Lecture 1: Introduction
TayyabSattar5
 
Key notes ch 3_ integers
Key notes ch 3_ integersKey notes ch 3_ integers
Key notes ch 3_ integers
sajid hussain
 
Chapter 6 - Matrix Algebra
Chapter 6 - Matrix AlgebraChapter 6 - Matrix Algebra
Chapter 6 - Matrix Algebra
Muhammad Bilal Khairuddin
 
6th math -c2--L4--aug27
6th math -c2--L4--aug276th math -c2--L4--aug27
6th math -c2--L4--aug27
jdurst65
 
7 math lm mod4
7 math lm mod47 math lm mod4
7 math lm mod4
Mirasol Ralo
 
Math Module Sample
Math Module SampleMath Module Sample
Math Module Sample
preyaleandrina
 
Wei Yang - 2015 - Sampling-based Alignment and Hierarchical Sub-sentential Al...
Wei Yang - 2015 - Sampling-based Alignment and Hierarchical Sub-sentential Al...Wei Yang - 2015 - Sampling-based Alignment and Hierarchical Sub-sentential Al...
Wei Yang - 2015 - Sampling-based Alignment and Hierarchical Sub-sentential Al...
Association for Computational Linguistics
 
7 7
7 77 7
(7) Inquiry Lab - Solve One Step Addition and Subtraction Equations
(7) Inquiry Lab - Solve One Step Addition and Subtraction Equations(7) Inquiry Lab - Solve One Step Addition and Subtraction Equations
(7) Inquiry Lab - Solve One Step Addition and Subtraction Equations
wzuri
 
Cg 04-math
Cg 04-mathCg 04-math
Cg 04-math
Hyun Wong Choi
 
Alg1ch1
Alg1ch1Alg1ch1
Mat 092 section 12.4 adding and subtracting polynomials
Mat 092 section 12.4 adding and subtracting polynomialsMat 092 section 12.4 adding and subtracting polynomials
Mat 092 section 12.4 adding and subtracting polynomials
GlenSchlee
 

What's hot (20)

Graph Coloring
Graph ColoringGraph Coloring
Graph Coloring
 
Graph colouring
Graph colouringGraph colouring
Graph colouring
 
Section3 2
Section3 2Section3 2
Section3 2
 
1641 vector-matrix
1641 vector-matrix1641 vector-matrix
1641 vector-matrix
 
GRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONSGRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONS
 
SATISFIABILITY METHODS FOR COLOURING GRAPHS
SATISFIABILITY METHODS FOR COLOURING GRAPHSSATISFIABILITY METHODS FOR COLOURING GRAPHS
SATISFIABILITY METHODS FOR COLOURING GRAPHS
 
Methods of writing sets
Methods of writing setsMethods of writing sets
Methods of writing sets
 
Rules of writing sets
Rules of writing setsRules of writing sets
Rules of writing sets
 
Data Analysis and Algorithms Lecture 1: Introduction
 Data Analysis and Algorithms Lecture 1: Introduction Data Analysis and Algorithms Lecture 1: Introduction
Data Analysis and Algorithms Lecture 1: Introduction
 
Key notes ch 3_ integers
Key notes ch 3_ integersKey notes ch 3_ integers
Key notes ch 3_ integers
 
Chapter 6 - Matrix Algebra
Chapter 6 - Matrix AlgebraChapter 6 - Matrix Algebra
Chapter 6 - Matrix Algebra
 
6th math -c2--L4--aug27
6th math -c2--L4--aug276th math -c2--L4--aug27
6th math -c2--L4--aug27
 
7 math lm mod4
7 math lm mod47 math lm mod4
7 math lm mod4
 
Math Module Sample
Math Module SampleMath Module Sample
Math Module Sample
 
Wei Yang - 2015 - Sampling-based Alignment and Hierarchical Sub-sentential Al...
Wei Yang - 2015 - Sampling-based Alignment and Hierarchical Sub-sentential Al...Wei Yang - 2015 - Sampling-based Alignment and Hierarchical Sub-sentential Al...
Wei Yang - 2015 - Sampling-based Alignment and Hierarchical Sub-sentential Al...
 
7 7
7 77 7
7 7
 
(7) Inquiry Lab - Solve One Step Addition and Subtraction Equations
(7) Inquiry Lab - Solve One Step Addition and Subtraction Equations(7) Inquiry Lab - Solve One Step Addition and Subtraction Equations
(7) Inquiry Lab - Solve One Step Addition and Subtraction Equations
 
Cg 04-math
Cg 04-mathCg 04-math
Cg 04-math
 
Alg1ch1
Alg1ch1Alg1ch1
Alg1ch1
 
Mat 092 section 12.4 adding and subtracting polynomials
Mat 092 section 12.4 adding and subtracting polynomialsMat 092 section 12.4 adding and subtracting polynomials
Mat 092 section 12.4 adding and subtracting polynomials
 

Viewers also liked

Scheduling and Curriculum Planning
Scheduling and Curriculum PlanningScheduling and Curriculum Planning
Scheduling and Curriculum Planning
Kathleen Cate Sumbilon
 
Application in graph theory
Application in graph theoryApplication in graph theory
Application in graph theory
sulaiman alfahad
 
Chromatic graph theory
Chromatic graph theoryChromatic graph theory
Chromatic graph theory
jotasmall
 
On sum edge coloring of regular, bipartite and split graphs
On sum edge coloring of regular,  bipartite and split graphsOn sum edge coloring of regular,  bipartite and split graphs
On sum edge coloring of regular, bipartite and split graphs
政謙 陳
 
Intro to Social Network AnalysisSession
Intro to Social Network  AnalysisSessionIntro to Social Network  AnalysisSession
Intro to Social Network AnalysisSession
Sheila MacNeill
 
Graph
GraphGraph
Graph
ssnetvnr
 
Introduction to Graph and Graph Coloring
Introduction to Graph and Graph Coloring Introduction to Graph and Graph Coloring
Introduction to Graph and Graph Coloring
Darwish Ahmad
 
Functional sudoku
Functional sudokuFunctional sudoku
Functional sudoku
Cesar Tron-Lozai
 
final presentation of sudoku solver project
final presentation of sudoku solver projectfinal presentation of sudoku solver project
final presentation of sudoku solver project
Arafat Bin Reza
 
Graph theory and life
Graph theory and lifeGraph theory and life
Graph theory and life
Milan Joshi
 
Graph coloring and_applications
Graph coloring and_applicationsGraph coloring and_applications
Graph coloring and_applications
mohammad alkhalil
 
Graph theory 1
Graph theory 1Graph theory 1
Graph theory 1
Tech_MX
 
Graph theory in Practise
Graph theory in PractiseGraph theory in Practise
Graph theory in Practise
David Simons
 
Application of graph theory in drug design
Application of graph theory in drug designApplication of graph theory in drug design
Application of graph theory in drug design
Reihaneh Safavi
 
Applications of graphs
Applications of graphsApplications of graphs
Applications of graphs
Tech_MX
 
Football and graph theory
Football and graph theoryFootball and graph theory
Football and graph theory
Umang Aggarwal
 
Graph theory
Graph theoryGraph theory
Graph theory
Kumar
 
CS6702 graph theory and applications notes pdf book
CS6702 graph theory and applications notes pdf bookCS6702 graph theory and applications notes pdf book
CS6702 graph theory and applications notes pdf book
appasami
 
Interesting applications of graph theory
Interesting applications of graph theoryInteresting applications of graph theory
Interesting applications of graph theory
Tech_MX
 
introduction to graph theory
introduction to graph theoryintroduction to graph theory
introduction to graph theory
Chuckie Balbuena
 

Viewers also liked (20)

Scheduling and Curriculum Planning
Scheduling and Curriculum PlanningScheduling and Curriculum Planning
Scheduling and Curriculum Planning
 
Application in graph theory
Application in graph theoryApplication in graph theory
Application in graph theory
 
Chromatic graph theory
Chromatic graph theoryChromatic graph theory
Chromatic graph theory
 
On sum edge coloring of regular, bipartite and split graphs
On sum edge coloring of regular,  bipartite and split graphsOn sum edge coloring of regular,  bipartite and split graphs
On sum edge coloring of regular, bipartite and split graphs
 
Intro to Social Network AnalysisSession
Intro to Social Network  AnalysisSessionIntro to Social Network  AnalysisSession
Intro to Social Network AnalysisSession
 
Graph
GraphGraph
Graph
 
Introduction to Graph and Graph Coloring
Introduction to Graph and Graph Coloring Introduction to Graph and Graph Coloring
Introduction to Graph and Graph Coloring
 
Functional sudoku
Functional sudokuFunctional sudoku
Functional sudoku
 
final presentation of sudoku solver project
final presentation of sudoku solver projectfinal presentation of sudoku solver project
final presentation of sudoku solver project
 
Graph theory and life
Graph theory and lifeGraph theory and life
Graph theory and life
 
Graph coloring and_applications
Graph coloring and_applicationsGraph coloring and_applications
Graph coloring and_applications
 
Graph theory 1
Graph theory 1Graph theory 1
Graph theory 1
 
Graph theory in Practise
Graph theory in PractiseGraph theory in Practise
Graph theory in Practise
 
Application of graph theory in drug design
Application of graph theory in drug designApplication of graph theory in drug design
Application of graph theory in drug design
 
Applications of graphs
Applications of graphsApplications of graphs
Applications of graphs
 
Football and graph theory
Football and graph theoryFootball and graph theory
Football and graph theory
 
Graph theory
Graph theoryGraph theory
Graph theory
 
CS6702 graph theory and applications notes pdf book
CS6702 graph theory and applications notes pdf bookCS6702 graph theory and applications notes pdf book
CS6702 graph theory and applications notes pdf book
 
Interesting applications of graph theory
Interesting applications of graph theoryInteresting applications of graph theory
Interesting applications of graph theory
 
introduction to graph theory
introduction to graph theoryintroduction to graph theory
introduction to graph theory
 

Similar to Class scheduling

bcfbedbf-6679-4d5d-b8a5-7d4c9c48dba4.pptx
bcfbedbf-6679-4d5d-b8a5-7d4c9c48dba4.pptxbcfbedbf-6679-4d5d-b8a5-7d4c9c48dba4.pptx
bcfbedbf-6679-4d5d-b8a5-7d4c9c48dba4.pptx
B.T.L.I.T
 
Artifact 2 clemson
Artifact 2 clemsonArtifact 2 clemson
Artifact 2 clemson
clemsonj11
 
In792(2)
In792(2)In792(2)
abstract algebra
abstract algebraabstract algebra
abstract algebra
angelito1994
 
Abstract algebra
Abstract algebraAbstract algebra
Abstract algebra
Emmanuel Mukupa
 
Undecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation AlgorithmsUndecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation Algorithms
Muthu Vinayagam
 
Dynamic programming class 16
Dynamic programming class 16Dynamic programming class 16
Dynamic programming class 16
Kumar
 
Introduction to dynamic programming
Introduction to dynamic programmingIntroduction to dynamic programming
Introduction to dynamic programming
Amisha Narsingani
 
Algebra
AlgebraAlgebra
Unit 5
Unit 5Unit 5
Unit 5
Unit 5Unit 5
Unit 5
guna287176
 
Graph coloring problem(DAA).pptx
Graph coloring problem(DAA).pptxGraph coloring problem(DAA).pptx
Graph coloring problem(DAA).pptx
Home
 
ABSTRACT ALGEBRA A STUDY GUIDE FOR BEGINNERS
ABSTRACT ALGEBRA  A STUDY GUIDE FOR BEGINNERSABSTRACT ALGEBRA  A STUDY GUIDE FOR BEGINNERS
ABSTRACT ALGEBRA A STUDY GUIDE FOR BEGINNERS
Angie Miller
 
Exhaustive Combinatorial Enumeration
Exhaustive Combinatorial EnumerationExhaustive Combinatorial Enumeration
Exhaustive Combinatorial Enumeration
Mathieu Dutour Sikiric
 
Algorithm Design and Complexity - Course 1&2
Algorithm Design and Complexity - Course 1&2Algorithm Design and Complexity - Course 1&2
Algorithm Design and Complexity - Course 1&2
Traian Rebedea
 
An Introduction to the Finite Element Method
An Introduction to the Finite Element MethodAn Introduction to the Finite Element Method
An Introduction to the Finite Element Method
Mohammad Tawfik
 
Advance analysis of algo
Advance analysis of algoAdvance analysis of algo
Advance analysis of algo
university of sargodha
 
Greedy_Backtracking graph coloring.ppt
Greedy_Backtracking graph coloring.pptGreedy_Backtracking graph coloring.ppt
Greedy_Backtracking graph coloring.ppt
SeethaDinesh
 
Dynamic programming prasintation eaisy
Dynamic programming prasintation eaisyDynamic programming prasintation eaisy
Dynamic programming prasintation eaisy
ahmed51236
 
Module 5 Lesson 22
Module 5 Lesson 22Module 5 Lesson 22
Module 5 Lesson 22
NRWEG3
 

Similar to Class scheduling (20)

bcfbedbf-6679-4d5d-b8a5-7d4c9c48dba4.pptx
bcfbedbf-6679-4d5d-b8a5-7d4c9c48dba4.pptxbcfbedbf-6679-4d5d-b8a5-7d4c9c48dba4.pptx
bcfbedbf-6679-4d5d-b8a5-7d4c9c48dba4.pptx
 
Artifact 2 clemson
Artifact 2 clemsonArtifact 2 clemson
Artifact 2 clemson
 
In792(2)
In792(2)In792(2)
In792(2)
 
abstract algebra
abstract algebraabstract algebra
abstract algebra
 
Abstract algebra
Abstract algebraAbstract algebra
Abstract algebra
 
Undecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation AlgorithmsUndecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation Algorithms
 
Dynamic programming class 16
Dynamic programming class 16Dynamic programming class 16
Dynamic programming class 16
 
Introduction to dynamic programming
Introduction to dynamic programmingIntroduction to dynamic programming
Introduction to dynamic programming
 
Algebra
AlgebraAlgebra
Algebra
 
Unit 5
Unit 5Unit 5
Unit 5
 
Unit 5
Unit 5Unit 5
Unit 5
 
Graph coloring problem(DAA).pptx
Graph coloring problem(DAA).pptxGraph coloring problem(DAA).pptx
Graph coloring problem(DAA).pptx
 
ABSTRACT ALGEBRA A STUDY GUIDE FOR BEGINNERS
ABSTRACT ALGEBRA  A STUDY GUIDE FOR BEGINNERSABSTRACT ALGEBRA  A STUDY GUIDE FOR BEGINNERS
ABSTRACT ALGEBRA A STUDY GUIDE FOR BEGINNERS
 
Exhaustive Combinatorial Enumeration
Exhaustive Combinatorial EnumerationExhaustive Combinatorial Enumeration
Exhaustive Combinatorial Enumeration
 
Algorithm Design and Complexity - Course 1&2
Algorithm Design and Complexity - Course 1&2Algorithm Design and Complexity - Course 1&2
Algorithm Design and Complexity - Course 1&2
 
An Introduction to the Finite Element Method
An Introduction to the Finite Element MethodAn Introduction to the Finite Element Method
An Introduction to the Finite Element Method
 
Advance analysis of algo
Advance analysis of algoAdvance analysis of algo
Advance analysis of algo
 
Greedy_Backtracking graph coloring.ppt
Greedy_Backtracking graph coloring.pptGreedy_Backtracking graph coloring.ppt
Greedy_Backtracking graph coloring.ppt
 
Dynamic programming prasintation eaisy
Dynamic programming prasintation eaisyDynamic programming prasintation eaisy
Dynamic programming prasintation eaisy
 
Module 5 Lesson 22
Module 5 Lesson 22Module 5 Lesson 22
Module 5 Lesson 22
 

Recently uploaded

World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 

Recently uploaded (20)

World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 

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!!
  • 6.
  • 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

  1. Colored does not represent bipartite matching or edge coloring…it is used just to give clarity or avoid confusion
  2. Simulate the example.
  3. Simulate the example from my note