SlideShare a Scribd company logo
1 of 12
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 AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONSGRAPH COLORING AND ITS APPLICATIONS
GRAPH COLORING AND ITS APPLICATIONSManojit Chakraborty
 
SATISFIABILITY METHODS FOR COLOURING GRAPHS
SATISFIABILITY METHODS FOR COLOURING GRAPHSSATISFIABILITY METHODS FOR COLOURING GRAPHS
SATISFIABILITY METHODS FOR COLOURING GRAPHScscpconf
 
Methods of writing sets
Methods of writing setsMethods of writing sets
Methods of writing setsVaibhvZade
 
Rules of writing sets
Rules of writing setsRules of writing sets
Rules of writing setsVaibhvZade
 
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: IntroductionTayyabSattar5
 
Key notes ch 3_ integers
Key notes ch 3_ integersKey notes ch 3_ integers
Key notes ch 3_ integerssajid hussain
 
6th math -c2--L4--aug27
6th math -c2--L4--aug276th math -c2--L4--aug27
6th math -c2--L4--aug27jdurst65
 
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) 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 Equationswzuri
 
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 polynomialsGlenSchlee
 

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

Application in graph theory
Application in graph theoryApplication in graph theory
Application in graph theorysulaiman alfahad
 
Chromatic graph theory
Chromatic graph theoryChromatic graph theory
Chromatic graph theoryjotasmall
 
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 AnalysisSessionSheila MacNeill
 
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
 
final presentation of sudoku solver project
final presentation of sudoku solver projectfinal presentation of sudoku solver project
final presentation of sudoku solver projectArafat Bin Reza
 
Graph theory and life
Graph theory and lifeGraph theory and life
Graph theory and lifeMilan Joshi
 
Graph coloring and_applications
Graph coloring and_applicationsGraph coloring and_applications
Graph coloring and_applicationsmohammad alkhalil
 
Graph theory 1
Graph theory 1Graph theory 1
Graph theory 1Tech_MX
 
Graph theory in Practise
Graph theory in PractiseGraph theory in Practise
Graph theory in PractiseDavid 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 designReihaneh Safavi
 
Applications of graphs
Applications of graphsApplications of graphs
Applications of graphsTech_MX
 
Football and graph theory
Football and graph theoryFootball and graph theory
Football and graph theoryUmang Aggarwal
 
Graph theory
Graph theoryGraph theory
Graph theoryKumar
 
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 bookappasami
 
Interesting applications of graph theory
Interesting applications of graph theoryInteresting applications of graph theory
Interesting applications of graph theoryTech_MX
 
introduction to graph theory
introduction to graph theoryintroduction to graph theory
introduction to graph theoryChuckie 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.pptxB.T.L.I.T
 
Artifact 2 clemson
Artifact 2 clemsonArtifact 2 clemson
Artifact 2 clemsonclemsonj11
 
Undecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation AlgorithmsUndecidable Problems and Approximation Algorithms
Undecidable Problems and Approximation AlgorithmsMuthu Vinayagam
 
Dynamic programming class 16
Dynamic programming class 16Dynamic programming class 16
Dynamic programming class 16Kumar
 
Introduction to dynamic programming
Introduction to dynamic programmingIntroduction to dynamic programming
Introduction to dynamic programmingAmisha Narsingani
 
Graph coloring problem(DAA).pptx
Graph coloring problem(DAA).pptxGraph coloring problem(DAA).pptx
Graph coloring problem(DAA).pptxHome
 
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 BEGINNERSAngie Miller
 
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&2Traian 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 MethodMohammad Tawfik
 
Greedy_Backtracking graph coloring.ppt
Greedy_Backtracking graph coloring.pptGreedy_Backtracking graph coloring.ppt
Greedy_Backtracking graph coloring.pptSeethaDinesh
 
Dynamic programming prasintation eaisy
Dynamic programming prasintation eaisyDynamic programming prasintation eaisy
Dynamic programming prasintation eaisyahmed51236
 
Module 5 Lesson 22
Module 5 Lesson 22Module 5 Lesson 22
Module 5 Lesson 22NRWEG3
 

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

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Recently uploaded (20)

Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 

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