Here is an example of timetable that satisfies the Algerian conditions but produced by official FET.

I used virtual activities for students and teachers.

I used the following relation to calculate the number of virtual activities for teachers:

Nv = 20 - Mg - Nh

Nv: number of virtual(pseudo) activities

Mg: Max gaps per week

Nh: number of hours worked per week for the teacher.

Nb:Nv must be an exactly positive number. For teachers who have more than 20h (or 19h if Mg = 1) not need virtual ativities.

The virtual activities must be placed on the first morning hours or around the break time of the Lunch (Lu).

The virtual activities represent a GAPS, they must be placed in the time slots allowed by the Algerian system.

This relation may be called: relation of the GAPS.