The indicated graph is where the nodes represent 3x3x1 rooms, and the vertices represent the need for proximity. How to place them in a 3D space to optimize overall proximity?
Example (randomized) data structure:
{ room1: [room2, room3], room2: [room1, room4], room3: [room5], room4: [room2, room5, room1], room5: [] }
(I'm not quite sure where I should ask this question, since it is different from most that I see on stackoverflow. I'm interested in programming solutions / heuristic algorithms.)
source share