SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

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
 

Mais procurados (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
 

Destaque

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
 

Destaque (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
 

Semelhante a 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
 

Semelhante a 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
 

Último

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 

Último (20)

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.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.

Notas do Editor

  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