1. First, put the most difficult teacher on the list, that is to say, she teaches many classes and has many restrictions. The actual operation of this step is to sort the course arrangement order according to the number of classes. )
2. Arrange classes at random (of course, according to people's habits, you can't let them have seven classes a day). The arrangement is to meet the needs of some people first (unfair, of course), and then the rest will fill in the blanks.
3. The rest of the people may have the problem of repetition because of class relations. It doesn't matter. Let's arrange them first, and change the lessons of the conflict objects layer by layer through repeated cycles (finally, we can choose teachers such as art and music, and it is best to change them in the morning if we arrange them in the afternoon).
It depends on the actual situation. . ..... I talk nonsense. This is my idea model.