Teacher time schedule algorithm

前端 未结 8 727
灰色年华
灰色年华 2021-01-30 00:20

This is a problem I\'ve had on my mind for a long time. Being the son of a teacher and a programmer, it occurred to me early on... but I still haven\'t found a solution for it.<

8条回答
  •  悲&欢浪女
    2021-01-30 00:50

    I think you might be missing some constraints.

    One would prefer where possible to have teachers scheduled to classes for which they are certified.

    One would suspect that the classes that are requested, and the expected headcount in each would be significant.

    I think the place to start would be to list all of your constraints, figure out a data structure to represent them.

    Then create some sort of engine to that builds a trial solution, then evaluates it for fitness according to the constraints.

    You could then throw the fun genetic algorithms part at it, and see if you can get the fitness to increase over time as the genes mix.

    Start with a small set of constraints, and increase them as you see success (if you see success)

    There might be a way to take the constraints and shoehorn them together with something like a linear programming algorithm.

    I agree. It sounds like a fun challenge

提交回复
热议问题