-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtt.py
572 lines (517 loc) · 20.8 KB
/
tt.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
#Copyright (C) 2017 Nihal Rao I, Sanjan S Poojari, Shishir Upadhya
import random
from data import *
from collections import deque
import os
import sys
import logging
day_row_num = {
'monday': 0,
'tuesday': 1,
'wednesday': 2,
'thursday': 3,
'friday': 4,
'saturday': 5
}
def getfreeslots(tt):
freeslots = []
nonfinalslots = []
for day in tt:
for timeslot in range(1, 6+1):
if timeslot in tt[day]:
if tt[day][timeslot] == '' and tt.final[day][timeslot] != True: # time slot is free
freeslots.append((day, timeslot))
elif tt.final[day][timeslot] != True:
nonfinalslots.append((day, timeslot))
for day in tt:
for timeslot in range(7, 8+1):
if timeslot in tt[day]:
if tt[day][timeslot] == '' and tt.final[day][timeslot] != True: # time slot is free
freeslots.append((day, timeslot))
elif tt.final[day][timeslot] != True:
nonfinalslots.append((day, timeslot))
return freeslots, nonfinalslots
def getnumhours(tt, subject, day):
# return the number of hours of subject on a given day, and a list of those hours
num = 0
hours = []
for timeslot in tt[day]:
if tt[day][timeslot] != '' and subject[2] == tt[day][timeslot][2] and subject[3] == tt[day][timeslot][3]:
num += 1
hours.append(timeslot)
return num, hours
def is_consecutive_hour(teacher, d, h):
previous = teacher[d][h-1] if h > 1 else None
if (d == 'saturday' and h < 4) or (d != 'saturday' and h < 8):
next = teacher[d][h+1]
else:
next = None
if not previous and not next:
return False
elif previous and next:
return True
elif previous and h == 3:
return False
elif next and h == 2:
return False
else:
return True
def generate(tt, subjects, faculty, location): # subjects is a list of tuples (name, hours/week, teacher, short name); faculty is a dict
remaining_hours = [i[1] for i in subjects]
freeslots, _ = getfreeslots(tt)
logger = logging.getLogger('tt_algo')
logging.basicConfig(filename = location, level = logging.DEBUG)
logger.info('')
for _ in range(max(remaining_hours)): # repeat for as many times as the max credits
for i in range(len(subjects)): # iterate through all subjects, allot 1 hour for each subject
if remaining_hours[i] > 0:
subject = subjects[i]
for day, time in freeslots:
if faculty[subject[2]].final[day][time] != True and getnumhours(tt, subject, day)[0] < 1: # if teacher slot is not finalized and subject isnt already there that day
tt[day][time] = subject
faculty[subject[2]][day][time] = (tt.name, subject)
remaining_hours[i] -= 1
freeslots.remove((day, time))
break
else:
logger.info("no free slots for %s %s", tt.name, subject)
dayclash.append((tt, subject))
return tt
def print_timetable(tt, location, style = 'section', name = ''):
logger = logging.getLogger('tt_algo')
logging.basicConfig(filename = location, level = logging.DEBUG)
if name == '':
name = tt.name
logger.info(('%-20s ' * 9) % (name, '9:00-9:55', '9:55-10:50', '11:10-12:05', '12:05-1:00', '1:00-1:55', '1:55-2:50', '2:50-3:40', '3:40-4:30'))
for day in tt:
x = '%-20s' % day
for timeslot in tt[day]:
if tt[day][timeslot] == '':
x += ' ' + '%-20s' % '-'
else:
if style == 'section':
x += ' ' + '%-20s' % tt[day][timeslot][3]
else:
section = tt[day][timeslot][0]
subject = tt[day][timeslot][1][3]
x += ' ' + '%-20s' % (subject + ' (' + section + ')')
logger.info('%s', x)
logger.info('\n')
def rehabilitate(day, section, subject, faculty):
teacher = faculty[subject[2]]
for timeslot in teacher[day]:
if teacher[day][timeslot] == '' and teacher.final[day][timeslot] != True and not is_consecutive_hour(teacher, day, timeslot) and getnumhours(section, subject, day)[0] < 2: # teacher is available
if section.final[day][timeslot] != True: # time slot for that section is not finalized
clashing_subject = section[day][timeslot]
if teacher.workload > section.final[day][timeslot]: # whatever subject has been allotted, move it to clash
if clashing_subject != '':
clash.append((section, clashing_subject))
clashing_teacher = clashing_subject[2]
faculty[clashing_teacher][day][timeslot] = ''
section.final[day][timeslot] = teacher.workload # finalize the lecture by moving the new subject into the time slot
section[day][timeslot] = subject
teacher[day][timeslot] = (section.name, subject)
break
else: # teacher has no free time slots where the lecture can be scheduled, on that day
dayclash.append((section, subject))
def utilize_free_hours(tt, faculty):
for day in tt:
timeslots = tt[day].keys()
t1 = min(timeslots)
t2 = max(timeslots)
for t in range(t1, t2+1): # t = current timeslot that is blank
if tt[day][t] == '' and tt.final[day][t] == False:
for i in range(t2, t, -1): # i = future timeslot that has a lecture
if tt[day][i] != '' and tt.final[day][i] != True:
subject = tt[day][i]
teacher = faculty[subject[2]]
if teacher[day][t] == '' and teacher.final[day][t] == False and not is_consecutive_hour(teacher, day, t):
# if teacher is free at timeslot t, move subject from timeslot i to t
tt[day][t] = subject
tt[day][i] = ''
tt.final[day][t] = tt.final[day][i]
tt.final[day][i] = False
teacher[day][i] = ''
teacher[day][t] = (tt.name, subject)
break # done filling timeslot t
pass
def adjust_clash(timetables, location, faculty):
logger = logging.getLogger('tt_algo')
logging.basicConfig(filename = location, level = logging.DEBUG)
for day in ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']:
n_dayclash = len(dayclash)
for i in range(n_dayclash):
dayclash_ele = dayclash.popleft()
rehabilitate(day, dayclash_ele[0], dayclash_ele[1], faculty)
timeslots = 8 if day != 'saturday' else 4
for timeslot in range(1, timeslots+1):
for sem in timetables:
for section in timetables[sem]:
section = timetables[sem][section]
if section[day][timeslot] != '' and section.final[day][timeslot] == False: # if lecture has not been finalized
subject = section[day][timeslot]
teacher = faculty[subject[2]]
try:
if teacher[day][timeslot] == '' and teacher.final[day][timeslot] != True and not is_consecutive_hour(teacher, day, timeslot):
teacher[day][timeslot] = (section.name, subject)
section.final[day][timeslot] = teacher.workload
elif teacher[day][timeslot] != '' and (teacher[day][timeslot][0] != section.name or teacher[day][timeslot][1] != subject): # teacher is not available, there is a clash
# teacher is not available
# what if teacher takes 2 subjects for same section? 2nd condition takes care of this
section[day][timeslot] = ''
section.final[day][timeslot] = False
rehabilitate(day, section, subject, faculty)
elif is_consecutive_hour(teacher, day, timeslot):
section[day][timeslot] = ''
section.final[day][timeslot] = False
teacher[day][timeslot] = ''
rehabilitate(day, section, subject, faculty)
else: # if teacher is available, finalize the lecture
section.final[day][timeslot] = teacher.workload
except Exception as e:
logger.info('%s %s %s %s %s', section.name, subject, day, timeslot, faculty[subject[2]][day][timeslot])
print_timetable(faculty[subject[2]], location, style = 'staff')
print_timetable(section, location)
logger.exception(e)
raise
while len(clash) > 0:
clash_ele = clash.popleft()
rehabilitate(day, clash_ele[0], clash_ele[1], faculty)
def finalize_lab(section, day, time, subject, hours = 3):
global faculty
for i in range(time, time+hours):
section[day][i] = subject
section.final[day][i] = True
for teacher in subject[2]:
faculty[teacher][day][i] = (section.name, subject)
faculty[teacher].final[day][i] = True
def finalize_theory(section, day, time, subject, hours = 1):
global faculty
for i in range(time, time+hours):
section[day][i] = subject
section.final[day][i] = True
teacher = subject[2]
faculty[teacher][day][i] = (section.name, subject)
faculty[teacher].final[day][i] = True
def finalize_elective(section, day, time, subjects, sub_short):
global faculty
section[day][time] = ('Elective', 0, 'Elective staff', sub_short) # last field is the one that matters, others are not used
section.final[day][time] = True
for sub in subjects:
teacher = sub[2]
if isinstance(teacher, list): # if elective is a lab, it may have multiple teachers
for t in teacher:
faculty[t][day][time] = (section.name, sub)
faculty[t].final[day][time] = True
else:
faculty[teacher][day][time] = (section.name, sub)
faculty[teacher].final[day][time] = True
def free_faculty(teacher, time, day = 'all'):
if day == 'all':
for day in 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday':
if time == 'all':
for i in range(1, 8+1):
if i in teacher.final[day]:
teacher.final[day][i] = True
else:
teacher.final[day][time] = True
else:
if time == 'all':
for i in range(1, 8+1):
if i in teacher.final[day]:
teacher.final[day][i] = True
else:
teacher.final[day][time] = True
def print_dayclash(location):
logger = logging.getLogger('tt_algo')
logging.basicConfig(filename = location, level = logging.DEBUG)
for item in dayclash:
logger.info('%s %s', item[0].name, item[1])
logger.info(len(dayclash))
def produce_timetable(ui, loc):
location = loc
logger = logging.getLogger('tt_algo')
logging.basicConfig(filename = location, level = logging.INFO)
global faculty
global subjects
global dayclash
global clash
dayclash = deque()
clash = deque()
faculty = dict()
for member in ui.faculty_list_value:
faculty[member] = timetable(str(member))
faculty[member].dept = ui.department
subjects = OrderedDict()
subjects_ref = dict()
timetables = OrderedDict()
for sem in ui.num_sections:
if ui.num_sections[sem] > 0:
subjects[sem] = OrderedDict()
subjects_ref[sem] = dict()
timetables[sem] = OrderedDict()
for section in ui.sections[sem]:
subjects[sem][section] = []
subjects_ref[sem][section] = dict()
timetables[sem][section] = timetable(sem + ' ' + section)
timetables[sem][section].dept = ui.department
for sem in ui.subjects_assigned:
for section in ui.subjects_assigned[sem]:
for sub in ui.subjects_assigned[sem][section]:
sub_long, sub_short, staff = sub.split(' - ')
staff = staff.split(', ')
sub = ui.subs[sub_short]
if ui.subs[sub_short].lab == False:
staff = staff[0]
faculty[staff].workload += sub.credits
s = [sub_long, sub.credits, staff, sub_short]
subjects[sem][section].append(s)
subjects_ref[sem][section][sub_short] = s
for sem in ui.section_fixed_slots:
for section in ui.section_fixed_slots[sem]:
for row in ui.section_fixed_slots[sem][section]:
for col in ui.section_fixed_slots[sem][section][row]:
sub_short = ui.section_fixed_slots[sem][section][row][col]
day = ('monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday')[row]
hour = col+1
if sub_short == '-':
timetables[sem][section].final[day][hour] = True
else:
sub_short = sub_short.split('/')
if len(sub_short) > 1: # if it's an elective, this list will have more than 1 subject
subs = []
for s in sub_short:
if s in subjects_ref[sem][section]:
subs.append(subjects_ref[sem][section][s])
sub_short = '/'.join(sub_short)
finalize_elective(timetables[sem][section], day, hour, subs, sub_short)
else: # not elective
short = sub_short[0]
sub = subjects_ref[sem][section][short]
if ui.subs[short].lab == True:
finalize_lab(timetables[sem][section], day, hour, sub, 1)
else:
finalize_theory(timetables[sem][section], day, hour, sub, 1)
print_timetable(timetables[sem][section], location)
for staff in ui.faculty_fixed_slots:
for row in ui.faculty_fixed_slots[staff]:
for column in ui.faculty_fixed_slots[staff][row]:
day = ('monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday')[row]
hour = column+1
free_faculty(faculty[staff], hour, day)
logger.info('...generating...')
for sem in timetables:
for section in timetables[sem]:
generate(timetables[sem][section], subjects[sem][section], faculty, location)
print_timetable(timetables[sem][section], location)
for teacher in faculty:
faculty[teacher].calc_workload()
logger.info('...adjusting clashes...')
adjust_clash(timetables, location, faculty)
adjust_clash(timetables, location, faculty)
for sem in timetables:
for section in timetables[sem]:
utilize_free_hours(timetables[sem][section], faculty)
print_timetable(timetables[sem][section], location)
print_dayclash(location)
return timetables, faculty, dayclash
if __name__ == '__main__':
dayclash = deque()
clash = deque()
foura = timetable('4A')
fourb = timetable('4B')
fourc = timetable('4C')
fourd = timetable('4D')
sixa = timetable('6A')
sixb = timetable('6B')
sixc = timetable('6C')
sixd = timetable('6D')
eighta = timetable('8A')
eightb = timetable('8B')
eightc = timetable('8C')
eightd = timetable('8D')
logger = logging.getLogger('tt_algo')
location = os.path.realpath(os.curdir) + '\example.log' #change this string to create log when running tt.py as a standalone script
logging.basicConfig(filename = location, level = logging.INFO)
logger.info('Current Directory: %s', os.path.realpath(os.curdir))
# fixed slots
# maths- A
finalize_theory(foura, 'monday', 2, subjects['4A'][0])
finalize_theory(foura, 'tuesday', 6, subjects['4A'][0])
finalize_theory(foura, 'thursday', 4, subjects['4A'][0])
finalize_theory(foura, 'saturday', 3, subjects['4A'][0])
# labs- A
finalize_lab(foura, 'wednesday', 2, subjects['4A'][6])
finalize_lab(foura, 'friday', 6, subjects['4A'][6])
# ESC - A
finalize_theory(foura, 'monday', 3, subjects['4A'][7], hours=2)
# maths - B
finalize_theory(fourb, 'tuesday', 4, subjects['4B'][0])
finalize_theory(fourb, 'wednesday', 6, subjects['4B'][0])
finalize_theory(fourb, 'thursday', 1, subjects['4B'][0])
finalize_theory(fourb, 'saturday', 1, subjects['4B'][0])
# labs - B
finalize_lab(fourb, 'monday', 6, subjects['4B'][6])
finalize_lab(fourb, 'friday', 2, subjects['4B'][6])
# ESC - B
finalize_theory(fourb, 'wednesday', 3, subjects['4B'][7], hours=2)
# maths - C
finalize_theory(fourc, 'monday', 6, subjects['4C'][0])
finalize_theory(fourc, 'tuesday', 4, subjects['4C'][0])
finalize_theory(fourc, 'wednesday', 6, subjects['4C'][0])
finalize_theory(fourc, 'thursday', 2, subjects['4C'][0])
# labs - C
finalize_lab(fourc, 'tuesday', 6, subjects['4C'][6])
finalize_lab(fourc, 'saturday', 1, subjects['4C'][6])
# ESC - C
finalize_theory(fourc, 'wednesday', 7, subjects['4C'][7], hours=2)
# maths - D
finalize_theory(fourd, 'monday', 6, subjects['4D'][0])
finalize_theory(fourd, 'tuesday', 6, subjects['4D'][0])
finalize_theory(fourd, 'thursday', 3, subjects['4D'][0])
finalize_theory(fourd, 'friday', 4, subjects['4D'][0])
# labs - D
finalize_lab(fourd, 'tuesday', 2, subjects['4D'][6])
finalize_lab(fourd, 'wednesday', 6, subjects['4D'][6])
# ESC - D
finalize_theory(fourd, 'friday', 7, subjects['4D'][7], hours=2)
# department constraints
for section in foura, fourb, fourc, fourd, sixa, sixb, sixc, sixd, eighta, eightb, eightc, eightd:
for day in 'monday', 'tuesday', 'wednesday', 'thursday', 'friday':
section.final[day][5] = True # lunch break
section.final['saturday'][4] = True # saturday
for hour in 6,7,8: # thursday afternoon
section.final['thursday'][hour] = True
# faculty constraints
'''
free_faculty(faculty['Mr. Venugopala P S'], 1)
free_faculty(faculty['Mr. Radhakrishna Dodmane'], 8)
free_faculty(faculty['Dr. Uday Kumar Shenoy'], 1)
free_faculty(faculty['Dr. K R Uday Kumar Reddy'], time = 'all', day = 'saturday')
'''
# 6th sem lab
# CG/CN
finalize_lab(sixa, 'monday', 2, subjects['6A'][7])
finalize_lab(sixa, 'wednesday', 2, subjects['6A'][7])
finalize_lab(sixb, 'tuesday', 1, subjects['6B'][7])
finalize_lab(sixb, 'friday', 1, subjects['6B'][7])
finalize_lab(sixc, 'tuesday', 6, subjects['6C'][7])
finalize_lab(sixc, 'friday', 6, subjects['6C'][7])
finalize_lab(sixd, 'monday', 6, subjects['6D'][7])
finalize_lab(sixd, 'wednesday', 6, subjects['6D'][7])
# JIT
finalize_lab(sixa, 'tuesday', 6, subjects['6A'][8])
finalize_lab(sixa, 'friday', 6, subjects['6A'][8])
finalize_lab(sixb, 'monday', 6, subjects['6B'][8])
finalize_lab(sixb, 'wednesday', 6, subjects['6B'][8])
finalize_lab(sixc, 'monday', 1, subjects['6C'][8])
finalize_lab(sixc, 'wednesday', 1, subjects['6C'][8])
finalize_lab(sixd, 'tuesday', 1, subjects['6D'][8])
finalize_lab(sixd, 'friday', 1, subjects['6D'][8])
# 6th sem OE
# CCIM/MBD
finalize_theory(sixa, 'tuesday', 4, subjects['6A'][4])
finalize_theory(sixa, 'thursday', 2, subjects['6A'][4])
finalize_theory(sixa, 'saturday', 2, subjects['6A'][4])
finalize_theory(sixb, 'tuesday', 4, subjects['6B'][4])
finalize_theory(sixb, 'thursday', 2, subjects['6B'][4])
finalize_theory(sixb, 'saturday', 2, subjects['6B'][4])
finalize_theory(sixc, 'tuesday', 4, subjects['6C'][4])
finalize_theory(sixc, 'thursday', 2, subjects['6C'][4])
finalize_theory(sixc, 'saturday', 2, subjects['6C'][4])
finalize_theory(sixd, 'tuesday', 4, subjects['6D'][4])
finalize_theory(sixd, 'thursday', 2, subjects['6D'][4])
finalize_theory(sixd, 'saturday', 2, subjects['6D'][4])
# MCC/MCAP
finalize_theory(sixa, 'thursday', 3, subjects['6A'][5])
finalize_theory(sixa, 'friday', 4, subjects['6A'][5])
finalize_theory(sixa, 'saturday', 1, subjects['6A'][5])
finalize_theory(sixb, 'thursday', 3, subjects['6B'][5])
finalize_theory(sixb, 'friday', 4, subjects['6B'][5])
finalize_theory(sixb, 'saturday', 1, subjects['6B'][5])
finalize_theory(sixc, 'thursday', 3, subjects['6C'][5])
finalize_theory(sixc, 'friday', 4, subjects['6C'][5])
finalize_theory(sixc, 'saturday', 1, subjects['6C'][5])
finalize_theory(sixd, 'thursday', 3, subjects['6D'][5])
finalize_theory(sixd, 'friday', 4, subjects['6D'][5])
finalize_theory(sixd, 'saturday', 1, subjects['6D'][5])
'''
print_timetable(foura)
print_timetable(fourb)
print_timetable(fourc)
print_timetable(fourd)
'''
logger.info('... generating ...')
generate(sixa, subjects['6A'], faculty, location)
generate(sixb, subjects['6B'], faculty, location)
generate(sixc, subjects['6C'], faculty, location)
generate(sixd, subjects['6D'], faculty, location)
generate(foura, subjects['4A'], faculty, location)
generate(fourb, subjects['4B'], faculty, location)
generate(fourc, subjects['4C'], faculty, location)
generate(fourd, subjects['4D'], faculty, location)
'''
generate(eighta, subjects['8A'], faculty)
generate(eightb, subjects['8B'], faculty)
generate(eightc, subjects['8C'], faculty)
generate(eightd, subjects['8D'], faculty)
print_timetable(foura)
print_timetable(fourb)
print_timetable(fourc)
print_timetable(fourd)
print_timetable(eighta)
print_timetable(eightb)
print_timetable(eightc)
print_timetable(eightd)
print_timetable(sixa)
print_timetable(sixb)
print_timetable(sixc)
print_timetable(sixd)
'''
logger.info('... adjusting clashes ...')
timetables = OrderedDict({
'VI': OrderedDict({
'A': sixa,
'B': sixb,
'C': sixc,
'D': sixd
}),
'IV': OrderedDict({
'A': foura,
'B': fourb,
'C': fourc,
'D': fourd
})
# }),
# 'VIII': OrderedDict({
# 'A': eighta,
# 'B': eightb,
# 'C': eightc,
# 'D': eightd
# })
})
for sec in subjects:
for _, hours, name, _ in subjects[sec]:
if hours != 0:
faculty[name].workload += hours
for name in faculty:
faculty[name].calc_workload()
adjust_clash(timetables, location, faculty=faculty)
print_dayclash(location)
logger.info('... 2nd pass ...')
adjust_clash(timetables, location, faculty=faculty)
print_dayclash(location)
for sem in timetables:
for section in timetables[sem]:
utilize_free_hours(timetables[sem][section], faculty)
print_timetable(foura, location)
print_timetable(fourb, location)
print_timetable(fourc, location)
print_timetable(fourd, location)
print_timetable(sixa, location)
print_timetable(sixb, location)
print_timetable(sixc, location)
print_timetable(sixd, location)
print_timetable(faculty['Mr. Venugopala P S'], location, style = 'staff', name = 'Mr. Venugopal')
#print_timetable(faculty['Mr. Ramesha Shettigar'], style = 'staff', name = 'Mr. RS')
#print_timetable(faculty['Mr. Pradeep Nazareth'], style = 'staff', name = 'Mr. Pradeep')