Generating student seating charts?
July 25, 2006 9:59 AM
Subscribe
Dear Mostly-Random-Student-Seating-Filter: Can you think of a tool (or a clever method) for regularly generating new seating assignments for students sitting at tables? Other criteria inside...
The seating assignments need to change every 2 weeks, there needs to be a mostly even mix of male/female at each table, and each table needs to have a mix of different grade levels at it. (I found a freeware program called "Seatem" but the only download I was able to get at seems to be corrupted or something - it throws an error when you start it up.) Does anyone know of another similar program, or a clever way to generate seating, given these limitations? (I'm asking for a friend, and I may not be able to get much more info than stated here.)
posted by chr1sb0y to education (10 comments total)
In C++, use the STL next_permutation and write a fitness function that "walks" each "table" (offset into permuted array) calculating sums of gender and grade level by calling STL function for_each with a summing predicate functor.
posted by orthogonality at 10:13 AM on July 25, 2006