跳到正文

学习·文化课

数学题

ReLU约 6 分钟
原文

这是 2026年9月19日 存档的第 2 版,不是当前版本。查看当前版本

文章信息与版本

文章信息

发布
2026年9月19日
收录
2026年9月19日
更新
2026年10月10日
篇幅
约 6 分钟
获赞
1

版本

  1. v4当前
  2. v3
  3. v2
  4. v1

题目来源:某神秘班级数学开学考压轴题。

约定记号

  • popcnt(s)⁡\operatorname{popcnt(s)}:01 串 ss 中 1 的个数
  • 对于 01 串 s,ts,t:s⊆t⟺sand⁡t=ss\subseteq t\Longleftrightarrow s\operatorname{and} t=s

题目

给定正整数 n≥5n\ge 5,设所有长度为 nn 的 01 串集合为 UU。设 A⊆UA\subseteq U,如果 AA 同时满足:

  • ∀a∈A,popcnt⁡(a)=4\forall a\in A,\operatorname{popcnt}(a)=4
  • ∀b∈{u∈U∣popcnt⁡(u)=2},∃a∈A,b⊆a\forall b\in \{u\in U|\operatorname{popcnt}(u)=2\},\exists a\in A,b\subseteq a 则称 AA 具有性质 PP。

Subtask 1

当 n=8n=8 时若集合 AA 具有性质 PP,求 AA 中元素个数最小值。

我们尝试先证一个足够紧的下界,然后构造出下界。

注意到 11 个 aa 最多覆盖 C42=6C_4^2=6 个 bb,共 C82=28C_8^2=28 种 bb。得到下界 ⌈28/6⌉=5\lceil28/6\rceil=5。

这还不够紧。我们考虑维护一个初始为 00 的数组 cntcnt。每当一个 bb 被一个 aa 覆盖就在两个为 11 位置上各 +1+1。

每个 bb 至少被覆盖一次,最后 cntcnt 至少是 (7,7,7,7,7,7,7,7)(7,7,7,7,7,7,7,7)。

注意到每个 aa 都会在对应 44 个位置各 +3+3。因此最终 cntcnt 数组至少是 (9,9,9,9,9,9,9,9)(9,9,9,9,9,9,9,9),考虑总和得到下界 ⌈72/12⌉=6\lceil72/12\rceil=6。

给出一组构造:

A0={11110000,00001111,11001100,11000011,00111100,00110011}A_0=\left\{ \begin{aligned} &\texttt{11110000},\\ &\texttt{00001111},\\ &\texttt{11001100},\\ &\texttt{11000011},\\ &\texttt{00111100},\\ &\texttt{00110011} \end{aligned} \right\}

可以看成用 66 个 44 阶完全图覆盖 88 阶完全图。

可以看成是 88 个维度两两分组,然后 44 个组两两连边。

Subtask 2

设 σ\sigma 为一个 1∼81\sim 8 的排列。对于任意长 88 的 01 串 s=s1s2…s8s=s_1s_2\dots s_8,定义 σ(s)=sσ(1)sσ(2)…sσ(8)\sigma(s)=s_{\sigma(1)}s_{\sigma(2)}\dots s_{\sigma(8)}。

我们定义等价关系 ≅\cong:A1≅A2⟺∃σ,{σ(a)∣a∈A1}=A2A_1\cong A_2\Longleftrightarrow \exists \sigma, \{\sigma(a)|a\in A_1\}=A_2。不难验证自反性、对称性、传递性。

找出所有等价类。

性质 1

每个维度恰好被覆盖 33 次。

由于 cnti≥9cnt_i\ge 9,而总和 =72=72,cntcnt 数组最终一定等于 (9,9,9,9,9,9,9,9)(9,9,9,9,9,9,9,9),因此每维恰好被覆盖三次。

我们考虑反证法。

A0={11110000,10??????,10??????,00??????,0???????,0???????}A_0=\left\{ \begin{aligned} &\texttt{11110000},\\ &\texttt{10??????},\\ &\texttt{10??????},\\ &\texttt{00??????},\\ &\texttt{0???????},\\ &\texttt{0???????} \end{aligned} \right\}

性质 2

如果 AA 满足性质 PP,那么 {not⁡a∣a∈A}\{\operatorname{not} a|a\in A\} 满足性质 PP。

我们考察每个 bb 的两个 1\texttt{1} 对应的两列,必然形如:

111?1?0?0?0?\begin{aligned} &\texttt{11}\\ &\texttt{1?}\\ &\texttt{1?}\\ &\texttt{0?}\\ &\texttt{0?}\\ &\texttt{0?} \end{aligned}

由于第二列恰好有 33 个 1\texttt{1},因此一定有一行为 00\texttt{00},取反后变成 11\texttt{11}。证毕。

目前已知等价类

还没写程序暴力枚举

A0={11110000,00001111,11001100,11000011,00111100,00110011},A1={11110000,00001111,11001100,10100011,00111100,01010011},A2={11110000,11001100,11000011,00101011,00011110,00110101}A_0=\left\{ \begin{aligned} &\texttt{11110000},\\ &\texttt{00001111},\\ &\texttt{11001100},\\ &\texttt{11000011},\\ &\texttt{00111100},\\ &\texttt{00110011} \end{aligned} \right\}, A_1=\left\{ \begin{aligned} &\texttt{11110000},\\ &\texttt{00001111},\\ &\texttt{11001100},\\ &\texttt{10100011},\\ &\texttt{00111100},\\ &\texttt{01010011} \end{aligned} \right\}, A_2=\left\{ \begin{aligned} &\texttt{11110000},\\ &\texttt{11001100},\\ &\texttt{11000011},\\ &\texttt{00101011},\\ &\texttt{00011110},\\ &\texttt{00110101} \end{aligned} \right\}

其他问题

  1. 对于 nn 阶完全图 KnK_n,用 Km(m≤n)K_m (m\le n) 对其进行边覆盖,求出至少需要多少 KmK_m 以及所有同构方案
  2. 对于 n∗mn*m 的 01 矩阵,如果行无序,列无序,求出所有等价类
  3. 对于对于 n∗mn*m 的任意矩阵,找出一种哈希方法对行无序,列无序