Graph Colouring, Class Scheduling and Application in Modern Computer Science
Graph Colouring, Class Scheduling and Application in Modern Computer Science
https://doi.org/10.22214/ijraset.2023.49590
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
Abstract: Course timetabling and exam timetabling are two most common academic scheduling problems in any of the
educational institution. A desirable schedule combines resources in a way which satisfies essential and preferential constrains.
In this paper, we focus on college course timetabling including hard and soft constraints. Our Objective is to inculcate graph
colouring approach to obtain a conflict free course graph.
Keywords: Graph colouring, Course Timetable Scheduling & hard constraints, soft constraints course conflict graph.
I. INTRODUCTION
In 1736 Graph theory which was pointed out by Euler with Konigsberg bridge problem led to Eulerian graph concept later Gustav
Kirchoff developed the concept of a tree which had a eminent application in electrical networks. A.I. Mohiue came up with the idea
of complete graph and bipartite graph in the year 1840. In 1852
Thomas Gutherie paned way to the four –colour problem. the graph colouring deals with planar graph with graph colouring
approach which was later solved by kennel appel and Wolfgarg laken Heawood extended it to five –colour theorem in the year
1890.George David Birkhoff studied colouring problems in algebraic graph theory in the year 1912. The Graph colouring has a vast
application which include map colouring scheduling problems, network design, Sudoku, Bipartite graph detection etc. Varied
complex problem which involves optimization in particulars, Conflict resolution optimal partitioning of mutually exclusive events
can be accomplished by mearus of graph coloring
A. Timetable Scheduling
1) The Course Timetable Scheduling: Courses which share common resource will be scheduled in conflict –free –time slots.
2) Timetable Scheduling: Exam sharing common recourses is to be scheduled in conflict free time slots
3) Aircraft Scheduling: Aircraft needs to be assigned to flights
4) Job shop Scheduling: Is a scheduling for the set of jobs along with their processing time and set of machines a schedule
mapping machines ad jobs satisfying the feasibility constraints and optimization objectives.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1065
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
IV. CONSTRAINTS
In any scheduling problem we have to consider the constraints related to obtain an optimal solution. The many a number of
contraction on creating a schedule we accept and reject the output based on our satisfaction .Constraints can be classified as hard
and soft constraints.
A. Hard Constraints
The essential constrains which cannot be rejected and must be satisfied to have a schedule is called hard constraints any schedule
which do not satisfy these hard constraints are rejected.
Few examples are
1) Number of courses cannot exceed the given limit
2) No two or more covers can allotted in the same students.
3) No teacher can handle two courses at same time
B. Soft Constraints
The preferential conditions which are optional for scheduling. It is highly complicated to incorporate all the soft constraint in the
schedule we accept the schedule even at the occurrence of not satisfying few soft constraints.
A. Optimization Issue
Optimization is meant to maximize profit and minimize cost , for examples scheduling machine time for easiest completion time.
B. Equity
Equity is making things fair for all participants for instance scheduling football game by making an exact no of home and away
game
.
C. Conflict Resolution
Conflict resolution focuses on presenting conflicts such as scheduling college final examination for the end team.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1066
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
We check the entire vertex and select the select the colour which is not the same as its vertices.
It is important that we start with a right vertex in order to use minimum number of colours.
Welsh-Powell algorithm which ensures the min number of colours in a graph is stated above.
a) Select the first vertex named having most incoming edges and colour it
b) Look at the other vertices colour it if
If they are not neighbours.
They are uncoloured.
The vertex to which it is adjacent is not coloured with the same colour.
Repeat until colouring all the vertices.
The table shows with an x which pairs of courses have one or more students in common only two air-conditioned lecture hall are
available for use at any one time
Let us solve the above problem using graph colouring concept. The table with x marks shows pairs of courses having one or more
students in common.
1) Hard Constraints
a) Only two halls are allotted for the classes in general
b) At any one time slot, it is permissible to avail 3 halls.
2) Soft Constraints
a) Both the halls should be occupied
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1067
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
TABLE III
COURSES HAVING COMMON INTERSECTION
H E EL M C B Z G B.C
H * * * * *
E * * * *
EL * * *
M * * *
C * * * * *
B * * * * *
Z * * * *
G * * * * *
B.C * * * * *
Solution:
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1068
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue III Mar 2023- Available at www.ijraset.com
We have a constraint that only 2 halls are available. But during time slot (a) , 3 hall are required therefore we simply more BC to
Time Slot d .
Now, the altered slots is as above
Time slot a – H, EL
Time Slot b – C, Z, M
Time Slot c – B, G
Time Slot d - E, BC
Therefore four slots are allotted for the classes as per the above preference.
The complexity of a scheduling problem is as proportional to the number of constraints involved. A better schedule is one which
satisfies hard constraints and maximizes the satisfaction of soft constraints.
IX. CONCLUSION
In summary, graph theory is an important branch of mathematics. For planning difficulties, we examined goals and solutions to
planning problems. Certain steps must be followed for best results, one example being the graph coloring algorithm. Overall,
fairness, conflict resolution, and optimization are the main goals of scheduling problems.
REFERENCES
[1] Welsh, D.J.A., and Powell, M.B., 1967, “An Upper Bound for the Chromatic Number of a Graph and it's Application to Timetabling Problems,” The
Computer Journal. 10(1), pp. 85-86.
[2] Wood, D. C., 1968, “A System for Computing University Examination Timetables,” The Computer Journal, 11, pp.41-47.
[3] Carter, M. W., Laporte, G., and Lee, S. Y., 1996, “Examination timetabling: Algorithmic strategies and applications,” Journal of the Operational Research
Society 47(3), pp. 373–383.
[4] Johnson, D. S., Aragon, C. R., McGeoch, L. A., and Schevon, C., 1991, “Optimization by Simulated Annealing: An Experimental Evaluation; Part II, Graph
Coloring and Number Partitioning,” Operations Research, 39(3), pp. 378–406.
[5] Kiaer, L., and Yellen, J., 1992, “Weighted Graphs and University Timetabling,” Computers and Operations Research, 19(1), pp. 59-67.
[6] Burke, E.K., Elliman, D.G., and Weare, R.F., 1994, “A University Timetabling System Based on Graph Colouring and Constraint Manipulation,” Journal of
Research on Computing in Education, 27( 1), pp. 1-18.
[7] Akbulut, A., and Yılmaz, G., 2013, “University Exam Scheduling System Using Graph Coloring Algorithm and RFID Technology,” International Journal of
Innovation, Management and Technology, 4(1), pp. 66-72.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1069