PUMaC 2007 · 组合(A 组) · 第 10 题
PUMaC 2007 — Combinatorics (Division A) — Problem 10
题目详情
在 棋盘上放兵,要求每个 或 长方形至少有一个兵,且每个 或 长方形至少含有一对相邻的兵。求兵的最少数量。
英文原题
Pawns are arranged on an chessboard such that every or rectangle has at least one pawn, and every or rectangle has at least one pair of adjacent pawns. What is the minimum number of pawns?
解析
第一个条件等价于:任意两个沿边相邻的格子不能同时为空。因此空格在棋盘网格图中构成独立集。
下面的构造使用 37 个兵,其中 表示有兵, 表示空格:
从这个排列可直接检查:没有相邻空格,并且任意长度为 7 的横向或纵向连续段都含有相邻的两个兵。
下界方面,逐行最大化空格数。每一行的状态必须没有相邻空格,并且已经满足两个横向长度 7 条件;相邻两行还不能在同一列同时为空。枚举这些有限行状态后,再加入两个纵向长度 7 条件,最多只能放 个空格。因此至少需要
个兵。
所以最小值为
英文解析
The first condition says no two orthogonally adjacent squares are both empty. Thus the empty squares form an independent set in the grid.
A construction with pawns is given by the following rows, where means pawn and means empty:
It is immediate from the pattern that no adjacent pair is empty, and each length- row or column segment contains adjacent 's.
To prove optimality, maximize the number of empty squares row by row. Each row mask must have no adjacent empty squares and must already satisfy the two horizontal length- conditions; consecutive row masks must have no empty square in the same column. Checking these finite row states and then imposing the two vertical length- conditions gives a maximum of empty squares. Hence at least pawns are necessary.
Therefore the minimum is