TransWikia.com

Least number of marked symbols

Puzzling Asked by user71119 on December 12, 2020

I have a 7×7 grid, where I want to find the least amount of "marked positions" so a group of non-marked positions aren’t bigger then 4 (only moving up, down, left and right and not diagonal). Below is an example with a solution of using 19 marked symbols.

enter image description here

Can anyone come up with a solution using only 18 or less?

2 Answers

I expect this to be an optimal solution, but have no proof of that yet.

Correct answer by Jaap Scherphuis on December 12, 2020

You can solve this set covering problem via integer linear programming as follows. For each pentomino $p$, let $C_p$ be the set of (five) grid cells that comprise it. For each grid cell $(i,j)$, let binary decision variable $x_{i,j}$ indicate whether that cell is marked. The problem is to minimize $sum_{i,j} x_{i,j}$ subject to linear constraints: $$sum_{(i,j)in C_p} x_{i,j} ge 1 quad text{for all $p$}$$ The optimal values for $nin{1,dots,10}$ are begin{matrix} n & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 hline min & 0 & 0 & 3 & 5 & 8 & 13 & 17 & 24 & 31 & 39 end{matrix}

Answered by RobPratt on December 12, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP