Each employee of MegaCorp has a separate office in the MegaCorp office building. Each office is equipped with one overhead light and one toggle switch to turn the light on and off.Every day, the employees turn on all lights when they come to work. Each evening they turn off all lights when they go home.One day, the employees arrive to discover that someone has played a rather elaborate hoax on them. Though all looks fine when they come in (all lights are off), every time an employee flicks the switch in her office, this not only toggles the light in her office, but also the lights in the offices of all of her friends. (Friendship is a symmetric relationship.)The question: does there necessarily exist an arrangement of the switches that will turn all lights simultaneously on (so that work can begin)? Prove your answer.
把开记为 1, 关记为 0, 下面在 2 元域 下考虑. 如果你不知道 2 元域, 那么只要考虑 1 + 1 = 0, 其余加法和乘法运算的形式和实数域上相同 (事实上, XOR 就是 2 元域上的加法).
设有 位员工, 第 号员工的开关对应列向量 , 其中 意为他的开关与第 号员工的灯泡相连, . 所以我们要找 , 其中 表示第 号员工按下开关, 使得 . 记 , 我们要求 .
事实上, 可以证明更一般的结论, 在 下, 对任意对称阵 , 记 , 则存在 , 使得 .
证明. 要证 . 即对任意 , 成立 .
事实上,
即得.
注:
2 元域条件不能去掉. 考虑
矩阵对称条件不能去掉. 考虑
不能是任意向量. 考虑
P.S. 写完后查了查, 才发现 Matrix67 也写过这道题, 链接.
No comments:
Post a Comment