Open Nickleaton opened 1 month ago
https://www.youtube.com/watch?v=WarP4v8RraA
Add variables for each cell. Region[row, column, region]
If there's a wall between two cells, then we can constrain to different areas that for all regions, sum of the region variables is <=1 That is they must be in different regions.
Sum of the values by region must be equal to 9
Connected see Spanning Tree idea.
https://www.youtube.com/watch?v=WarP4v8RraA
Add variables for each cell. Region[row, column, region]
If there's a wall between two cells, then we can constrain to different areas that for all regions, sum of the region variables is <=1
That is they must be in different regions.
Sum of the values by region must be equal to 9
Connected see Spanning Tree idea.