New answers tagged algorithms
-1
votes
Recommended data structures/algorithms for checking peoples' availability schedules
A sparse matrix can model this kind of data, but it is usually not practical in a database environment and not ideal when the number of users or events is dynamic.
Sparse matrices work best when:
the ...
-1
votes
Recommended data structures/algorithms for checking peoples' availability schedules
I am not completely sure if this is applicable to your scenario a Sparse Matrix is what comes to my mind for a data structure.
I am not sure if this is usable in your scenario as
your data is stored ...
4
votes
Recommended data structures/algorithms for checking peoples' availability schedules
I've been overthinking this problem. I think there's a simple answer that is easy to implement and should perform more than adequately for your needs.
This is easily solved using Postgres. The high-...
2
votes
Recommended data structures/algorithms for checking peoples' availability schedules
Doing search service side is a very bad idea. You would have to keep assignments synchronized with DB doing error-prone cache invalidation and potentially moving significant volumes of data around.
Do ...
0
votes
Recommended data structures/algorithms for checking peoples' availability schedules
Interesting problem. My university used simulated annealing to shift lectures, rooms, times, and students around to form a schedule which they manually tweaked before publishing for the semester.
...
3
votes
Recommended data structures/algorithms for checking peoples' availability schedules
At the moment, we run through all the users, their availability slots, and their assigned events in order to determine whether they're available for a specific event.
The first thing you want to get ...
4
votes
Recommended data structures/algorithms for checking peoples' availability schedules
One way to do it is to represent each user and each event as a bit map. Essentially, each half hour corresponds to a bit, the entire day corresponding to 6 bytes, one week being 42 bytes. Regarding ...
Top 50 recent answers are included
Related Tags
algorithms × 2214data-structures × 177
java × 108
sorting × 108
design × 106
graph × 92
algorithm-analysis × 84
math × 79
c# × 78
c++ × 72
performance × 72
complexity × 69
big-o × 68
optimization × 65
python × 64
design-patterns × 58
trees × 52
database × 47
dynamic-programming × 47
strings × 46
search × 46
javascript × 41
random × 41
scheduling × 40
geometry × 39