Automatic Class Routine and Timetable Generator for Schools and Colleges in Bangladesh

Generate clash-free class routines from teachers, subjects, rooms and periods in seconds. A worked Class 9 Science example.

Toripe Team · · 5 min read

Hand writing on a large planning calendar on a desk

Key takeaways

  • A routine is a constraint problem: every period needs one teacher, one room and one section, with no double booking.
  • Prepare four inputs: periods per subject per week, teacher subjects and loads, rooms and labs, and fixed slots.
  • Add fairness rules, such as a maximum number of periods in a row for any teacher.
  • When something changes, update the input and regenerate. Do not patch the grid by hand.
  • Tori builds clash-free routines for every section from your teacher and room limits.

A timetable generator builds the school's class routine automatically from a few inputs: the sections, how many periods each subject needs per week, which teachers teach which subjects and how many periods they can take, and which rooms and labs are available. It then places every period so that no teacher, room or section is booked twice. With AI, a routine that takes a senior teacher several days by hand is produced in minutes, and rebuilt just as quickly when a teacher leaves.

Every January, someone in the school spends days with a large chart, a pencil and an eraser building the routine. By March a teacher has left or a section has been added, and the work starts again. This guide explains what a routine generator needs from you, works through a weekly period plan, lists the rules that make a routine fair to teachers, and shows how AI builds it.

Disclosure: this guide is published by Toripe, a school management software company with a built-in AI assistant called Tori. Toripe's features are used as examples.

Why routines are hard

A school with 24 sections, 8 periods a day and 6 days has 1,152 slots. Each must have the right subject, a teacher who is free and qualified, and a suitable room. A teacher who teaches mathematics to six sections must appear in six different places at six different times. Labs can hold one section at a time. Two-shift schools share rooms between shifts. One change can break dozens of other slots. That is why hand-built routines take so long, and why they often have hidden clashes.

The four inputs

1. Periods per subject per week

Example for a Class 9 Science section with 8 periods a day over 6 days (48 periods):

  • Bangla (1st and 2nd paper): 6
  • English (1st and 2nd paper): 6
  • Mathematics: 6
  • Physics: 5
  • Chemistry: 5
  • Biology or Higher Mathematics: 5
  • Religion: 3
  • ICT: 3
  • Bangladesh and Global Studies: 3
  • Physical education and health: 2
  • Practicals (lab double periods): 4
  • Total: 48

Your numbers will follow your curriculum and the board's guidance. The total must match the periods available.

2. Teachers, subjects and loads

For each teacher: the subjects and sections they teach, the maximum periods per day and per week, and any days or periods they are not available, such as part-time teachers.

3. Rooms and labs

Each section's home room, and shared rooms such as the physics, chemistry and biology labs, the ICT lab and the playground.

4. Fixed slots

Assembly, tiffin break, Friday or Saturday half-days, and any periods that must be fixed, such as a religion period at the same time for all sections.

Rules that make a routine fair

  • No teacher teaches more than three or four periods in a row.
  • Each teacher gets at least one free period a day.
  • Heavy subjects such as mathematics are spread across the week, not bunched on one day.
  • Practicals are scheduled as double periods in the lab.
  • Each section has the same subject at different times on different days, so one absent day does not miss the same subject every week.

Building the routine with AI

Tori, the AI assistant in Toripe, has a campus routine generator that builds clash-free class routines for every section from your teacher and room limits. The process:

  1. Enter or import sections, subjects, periods per week, teachers and rooms.
  2. Add fixed slots and fairness rules.
  3. Ask Tori to generate the routine.
  4. Review it section by section and teacher by teacher.
  5. Lock any periods you want to keep, change a rule if needed, and regenerate.
  6. Publish the routine to teacher and student logins and print it.

When something changes

A teacher leaves, a new section opens, or the lab is closed for repair. Update the input, keep the periods you want fixed, and regenerate. This takes minutes and avoids the usual chain of hand edits that leaves hidden clashes.

Routines and the rest of the system

When the routine is in the same system as staff attendance, the principal can see which periods need cover on a day a teacher is absent. Absent staff already appear on Tori's daily principal action list. Read our buyer's guide for how routines connect to attendance and exams.

Related guides: AI in school management, reducing teacher workload, college management software.

Next step

Fill in the four inputs for your school: periods per subject, teacher loads, rooms and fixed slots. Then book a live demo and ask Tori to build your routine from them.

Frequently asked questions

What is a school timetable generator?

Software that builds the class routine automatically from subjects, periods, teachers and rooms, with no teacher, room or section booked twice.

Can AI make a class routine?

Yes. Tori builds clash-free class routines for every section from your teacher and room limits.

How long does it take to generate a routine?

Once the inputs are ready, minutes. Preparing the inputs the first time takes longer, usually a few hours.

Can the routine handle labs and practicals?

Yes, if labs are entered as rooms and practicals as double periods that need a lab.

Can it handle two shifts?

Yes. Enter the shift for each section and teacher, and which rooms are shared, and the generator schedules both.

Which Toripe plan includes the routine generator?

The routine generator is part of Tori AI, included from the Standard plan upward. See the pricing page.