Given the following conditions:An element has:A time range, for example: 9:00 to 18:00.A repeat time, for example: every 5 minutes.Then a device recieves some elements and has to schedule them in a 0-24h range.The device has a minimum separation time between elements, for example: 3 minutes (schedules must be separated with at least 3 minutes).    However, an element can be immediately followed by another, but it's not desirable. Let's say there's a max elements per time. Usually 2 or 3.Two elements cannot be scheduled at the same time. The repeat time of the schedules can be reduced or incremented if there's no other way to fulfill the separation time requirement, but it's not desirable.   How should the problem be pointed out? Or is there any place I can find information on how similar situations are resolved?An example: One single element:  time range: 9:00 to 18:00  time repeat: 5 minSeparation time of the device: 3 minResult: 9:00, 9:05, ..., 17:55Another example:ELEMENT A:  time range: 9:00 to 18:00  time repeat: 5 minELEMENT B:  time range: 9:00 to 18:00  time repeat: 7 minSeparation time of the device: 3 minResult:A -> 9:00, 9:06,  9:10, 9:15, 9:21, 9:25, 9:30 B ->    9:03,     9:10,   9:18,     9:25,   9:33Thank you very much.
How to schedule different elements in a 24h range?
algorithms;time complexity;scheduling