内接正方形问题
内接正方形问题追问:每条简单闭曲线是否都包含一个正方形的四个顶点?在几种形状内拖动测试正方形,看它何时恰好契合。
6 分钟难度 2/3交互演示区域不展示广告。
ShapeCircleCorners on curve4 / 4FitsYes
All four corners sit on the curve — an inscribed square. For smooth curves this is always possible.
The inscribed square problem asks whether every simple closed curve contains the four corners of a square. It is proven for smooth curves and many special loops, but the general case for all Jordan curves is still open. Try to fit the square into the wobbly loop.
你看到的是什么
1
对光滑曲线答案是肯定的;对任意连续闭曲线,答案仍未知。
2
旋转并缩放候选正方形来测试每种形状,四角同时落在曲线上即为契合。
3
试试圆形、圆角三角形和一条起伏的曲线。
为什么重要
这是一个看似简单的拓扑问题。它对光滑曲线和许多特殊类型已被证明,但所有若尔当曲线的一般情形仍未解决。
复杂度与细节
每次契合测试在每个朝向上对曲线采样 O(n) 个点。
常见问题
对多边形解决了吗?+
对光滑曲线和许多特殊类型已解决,一般的若尔当曲线仍未解决。
长方形或三角形呢?+
换成其他形状的类似问题表现不同,正方形这一情形最顽固。