{"id":101508,"date":"2026-09-06T23:49:14","date_gmt":"2026-09-06T15:49:14","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/101508.html"},"modified":"2026-09-06T23:49:14","modified_gmt":"2026-09-06T15:49:14","slug":"%e6%b4%9b%e8%b0%b7-p10719-gesp202406-%e4%ba%94%e7%ba%a7-%e9%bb%91%e7%99%bd%e6%a0%bc-%e6%9a%b4%e5%8a%9b%e7%be%8e%e5%ad%a6%e4%b8%8e%e5%9b%be%e5%83%8f%e5%a4%84%e7%90%86%e7%9a%84","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/101508.html","title":{"rendered":"\u6d1b\u8c37 P10719 \\\\[GESP202406 \u4e94\u7ea7] \u9ed1\u767d\u683c\u2014\u2014\u66b4\u529b\u7f8e\u5b66\u4e0e\u56fe\u50cf\u5904\u7406\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62"},"content":{"rendered":"<h2>\u6d1b\u8c37 P10719 [GESP202406 \u4e94\u7ea7] \u9ed1\u767d\u683c\u2014\u2014\u66b4\u529b\u7f8e\u5b66\u4e0e\u56fe\u50cf\u5904\u7406\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62<\/h2>\n<h4>&#x1f4cc; \u6458\u8981<\/h4>\n<p>P10719 \u7ed9\u5b9a\u4e00\u4e2a n\u00d7m \u7684 01 \u7f51\u683c&#xff0c;\u627e\u81f3\u5c11\u5305\u542b k \u4e2a\u9ed1\u683c\u7684\u6700\u5c0f\u5b50\u77e9\u5f62\u9762\u79ef\u3002n,m\u2264100&#xff0c;\u66b4\u529b\u679a\u4e3e\u6240\u6709\u77e9\u5f62 O(n\u00b2\u00d7m\u00b2) \u53ef\u4ee5\u901a\u8fc7\u3002\u672c\u6587\u5206\u6790\u4e86\u66b4\u529b\u89e3\u6cd5\u7684\u8bbe\u8ba1\u601d\u8def\u2014\u2014\u4ece\u5de6\u4e0a\u89d2\u51fa\u53d1&#xff0c;\u9010\u6b65\u6269\u5c55\u5bbd\u5ea6\u548c\u9ad8\u5ea6&#xff0c;\u9047\u5230\u6ee1\u8db3\u6761\u4ef6\u7684\u5c31\u8bb0\u5f55\u9762\u79ef\u5e76\u8df3\u51fa\u2014\u2014\u5e76\u5ef6\u4f38\u5230\u4e8c\u503c\u56fe\u50cf\u5904\u7406\u4e2d\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62&#xff08;Minimum Bounding Rectangle&#xff09;&#xff0c;\u4ece 1970 \u5e74\u4ee3\u536b\u661f\u9065\u611f\u5230\u73b0\u4ee3\u76ee\u6807\u68c0\u6d4b YOLO \u7684 bounding box&#xff0c;\u6838\u5fc3\u64cd\u4f5c\u90fd\u662f\u540c\u4e00\u4e2a&#xff1a;\u5728\u4e8c\u503c\u7f51\u683c\u4e0a\u627e\u4e00\u4e2a\u6ee1\u8db3\u6761\u4ef6\u7684\u6700\u5c0f\u77e9\u5f62\u3002<\/p>\n<p>\u9898\u76ee\u94fe\u63a5&#xff1a;P10719 \u9ed1\u767d\u683c<\/p>\n<h4>&#x1f4da; \u76ee\u5f55<\/h4>\n<ul>\n<li>\n<p>&#x1f4dd; \u524d\u8a00<\/p>\n<\/li>\n<li>\n<p>&#x1f50d; \u9898\u76ee\u5728\u8003\u4ec0\u4e48<\/p>\n<\/li>\n<li>\n<p>&#x1f4a1; \u601d\u8def<\/p>\n<\/li>\n<li>\n<p>&#x1f4dd; \u4f2a\u4ee3\u7801<\/p>\n<\/li>\n<li>\n<p>&#x1f3af; \u5173\u952e\u70b9<\/p>\n<\/li>\n<li>\n<p>\u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879<\/p>\n<\/li>\n<li>\n<p>&#x1f333; \u5ef6\u4f38&#xff1a;\u4ece\u9ed1\u767d\u683c\u5230\u76ee\u6807\u68c0\u6d4b\u2014\u2014\u6700\u5c0f\u5916\u63a5\u77e9\u5f62\u7684\u6545\u4e8b<\/p>\n<ul>\n<li>\n<p>&#x1f5bc;\ufe0f \u4e8c\u503c\u56fe\u50cf&#xff1a;\u6700\u7b80\u5355\u7684\u56fe\u50cf<\/p>\n<\/li>\n<li>\n<p>&#x1f4d0; \u6700\u5c0f\u5916\u63a5\u77e9\u5f62&#xff1a;1970 \u5e74\u4ee3\u7684\u536b\u661f\u773c\u775b<\/p>\n<\/li>\n<li>\n<p>&#x1f50d; \u76ee\u6807\u68c0\u6d4b&#xff1a;\u4ece\u6ed1\u52a8\u7a97\u53e3\u5230 YOLO<\/p>\n<\/li>\n<li>\n<p>&#x1f4ca; \u524d\u7f00\u548c&#xff1a;\u4ece\u66b4\u529b\u5230\u9ad8\u6548<\/p>\n<\/li>\n<li>\n<p>&#x1f5fa;\ufe0f \u5730\u7406\u4fe1\u606f\u7cfb\u7edf&#xff1a;\u6805\u683c\u6570\u636e\u65e0\u5904\u4e0d\u5728<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>&#x1f4da; \u5ef6\u4f38\u9605\u8bfb\u6587\u732e<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>&#x1f4dd; \u524d\u8a00<\/h3>\n<p>\u8fd9\u7bc7\u9898\u89e3\u6ca1\u6709\u6e90\u4ee3\u7801&#xff0c;\u53ea\u6709\u4f2a\u4ee3\u7801\u3002<\/p>\n<p>\u4f5c\u4e3a\u4e00\u540d\u4fe1\u5965\u6559\u7ec3&#xff0c;\u6211\u4e0d\u63d0\u5021\u590d\u5236\u7c98\u8d34\u3002\u6211\u89c1\u8fc7\u592a\u591a\u5b66\u751f\u641c\u5230\u9898\u89e3\u3001\u590d\u5236\u3001\u7c98\u8d34\u3001\u63d0\u4ea4\u3001AC\u2014\u2014\u4ee3\u7801\u8dd1\u901a\u4e86&#xff0c;\u8111\u5b50\u6ca1\u8dd1\u901a\u3002\u4e0b\u6b21\u9047\u5230\u53d8\u4f53\u9898&#xff0c;\u8fd8\u662f\u4e0d\u4f1a\u3002<\/p>\n<p>\u4f2a\u4ee3\u7801\u5265\u6389\u4e86\u8bed\u8a00\u7684\u58f3&#xff0c;\u53ea\u7559\u7b97\u6cd5\u7684\u9aa8\u67b6\u3002\u4f60\u770b\u4e0d\u5230 #include&#xff0c;\u770b\u4e0d\u5230 cin\u3001cout&#xff0c;\u770b\u4e0d\u5230\u90a3\u4e9b\u8ba9\u4f60\u4ee5\u4e3a&#034;\u6211\u4f1a\u4e86&#034;\u7684\u8bed\u6cd5\u7ec6\u8282\u3002\u4f60\u80fd\u770b\u5230\u7684\u53ea\u6709&#xff1a;\u8fd9\u4e00\u6b65\u505a\u4ec0\u4e48\u3001\u4e0b\u4e00\u6b65\u505a\u4ec0\u4e48\u3001\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u505a\u3002<\/p>\n<p>\u5982\u679c\u4f60\u662f\u8def\u8fc7\u7684\u53cb\u53cb&#xff0c;\u5df2\u7ecf\u5728\u8fd9\u9053\u9898\u4e0a\u6323\u624e\u4e86\u5f88\u4e45\u2014\u2014\u5148\u53bb\u559d\u676f\u6c34&#xff0c;\u56de\u6765\u91cd\u65b0\u770b\u770b\u81ea\u5df1\u5361\u5728\u54ea\u4e00\u6b65\u3002\u662f\u6ca1\u8bfb\u61c2\u9898\u610f&#xff1f;\u662f\u601d\u8def\u65b9\u5411\u504f\u4e86&#xff1f;\u8fd8\u662f\u4ee3\u7801\u6709 bug \u4f46\u903b\u8f91\u5176\u5b9e\u5bf9&#xff1f;\u5927\u591a\u6570\u65f6\u5019\u4e0d\u662f\u4e0d\u4f1a&#xff0c;\u662f\u8d70\u504f\u4e86\u3002\u504f\u4e86\u4e0d\u53ef\u6015&#xff0c;\u53ef\u6015\u7684\u662f\u504f\u4e86\u4e4b\u540e\u76f4\u63a5\u653e\u5f03&#xff0c;\u53bb\u6284\u4e00\u4efd\u80fd AC \u7684\u4ee3\u7801\u3002\u6284\u5b8c\u4f60\u4ee5\u4e3a\u4f60\u61c2\u4e86&#xff0c;\u5176\u5b9e\u4f60\u53ea\u662f\u642c\u4e86\u522b\u4eba\u7684\u7ed3\u8bba\u3002<\/p>\n<p>\u9664\u975e\u4f60\u65f6\u95f4\u771f\u7684\u7d27\u5f20\u2014\u2014\u6bd4\u8d5b\u4e34\u8fd1\u3001\u4f5c\u4e1a\u8981\u4ea4\u2014\u2014\u90a3\u79cd\u60c5\u51b5\u5148 AC \u518d\u8bf4&#xff0c;\u80fd\u7406\u89e3\u3002\u4f46\u5e73\u65f6\u7ec3\u4e60&#xff0c;\u7ed9\u81ea\u5df1\u4e00\u70b9\u8010\u5fc3\u3002\u5148\u81ea\u5df1\u60f3\u3001\u81ea\u5df1\u5199\u3001\u81ea\u5df1\u8c03&#xff0c;\u8dd1\u4e0d\u8fc7\u4e86\u518d\u6765\u770b\u4f2a\u4ee3\u7801&#xff1a;\u4f60\u7684\u601d\u8def\u548c\u8fd9\u91cc\u5dee\u5728\u54ea\u4e00\u6b65\u3002\u90a3\u4e00\u6b65&#xff0c;\u5c31\u662f\u4f60\u771f\u6b63\u5b66\u5230\u7684\u4e1c\u897f\u3002<\/p>\n<hr \/>\n<h3>&#x1f50d; \u9898\u76ee\u5728\u8003\u4ec0\u4e48<\/h3>\n<p>\u7ed9\u5b9a n\u00d7m \u7684 01 \u7f51\u683c&#xff08;0&#061;\u767d&#xff0c;1&#061;\u9ed1&#xff09;&#xff0c;\u627e\u81f3\u5c11\u5305\u542b k \u4e2a 1 \u7684\u6700\u5c0f\u9762\u79ef\u5b50\u77e9\u5f62\u3002<\/p>\n<table>\n<tr>\u53c2\u6570\u8303\u56f4<\/tr>\n<tbody>\n<tr>\n<td>n, m<\/td>\n<td>\u2264100<\/td>\n<\/tr>\n<tr>\n<td>k<\/td>\n<td>\u2264n\u00d7m<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>n,m\u2264100 \u610f\u5473\u7740&#xff1a;\u77e9\u5f62\u6570\u91cf\u6700\u591a C(100,2)\u00d7C(100,2) \u2248 2.5\u00d710\u2077 \u4e2a&#xff0c;\u66b4\u529b\u679a\u4e3e\u6240\u6709\u77e9\u5f62\u5728 1 \u79d2\u5185\u53ef\u884c\u3002<\/p>\n<p>\u6838\u5fc3\u662f\u77e9\u5f62\u679a\u4e3e &#043; \u8ba1\u6570&#xff1a;\u600e\u4e48\u904d\u5386\u6240\u6709\u53ef\u80fd\u7684\u77e9\u5f62&#xff0c;\u600e\u4e48\u9ad8\u6548\u8ba1\u7b97\u6bcf\u4e2a\u77e9\u5f62\u5185 1 \u7684\u4e2a\u6570\u3002<\/p>\n<hr \/>\n<h3>&#x1f4a1; \u601d\u8def<\/h3>\n<p>\u66b4\u529b\u505a\u6cd5&#xff1a;\u679a\u4e3e\u6240\u6709\u5b50\u77e9\u5f62\u7684\u5de6\u4e0a\u89d2 (y, x) \u548c\u5bbd\u9ad8&#xff0c;\u9010\u4e2a\u626b\u63cf\u77e9\u5f62\u5185\u7684\u683c\u5b50\u6570 1 \u7684\u4e2a\u6570&#xff0c;\u6ee1\u8db3 \u2265k \u5c31\u8bb0\u5f55\u9762\u79ef&#xff0c;\u53d6\u6700\u5c0f\u503c\u3002<\/p>\n<p>\u539f\u59cb\u4ee3\u7801\u7684\u679a\u4e3e\u7b56\u7565\u6bd4\u8f83\u7279\u522b\u2014\u2014\u4e0d\u662f\u6807\u51c6\u7684&#034;\u56db\u91cd\u5faa\u73af\u679a\u4e3e\u5de6\u4e0a\u53f3\u4e0b&#034;&#xff0c;\u800c\u662f\u6e10\u8fdb\u6269\u5c55\u5bbd\u5ea6&#xff1a;<\/p>\n<li>\u56fa\u5b9a\u8d77\u59cb\u884c y<\/li>\n<li>\u4ece x&#061;0 \u5f00\u59cb&#xff0c;\u521d\u59cb\u5bbd\u5ea6 end_x&#061;1<\/li>\n<li>\u5bf9\u4e8e\u5f53\u524d (y, x, end_x)&#xff0c;\u9010\u884c\u5411\u4e0b\u626b\u63cf&#xff0c;\u7d2f\u52a0 1 \u7684\u4e2a\u6570<\/li>\n<li>\u4e00\u65e6 1 \u7684\u4e2a\u6570 \u2265k&#xff0c;\u8bb0\u5f55\u9762\u79ef &#061; end_x \u00d7 \u884c\u6570&#xff0c;\u8df3\u51fa<\/li>\n<li>\u5bbd\u5ea6 end_x&#043;&#043;&#xff0c;\u56de\u5230\u540c\u4e00 x \u91cd\u8bd5&#xff08;x&#8211; \u8ba9 for \u5faa\u73af\u4e0d\u524d\u8fdb&#xff09;<\/li>\n<li>\u5f53\u5bbd\u5ea6\u6269\u5c55\u5230 m-x&#xff08;\u5230\u8fbe\u53f3\u8fb9\u754c&#xff09;&#xff0c;\u91cd\u7f6e end_x&#061;1&#xff0c;\u79fb\u5230\u4e0b\u4e00\u4e2a x<\/li>\n<p>\u8fd9\u4e2a\u7b56\u7565\u7684\u7279\u70b9\u662f\u5bbd\u5ea6\u4f18\u5148\u6269\u5c55\u2014\u2014\u5bf9\u6bcf\u4e2a\u8d77\u59cb\u4f4d\u7f6e&#xff0c;\u5148\u8bd5\u7a84\u77e9\u5f62&#xff08;\u5bbd\u5ea6 1&#xff09;&#xff0c;\u4e0d\u591f\u5c31\u52a0\u5bbd&#xff0c;\u627e\u5230\u7b2c\u4e00\u4e2a\u6ee1\u8db3\u6761\u4ef6\u7684\u5c31\u8bb0\u5f55\u3002\u56e0\u4e3a\u9762\u79ef &#061; \u5bbd\u00d7\u9ad8&#xff0c;\u7a84\u77e9\u5f62\u5982\u679c\u884c\u6570\u5c11&#xff0c;\u9762\u79ef\u53ef\u80fd\u66f4\u5c0f&#xff0c;\u6240\u4ee5\u5148\u8bd5\u7a84\u7684\u6709\u9053\u7406\u3002<\/p>\n<p>\u66f4\u6807\u51c6\u7684\u66b4\u529b\u5199\u6cd5&#xff1a;\u56db\u91cd\u5faa\u73af\u679a\u4e3e\u5de6\u4e0a\u89d2 (r1,c1) \u548c\u53f3\u4e0b\u89d2 (r2,c2)&#xff0c;\u5bf9\u6bcf\u4e2a\u77e9\u5f62\u6570 1 \u7684\u4e2a\u6570\u3002\u590d\u6742\u5ea6 O(n\u00b2\u00d7m\u00b2\u00d7nm)\u2014\u2014\u592a\u6162\u3002\u52a0\u4e0a\u524d\u7f00\u548c\u4f18\u5316\u5230 O(n\u00b2\u00d7m\u00b2)\u2014\u2014\u53ef\u884c\u3002<\/p>\n<h4>&#x1f4dd; \u4f2a\u4ee3\u7801<\/h4>\n<p>\u539f\u59cb\u4ee3\u7801\u7684\u66b4\u529b\u7248\u672c&#xff08;\u6e10\u8fdb\u6269\u5c55\u5bbd\u5ea6&#xff09;&#xff1a;<\/p>\n<p>\u8bfb\u53d6 n, m, k<br \/>\n\u8bfb\u53d6\u7f51\u683c grid[0..n-1][0..m-1]     \/\/ \u6bcf\u884c\u662f\u4e00\u4e2a 01 \u4e32<br \/>\n\u6700\u5c0f\u9762\u79ef &#061; n*m &#043; 1                  \/\/ \u521d\u59cb\u5316\u4e3a\u4e0d\u53ef\u80fd\u7684\u5927\u503c<\/p>\n<p>\u5bf9 y &#061; 0 \u5230 n-1:                    \/\/ \u8d77\u59cb\u884c<br \/>\n    \u5bbd\u5ea6 &#061; 1                         \/\/ \u4ece\u5bbd\u5ea6 1 \u5f00\u59cb<br \/>\n    \u5bf9 x &#061; 0 \u5230 m-1:                 \/\/ \u8d77\u59cb\u5217<br \/>\n        \u8ba1\u6570 &#061; 0<br \/>\n        \u5bf9 \u884c &#061; y \u5230 n-1:            \/\/ \u9010\u884c\u5411\u4e0b\u6269\u5c55<br \/>\n            \u5bf9 \u5217 &#061; x \u5230 x&#043;\u5bbd\u5ea6-1:   \/\/ \u626b\u63cf\u5f53\u524d\u884c\u7684\u5bbd\u5ea6\u8303\u56f4<br \/>\n                \u5982\u679c grid[\u884c][\u5217] &#061;&#061; &#039;1&#039;:<br \/>\n                    \u8ba1\u6570&#043;&#043;<br \/>\n            \u5982\u679c \u8ba1\u6570 &gt;&#061; k:          \/\/ \u6ee1\u8db3\u6761\u4ef6<br \/>\n                \u9762\u79ef &#061; \u5bbd\u5ea6 \u00d7 (\u884c &#8211; y &#043; 1)<br \/>\n                \u5982\u679c \u9762\u79ef &lt; \u6700\u5c0f\u9762\u79ef:<br \/>\n                    \u6700\u5c0f\u9762\u79ef &#061; \u9762\u79ef<br \/>\n                \u8df3\u51fa\u884c\u5faa\u73af           \/\/ \u627e\u5230\u4e86\u5c31\u505c&#xff0c;\u52a0\u5bbd\u6ca1\u610f\u4e49<\/p>\n<p>        \/\/ \u6269\u5c55\u5bbd\u5ea6&#xff0c;\u91cd\u8bd5\u540c\u4e00 x<br \/>\n        \u5982\u679c \u5bbd\u5ea6 &lt; m &#8211; x:<br \/>\n            \u5bbd\u5ea6&#043;&#043;<br \/>\n            x&#8211;                      \/\/ \u8ba9 for \u5faa\u73af\u4e0d\u524d\u8fdb&#xff0c;\u91cd\u8bd5\u540c\u4e00 x<br \/>\n        \u5982\u679c \u5bbd\u5ea6 &gt;&#061; m &#8211; x:           \/\/ \u5230\u8fbe\u53f3\u8fb9\u754c<br \/>\n            \u5bbd\u5ea6 &#061; 1                 \/\/ \u91cd\u7f6e\u5bbd\u5ea6<\/p>\n<p>\u5982\u679c \u6700\u5c0f\u9762\u79ef &#061;&#061; n*m &#043; 1:<br \/>\n    \u8f93\u51fa 0                           \/\/ \u65e0\u89e3<br \/>\n\u5426\u5219:<br \/>\n    \u8f93\u51fa \u6700\u5c0f\u9762\u79ef<\/p>\n<p>\u6807\u51c6\u66b4\u529b &#043; \u524d\u7f00\u548c\u7248\u672c&#xff08;O(n\u00b2\u00d7m\u00b2)&#xff09;&#xff1a;<\/p>\n<p>\u8bfb\u53d6 n, m, k<br \/>\n\u8bfb\u53d6\u7f51\u683c grid[0..n-1][0..m-1]<\/p>\n<p>\/\/ \u9884\u5904\u7406\u4e8c\u7ef4\u524d\u7f00\u548c<br \/>\n\u524d\u7f00\u548c pre[i][j] &#061; \u77e9\u5f62 (0,0) \u5230 (i-1,j-1) \u5185 1 \u7684\u4e2a\u6570<br \/>\npre[i][j] &#061; pre[i-1][j] &#043; pre[i][j-1] &#8211; pre[i-1][j-1] &#043; (grid[i-1][j-1]&#061;&#061;&#039;1&#039;)<\/p>\n<p>\u6700\u5c0f\u9762\u79ef &#061; n*m &#043; 1<\/p>\n<p>\/\/ \u679a\u4e3e\u6240\u6709\u5b50\u77e9\u5f62<br \/>\n\u5bf9 r1 &#061; 0 \u5230 n-1:                    \/\/ \u4e0a\u8fb9\u754c<br \/>\n    \u5bf9 r2 &#061; r1 \u5230 n-1:               \/\/ \u4e0b\u8fb9\u754c<br \/>\n        \u5bf9 c1 &#061; 0 \u5230 m-1:            \/\/ \u5de6\u8fb9\u754c<br \/>\n            \u5bf9 c2 &#061; c1 \u5230 m-1:       \/\/ \u53f3\u8fb9\u754c<br \/>\n                \/\/ O(1) \u8ba1\u7b97\u77e9\u5f62\u5185 1 \u7684\u4e2a\u6570<br \/>\n                \u8ba1\u6570 &#061; pre[r2&#043;1][c2&#043;1] &#8211; pre[r1][c2&#043;1] &#8211; pre[r2&#043;1][c1] &#043; pre[r1][c1]<br \/>\n                \u5982\u679c \u8ba1\u6570 &gt;&#061; k:<br \/>\n                    \u9762\u79ef &#061; (r2-r1&#043;1) \u00d7 (c2-c1&#043;1)<br \/>\n                    \u5982\u679c \u9762\u79ef &lt; \u6700\u5c0f\u9762\u79ef:<br \/>\n                        \u6700\u5c0f\u9762\u79ef &#061; \u9762\u79ef<\/p>\n<p>\u8f93\u51fa \u6700\u5c0f\u9762\u79ef&#xff08;\u5982\u679c\u4ecd\u4e3a n*m&#043;1 \u5219\u8f93\u51fa 0&#xff09;<\/p>\n<h4>&#x1f3af; \u5173\u952e\u70b9<\/h4>\n<p>\u26a0\ufe0f \u6700\u5e38\u89c1\u7684\u8bef\u89e3&#xff1a;\u77e9\u5f62\u4e0d\u9700\u8981\u5168\u662f 1\u3002 \u9898\u76ee\u8bf4&#034;\u81f3\u5c11\u5305\u542b k \u4e2a\u9ed1\u8272\u683c\u5b50&#034;\u2014\u2014\u610f\u601d\u662f\u77e9\u5f62\u5185 1 \u7684\u4e2a\u6570 \u2265 k \u5c31\u884c&#xff0c;\u5141\u8bb8\u5939\u6742 0\u3002\u4f46\u5f88\u591a\u4eba\u4e0b\u610f\u8bc6\u7406\u89e3\u6210&#034;\u77e9\u5f62\u5fc5\u987b\u5168\u90e8\u662f 1&#034;&#xff0c;\u4e8e\u662f\u53bb\u627e\u7eaf\u9ed1\u77e9\u5f62\u3002\u66f4\u7cdf\u7684\u662f&#xff0c;\u6837\u4f8b\u7684\u77e9\u5f62\u6070\u597d\u5168\u662f 1&#xff08;6 \u4e2a\u683c\u5b50 6 \u4e2a 1&#xff09;&#xff0c;\u52a0\u6df1\u4e86\u8fd9\u4e2a\u8bef\u89e3\u3002<\/p>\n<p>\u5b9e\u9645\u4e0a&#xff0c;\u5982\u679c\u4e00\u4e2a 2\u00d73 \u77e9\u5f62\u91cc\u6709 5 \u4e2a 1 \u548c 1 \u4e2a 0&#xff0c;\u9762\u79ef 6\u3001\u542b 5 \u4e2a 1 \u2265 k&#061;5&#xff0c;\u5b83\u540c\u6837\u5408\u6cd5\u3002\u751a\u81f3\u53ef\u80fd\u6bd4\u7eaf\u9ed1\u77e9\u5f62\u66f4\u4f18\u2014\u2014\u56e0\u4e3a\u7eaf\u9ed1\u77e9\u5f62\u53ef\u80fd\u9700\u8981\u66f4\u5927\u7684\u9762\u79ef\u624d\u80fd\u51d1\u591f k \u4e2a 1\u3002<\/p>\n<p>\u6b63\u786e\u7406\u89e3&#xff1a;\u77e9\u5f62\u5185 1 \u7684\u4e2a\u6570 \u2265 k&#xff0c;\u4e0d\u7ba1 0 \u6709\u51e0\u4e2a\u3002<\/p>\n<table>\n<tr>\u7406\u89e3\u542b 5 \u4e2a 1 \u7684 2\u00d73 \u77e9\u5f62&#xff08;5 \u4e2a 1 &#043; 1 \u4e2a 0&#xff09;\u5408\u6cd5&#xff1f;<\/tr>\n<tbody>\n<tr>\n<td>\u274c \u5168\u662f 1<\/td>\n<td>\u6709 0&#xff0c;\u4e0d\u6ee1\u8db3<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<tr>\n<td>\u2705 \u81f3\u5c11 k \u4e2a 1<\/td>\n<td>5 \u2265 5&#xff0c;\u6ee1\u8db3<\/td>\n<td>\u662f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#034;\u6e10\u8fdb\u6269\u5c55\u5bbd\u5ea6&#034;\u7684\u8bbe\u8ba1\u601d\u8def\u3002 \u539f\u59cb\u4ee3\u7801\u4e0d\u662f\u6734\u7d20\u5730\u679a\u4e3e\u6240\u6709\u77e9\u5f62&#xff0c;\u800c\u662f\u5bf9\u6bcf\u4e2a\u8d77\u59cb\u4f4d\u7f6e&#xff0c;\u4ece\u5bbd\u5ea6 1 \u5f00\u59cb\u9010\u6b65\u52a0\u5bbd\u3002\u627e\u5230\u6ee1\u8db3\u6761\u4ef6\u7684\u5c31\u8bb0\u5f55\u9762\u79ef\u5e76\u8df3\u51fa\u2014\u2014\u56e0\u4e3a\u7ee7\u7eed\u52a0\u5bbd\u53ea\u4f1a\u8ba9\u9762\u79ef\u66f4\u5927\u3002\u8fd9\u662f\u4e00\u79cd\u8d2a\u5fc3\u526a\u679d&#xff1a;\u7a84\u77e9\u5f62\u5982\u679c\u5df2\u7ecf\u6ee1\u8db3\u6761\u4ef6&#xff0c;\u5c31\u4e0d\u9700\u8981\u8bd5\u66f4\u5bbd\u7684\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u8981 x\u2013\u3002 \u5f53\u5bbd\u5ea6\u4ece end_x \u6269\u5c55\u5230 end_x&#043;1 \u65f6&#xff0c;\u9700\u8981\u91cd\u65b0\u4ece\u540c\u4e00\u5217 x \u5f00\u59cb\u626b\u63cf\u3002\u4f46 for \u5faa\u73af\u7684 x&#043;&#043; \u4f1a\u8df3\u5230\u4e0b\u4e00\u5217&#xff0c;\u6240\u4ee5\u7528 x&#8211; \u62b5\u6d88&#xff0c;\u8ba9\u4e0b\u4e00\u8f6e\u5faa\u73af\u4ecd\u7136\u5904\u7406\u540c\u4e00 x\u3002\u8fd9\u662f\u4e00\u4e2a\u5e38\u89c1\u7684&#034;\u624b\u52a8\u63a7\u5236\u5faa\u73af\u53d8\u91cf&#034;\u6280\u5de7\u3002<\/p>\n<p>\u524d\u7f00\u548c\u7684\u5a01\u529b\u3002 \u6807\u51c6\u66b4\u529b\u6bcf\u6b21\u6570\u77e9\u5f62\u5185 1 \u7684\u4e2a\u6570\u8981 O(n\u00d7m)&#xff0c;\u603b\u5171 O(n\u00b2\u00d7m\u00b2\u00d7nm) &#061; O(10\u00b9\u2070)&#xff0c;\u592a\u6162\u3002\u524d\u7f00\u548c\u628a&#034;\u6570 1 \u7684\u4e2a\u6570&#034;\u4ece O(n\u00d7m) \u964d\u5230 O(1)&#xff0c;\u603b\u5171 O(n\u00b2\u00d7m\u00b2) &#061; O(10\u2078)&#xff0c;1 \u79d2\u5185\u80fd\u8fc7\u3002<\/p>\n<p>\u7528\u6837\u4f8b\u8ffd\u8e2a&#xff08;n&#061;4, m&#061;5, k&#061;5&#xff09;&#xff1a;<\/p>\n<p>00000<br \/>\n01111<br \/>\n00011<br \/>\n00011<\/p>\n<p>\u6700\u4f18\u77e9\u5f62&#xff1a;\u7b2c 2-4 \u884c&#xff08;0 \u57fa\u4e0b\u6807 1-3&#xff09;&#xff0c;\u7b2c 4-5 \u5217&#xff08;0 \u57fa\u4e0b\u6807 3-4&#xff09;&#xff0c;\u9762\u79ef 2\u00d73&#061;6&#xff0c;\u542b 6 \u4e2a 1 \u2265 5\u3002<\/p>\n<table>\n<tr>\u8d77\u59cb (y,x)\u5bbd\u5ea6\u5411\u4e0b\u626b\u63cf1 \u7684\u4e2a\u6570\u2265k&#xff1f;\u9762\u79ef<\/tr>\n<tbody>\n<tr>\n<td>(0,0)<\/td>\n<td>1<\/td>\n<td>4\u884c<\/td>\n<td>0<\/td>\n<td>\u5426<\/td>\n<td>\u2014<\/td>\n<\/tr>\n<tr>\n<td>(0,0)<\/td>\n<td>2<\/td>\n<td>4\u884c<\/td>\n<td>0<\/td>\n<td>\u5426<\/td>\n<td>\u2014<\/td>\n<\/tr>\n<tr>\n<td>\u2026<\/td>\n<td>\u2026<\/td>\n<td>\u2026<\/td>\n<td>\u2026<\/td>\n<td>\u2026<\/td>\n<td>\u2026<\/td>\n<\/tr>\n<tr>\n<td>(1,3)<\/td>\n<td>1<\/td>\n<td>\u7b2c1\u884c:1, \u7b2c2\u884c:1, \u7b2c3\u884c:1 \u2192 \u7d2f\u8ba13<\/td>\n<td>3<\/td>\n<td>\u5426<\/td>\n<td>\u2014<\/td>\n<\/tr>\n<tr>\n<td>(1,3)<\/td>\n<td>2<\/td>\n<td>\u7b2c1\u884c:2, \u7b2c2\u884c:2, \u7b2c3\u884c:2 \u2192 \u7d2f\u8ba16<\/td>\n<td>6<\/td>\n<td>\u662f<\/td>\n<td>2\u00d73&#061;6<\/td>\n<\/tr>\n<tr>\n<td>(1,4)<\/td>\n<td>1<\/td>\n<td>\u7b2c1\u884c:1, \u7b2c2\u884c:1, \u7b2c3\u884c:1 \u2192 \u7d2f\u8ba13<\/td>\n<td>3<\/td>\n<td>\u5426<\/td>\n<td>\u2014<\/td>\n<\/tr>\n<tr>\n<td>\u2026<\/td>\n<td>\u2026<\/td>\n<td>\u2026<\/td>\n<td>\u2026<\/td>\n<td>\u2026<\/td>\n<td>\u2026<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6700\u5c0f\u9762\u79ef&#xff1a;6\u3002<\/p>\n<hr \/>\n<h3>\u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879<\/h3>\n<ul>\n<li>\n<p>\u66b4\u529b\u80fd\u8fc7\u4f46\u6709\u98ce\u9669\u3002 n,m&#061;100 \u65f6&#xff0c;\u77e9\u5f62\u6570\u91cf\u7ea6 2.5\u00d710\u2077 \u4e2a\u3002\u5982\u679c\u6bcf\u4e2a\u77e9\u5f62\u90fd O(n\u00d7m) \u626b\u63cf&#xff0c;\u603b\u5171 O(10\u00b9\u2070)&#xff0c;\u4f1a\u8d85\u65f6\u3002\u539f\u59cb\u4ee3\u7801\u7684\u6e10\u8fdb\u6269\u5c55\u6709\u526a\u679d\u6548\u679c&#xff0c;\u4f46\u6700\u574f\u60c5\u51b5\u4ecd\u53ef\u80fd\u6162\u3002\u52a0\u524d\u7f00\u548c\u662f\u66f4\u7a33\u59a5\u7684\u505a\u6cd5\u3002<\/p>\n<\/li>\n<li>\n<p>int \u6ea2\u51fa\u3002 n,m&#061;100&#xff0c;k\u226410\u2074&#xff0c;\u9762\u79ef\u6700\u5927 10\u2074&#xff0c;int \u8303\u56f4\u8db3\u591f\u3002\u4f46\u5982\u679c\u7528\u524d\u7f00\u548c&#xff0c;\u7d2f\u52a0 1 \u7684\u4e2a\u6570\u6700\u591a 10\u2074&#xff0c;\u4e5f\u5728 int \u8303\u56f4\u5185\u3002<\/p>\n<\/li>\n<li>\n<p>VLA \u95ee\u9898\u3002 string str01[n] \u662f\u53d8\u957f\u6570\u7ec4&#xff0c;\u4e0d\u662f\u6807\u51c6 C&#043;&#043;\u3002\u53ef\u7528 vector&lt;string&gt; \u6216\u56fa\u5b9a\u5927\u5c0f\u6570\u7ec4\u66ff\u4ee3\u3002<\/p>\n<\/li>\n<li>\n<p>\u65e0\u89e3\u60c5\u51b5\u3002 \u5982\u679c\u7f51\u683c\u4e2d 1 \u7684\u603b\u6570 &lt; k&#xff0c;\u6ca1\u6709\u4efb\u4f55\u77e9\u5f62\u6ee1\u8db3\u6761\u4ef6&#xff0c;\u5e94\u8f93\u51fa 0\u3002\u539f\u59cb\u4ee3\u7801\u7528 min_area &#061; n*m&#043;1 \u521d\u59cb\u5316&#xff0c;\u6700\u540e\u68c0\u67e5\u662f\u5426\u4ecd\u4e3a\u6b64\u503c\u6765\u5224\u65ad\u65e0\u89e3\u2014\u2014\u6b63\u786e\u3002<\/p>\n<\/li>\n<li>\n<p>\u5bbd\u5ea6\u91cd\u7f6e\u65f6\u673a\u3002 end_x \u5728\u5230\u8fbe\u53f3\u8fb9\u754c&#xff08;end_x &gt;&#061; m-x&#xff09;\u65f6\u91cd\u7f6e\u4e3a 1\u3002\u5982\u679c\u91cd\u7f6e\u903b\u8f91\u6709\u8bef&#xff0c;\u53ef\u80fd\u6f0f\u6389\u67d0\u4e9b\u77e9\u5f62\u6216\u91cd\u590d\u626b\u63cf\u3002<\/p>\n<\/li>\n<li>\n<p>x&#8211; \u7684\u8fb9\u754c\u3002 \u5f53 x&#061;0 \u65f6 x&#8211; \u53d8\u6210 -1&#xff0c;\u4f46\u4e0b\u4e00\u8f6e for \u5faa\u73af x&#043;&#043; \u53d8\u56de 0&#xff0c;\u4e0d\u4f1a\u6709\u95ee\u9898\u3002\u4f46\u5982\u679c x \u5df2\u7ecf\u5728\u8fb9\u754c&#xff0c;x&#8211; \u53ef\u80fd\u8ba9\u5faa\u73af\u591a\u8dd1\u4e00\u8f6e\u2014\u2014\u9700\u8981\u786e\u8ba4\u903b\u8f91\u6b63\u786e\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>&#x1f333; \u5ef6\u4f38&#xff1a;\u4ece\u9ed1\u767d\u683c\u5230\u76ee\u6807\u68c0\u6d4b\u2014\u2014\u6700\u5c0f\u5916\u63a5\u77e9\u5f62\u7684\u6545\u4e8b<\/h3>\n<p>\u4f60\u5728 P10719 \u91cc\u505a\u7684\u4e8b\u2014\u2014\u5728\u4e8c\u503c\u7f51\u683c\u4e0a\u627e\u4e00\u4e2a\u5305\u542b\u8db3\u591f\u591a&#034;\u76ee\u6807&#034;\u7684\u6700\u5c0f\u77e9\u5f62\u2014\u2014\u5728\u8ba1\u7b97\u673a\u89c6\u89c9\u91cc\u6709\u4e00\u4e2a\u6b63\u5f0f\u540d\u5b57&#xff1a;\u6700\u5c0f\u5916\u63a5\u77e9\u5f62&#xff08;Minimum Bounding Rectangle, MBR&#xff09;\u3002\u8fd9\u4e2a\u64cd\u4f5c\u4ece 1970 \u5e74\u4ee3\u7684\u536b\u661f\u9065\u611f\u5230\u4eca\u5929\u7684\u76ee\u6807\u68c0\u6d4b&#xff0c;\u65e0\u5904\u4e0d\u5728\u3002<\/p>\n<h4>&#x1f5bc;\ufe0f \u4e8c\u503c\u56fe\u50cf&#xff1a;\u6700\u7b80\u5355\u7684\u56fe\u50cf<\/h4>\n<p>\u4f60\u7684 01 \u7f51\u683c\u5c31\u662f\u4e00\u5f20\u4e8c\u503c\u56fe\u50cf&#xff08;Binary Image&#xff09;\u2014\u2014\u6bcf\u4e2a\u50cf\u7d20\u53ea\u6709\u4e24\u79cd\u503c&#xff1a;\u9ed1&#xff08;1&#xff09;\u6216\u767d&#xff08;0&#xff09;\u3002\u8fd9\u662f\u56fe\u50cf\u5904\u7406\u4e2d\u6700\u57fa\u7840\u7684\u8868\u793a\u5f62\u5f0f&#xff08;Binary Image \u2014 Wikipedia&#xff09;\u3002<\/p>\n<p>\u4e8c\u503c\u56fe\u50cf\u7684\u5386\u53f2\u6bd4\u8ba1\u7b97\u673a\u8fd8\u65e9&#xff1a;1900 \u5e74\u4ee3\u521d\u7684\u7535\u62a5\u4f20\u771f\u5c31\u662f\u4e8c\u503c\u4f20\u8f93\u2014\u2014\u201c\u6709\u4fe1\u53f7&#061;\u9ed1&#xff0c;\u65e0\u4fe1\u53f7&#061;\u767d\u201d\u30021960 \u5e74\u4ee3\u7b2c\u4e00\u53f0\u626b\u63cf\u4eea\u628a\u7167\u7247\u8f6c\u6210\u6570\u5b57\u7f51\u683c\u65f6&#xff0c;\u7b2c\u4e00\u6b65\u5c31\u662f\u4e8c\u503c\u5316&#xff1a;\u8bbe\u5b9a\u4e00\u4e2a\u9608\u503c&#xff0c;\u6bd4\u9608\u503c\u6697\u7684\u6807 1&#xff08;\u9ed1&#xff09;&#xff0c;\u6bd4\u9608\u503c\u4eae\u7684\u6807 0&#xff08;\u767d&#xff09;&#xff08;Image Thresholding \u2014 OpenCV&#xff09;\u3002<\/p>\n<p>\u4f60\u5728 P10719 \u91cc\u8f93\u5165\u7684 00000 \/ 01111 \/ 00011 \/ 00011&#xff0c;\u548c\u536b\u661f\u56fe\u3001\u533b\u5b66\u5207\u7247\u3001\u6587\u6863\u626b\u63cf\u7684\u4e8c\u503c\u5316\u7ed3\u679c\u5728\u6570\u5b66\u4e0a\u5b8c\u5168\u4e00\u6837\u2014\u2014\u4e00\u4e2a n\u00d7m \u7684 0\/1 \u77e9\u9635\u3002<\/p>\n<h4>&#x1f4d0; \u6700\u5c0f\u5916\u63a5\u77e9\u5f62&#xff1a;1970 \u5e74\u4ee3\u7684\u536b\u661f\u773c\u775b<\/h4>\n<p>1972 \u5e74&#xff0c;\u7f8e\u56fd\u53d1\u5c04 Landsat-1 \u536b\u661f&#xff0c;\u4f20\u56de\u5730\u7403\u8868\u9762\u7684\u6570\u5b57\u56fe\u50cf\u3002\u5206\u6790\u5e08\u9762\u5bf9\u7684\u662f 185km\u00d7185km \u7684\u591a\u5149\u8c31\u56fe\u50cf&#xff0c;\u9700\u8981\u4ece\u4e2d\u63d0\u53d6\u6709\u7528\u4fe1\u606f\u2014\u2014\u68ee\u6797\u9762\u79ef\u3001\u57ce\u5e02\u8fb9\u754c\u3001\u519c\u4f5c\u7269\u5206\u5e03&#xff08;Landsat Program \u2014 NASA&#xff09;\u3002<\/p>\n<p>\u4ed6\u4eec\u7684\u7b2c\u4e00\u6b65\u64cd\u4f5c\u5c31\u662f&#xff1a;\u628a\u591a\u5149\u8c31\u56fe\u50cf\u4e8c\u503c\u5316&#xff08;\u4f60\u7684 01 \u7f51\u683c&#xff09;&#xff0c;\u7136\u540e\u627e\u76ee\u6807\u533a\u57df\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62\u3002\u6bd4\u5982\u628a\u690d\u88ab\u6307\u6570 &gt; 0.3 \u7684\u50cf\u7d20\u6807 1&#xff08;\u662f\u690d\u88ab&#xff09;&#xff0c;\u5176\u4f59\u6807 0&#xff0c;\u7136\u540e\u627e\u5305\u542b\u8db3\u591f\u591a 1 \u7684\u6700\u5c0f\u77e9\u5f62\u2014\u2014\u8fd9\u5c31\u662f\u4f60\u5728 P10719 \u91cc\u505a\u7684\u4e8b\u3002<\/p>\n<table>\n<tr>P10719\u536b\u661f\u9065\u611f<\/tr>\n<tbody>\n<tr>\n<td>01 \u7f51\u683c<\/td>\n<td>\u4e8c\u503c\u5316\u540e\u7684\u536b\u661f\u56fe&#xff08;1&#061;\u690d\u88ab\/\u6c34\u4f53\/\u5efa\u7b51&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>k \u4e2a\u9ed1\u683c<\/td>\n<td>k \u4e2a\u76ee\u6807\u50cf\u7d20&#xff08;\u201c\u8fd9\u5757\u591f\u5927&#xff0c;\u503c\u5f97\u5173\u6ce8\u201d&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u5c0f\u77e9\u5f62<\/td>\n<td>\u76ee\u6807\u533a\u57df\u7684\u5916\u63a5\u77e9\u5f62&#xff08;\u7528\u4e8e\u9762\u79ef\u4f30\u7b97\u548c\u5b9a\u4f4d&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>min_area<\/td>\n<td>\u6700\u5c0f\u5916\u63a5\u77e9\u5f62\u9762\u79ef<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>1970 \u5e74\u4ee3\u7f8e\u56fd\u5730\u8d28\u8c03\u67e5\u5c40&#xff08;USGS&#xff09;\u5f00\u53d1\u7684 GIS \u7cfb\u7edf\u91cc&#xff0c;\u6700\u5c0f\u5916\u63a5\u77e9\u5f62\u662f\u6700\u57fa\u672c\u7684\u51e0\u4f55\u64cd\u4f5c\u4e4b\u4e00\u2014\u2014\u5b83\u628a\u4e0d\u89c4\u5219\u7684\u50cf\u7d20\u5757\u538b\u7f29\u6210\u4e00\u4e2a\u77e9\u5f62&#xff0c;\u7528\u56db\u4e2a\u6570\u5b57&#xff08;xmin, ymin, xmax, ymax&#xff09;\u4ee3\u66ff\u6210\u5343\u4e0a\u4e07\u4e2a\u50cf\u7d20\u5750\u6807&#xff08;GIS \u2014 Wikipedia&#xff09;\u3002<\/p>\n<h4>&#x1f50d; \u76ee\u6807\u68c0\u6d4b&#xff1a;\u4ece\u6ed1\u52a8\u7a97\u53e3\u5230 YOLO<\/h4>\n<p>\u5728\u8ba1\u7b97\u673a\u89c6\u89c9\u4e2d&#xff0c;&#034;\u5728\u56fe\u50cf\u91cc\u627e\u5305\u542b\u76ee\u6807\u7684\u77e9\u5f62&#034;\u5c31\u662f\u76ee\u6807\u68c0\u6d4b&#xff08;Object Detection&#xff09;\u7684\u6838\u5fc3\u4efb\u52a1\u3002\u4f60\u7684 P10719 \u662f\u5b83\u7684\u6700\u7b80\u5316\u7248\u672c&#xff08;Object Detection \u2014 Wikipedia&#xff09;\u3002<\/p>\n<p>2001 \u5e74\u2014\u2014Viola-Jones \u4eba\u8138\u68c0\u6d4b\u5668\u3002 Paul Viola \u548c Michael Jones \u53d1\u8868\u4e86\u5b9e\u65f6\u4eba\u8138\u68c0\u6d4b\u7b97\u6cd5\u3002\u6838\u5fc3\u601d\u60f3&#xff1a;\u5728\u56fe\u50cf\u4e0a\u6ed1\u52a8\u4e00\u4e2a\u77e9\u5f62\u7a97\u53e3&#xff0c;\u5bf9\u6bcf\u4e2a\u7a97\u53e3\u5224\u65ad&#034;\u662f\u4e0d\u662f\u4eba\u8138&#034;\u3002\u7a97\u53e3\u4ece\u5c0f\u5230\u5927\u9010\u7ea7\u626b\u63cf\u2014\u2014\u548c\u4f60\u4ece\u5bbd\u5ea6 1 \u9010\u6b65\u6269\u5c55\u7684\u601d\u8def\u5f02\u66f2\u540c\u5de5&#xff08;Viola-Jones \u2014 Wikipedia&#xff09;\u3002<\/p>\n<table>\n<tr>P10719Viola-Jones<\/tr>\n<tbody>\n<tr>\n<td>\u679a\u4e3e\u6240\u6709\u77e9\u5f62<\/td>\n<td>\u6ed1\u52a8\u6240\u6709\u7a97\u53e3\u4f4d\u7f6e\u548c\u5c3a\u5bf8<\/td>\n<\/tr>\n<tr>\n<td>\u6570 1 \u7684\u4e2a\u6570 \u2265k<\/td>\n<td>Haar \u7279\u5f81 \u2265 \u9608\u503c<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u5c0f\u9762\u79ef<\/td>\n<td>\u6700\u9ad8\u7f6e\u4fe1\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>O(n\u00b2\u00d7m\u00b2)<\/td>\n<td>O(n\u00d7m\u00d7scale)&#xff08;\u7528\u79ef\u5206\u56fe\u52a0\u901f&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u79ef\u5206\u56fe&#xff08;Integral Image&#xff09; \u662f Viola-Jones \u7684\u5173\u952e\u52a0\u901f\u2014\u2014\u5b83\u5c31\u662f\u4f60\u5728\u524d\u7f00\u548c\u7248\u672c\u91cc\u7528\u7684\u4e8c\u7ef4\u524d\u7f00\u548c\u3002\u4efb\u4f55\u4e00\u4e2a\u77e9\u5f62\u5185\u7684\u50cf\u7d20\u548c\u53ef\u4ee5\u5728 O(1) \u65f6\u95f4\u5185\u7b97\u51fa\u6765&#xff0c;\u4e0d\u9700\u8981\u9010\u4e2a\u626b\u63cf\u3002Viola \u548c Jones \u7684\u8d21\u732e\u6b63\u662f\u628a\u8fd9\u4e2a\u6280\u5de7\u7528\u5728\u4e86\u5b9e\u65f6\u68c0\u6d4b\u4e0a&#xff08;Viola-Jones \u2014 Wikipedia&#xff09;\u3002<\/p>\n<p>2012 \u5e74\u2014\u2014\u6df1\u5ea6\u5b66\u4e60\u65f6\u4ee3\u3002 AlexNet \u5728 ImageNet \u4e0a\u7684\u7a81\u7834\u8ba9\u5377\u79ef\u795e\u7ecf\u7f51\u7edc&#xff08;CNN&#xff09;\u6210\u4e3a\u56fe\u50cf\u8bc6\u522b\u7684\u6807\u51c6\u3002R-CNN&#xff08;2014&#xff09;\u7528 CNN \u5bf9\u6bcf\u4e2a\u5019\u9009\u77e9\u5f62\u5206\u7c7b&#xff0c;YOLO&#xff08;2016&#xff09;\u628a\u6574\u4e2a\u68c0\u6d4b\u53d8\u6210\u5355\u6b21\u524d\u5411\u4f20\u64ad[&#xff08;YOLO \u2014 Wikipedia&#xff09;](https:\/\/en.wikipedia.org\/wiki\/YOLO_(algorithm)&#xff09;\u3002<\/p>\n<table>\n<tr>\u65f6\u4ee3\u65b9\u6cd5\u600e\u4e48\u627e\u77e9\u5f62\u548c\u4f60\u7684\u5173\u7cfb<\/tr>\n<tbody>\n<tr>\n<td>2001<\/td>\n<td>Viola-Jones<\/td>\n<td>\u6ed1\u52a8\u7a97\u53e3 &#043; Haar \u7279\u5f81<\/td>\n<td>\u4f60\u7684\u66b4\u529b\u679a\u4e3e &#043; \u524d\u7f00\u548c<\/td>\n<\/tr>\n<tr>\n<td>2014<\/td>\n<td>R-CNN<\/td>\n<td>\u5019\u9009\u533a\u57df &#043; CNN \u5206\u7c7b<\/td>\n<td>\u4f60\u679a\u4e3e\u77e9\u5f62 &#043; \u5224\u65ad<\/td>\n<\/tr>\n<tr>\n<td>2016<\/td>\n<td>YOLO<\/td>\n<td>\u5355\u6b21 CNN \u76f4\u63a5\u9884\u6d4b\u77e9\u5f62<\/td>\n<td>\u7aef\u5230\u7aef&#xff0c;\u4e0d\u679a\u4e3e<\/td>\n<\/tr>\n<tr>\n<td>2024<\/td>\n<td>DETR<\/td>\n<td>Transformer \u76f4\u63a5\u8f93\u51fa\u77e9\u5f62<\/td>\n<td>\u6ce8\u610f\u529b\u673a\u5236\u66ff\u4ee3\u679a\u4e3e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>YOLO \u4e0d\u518d\u679a\u4e3e\u6240\u6709\u77e9\u5f62\u2014\u2014\u5b83\u76f4\u63a5\u4ece\u56fe\u50cf\u9884\u6d4b&#034;\u54ea\u91cc\u6709\u77e9\u5f62&#034;\u3002\u4f46\u5e95\u5c42\u903b\u8f91\u6ca1\u53d8&#xff1a;\u5728\u4e8c\u503c\u7f51\u683c\u4e0a\u627e\u6ee1\u8db3\u6761\u4ef6\u7684\u6700\u5c0f\u77e9\u5f62\u3002\u4f60\u7684 P10719 \u66b4\u529b\u89e3\u6cd5\u662f YOLO \u7684\u8fdc\u53e4\u7956\u5148\u2014\u2014\u533a\u522b\u53ea\u662f YOLO \u7528\u795e\u7ecf\u7f51\u7edc\u5b66\u4f1a\u4e86&#034;\u54ea\u4e9b\u4f4d\u7f6e\u503c\u5f97\u770b&#034;&#xff0c;\u800c\u4f60\u8001\u5b9e\u5730\u770b\u904d\u4e86\u6240\u6709\u4f4d\u7f6e\u3002<\/p>\n<h4>&#x1f4ca; \u524d\u7f00\u548c&#xff1a;\u4ece\u66b4\u529b\u5230\u9ad8\u6548<\/h4>\n<p>\u4f60\u5728\u4f2a\u4ee3\u7801\u91cc\u770b\u5230\u7684\u4e24\u79cd\u7248\u672c\u2014\u2014\u66b4\u529b\u9010\u683c\u626b\u63cf O(n\u00d7m) \u548c\u524d\u7f00\u548c O(1)\u2014\u2014\u5bf9\u5e94\u4e86\u4e24\u79cd\u5de5\u4e1a\u7ea7\u7b97\u6cd5&#xff1a;<\/p>\n<table>\n<tr>\u65b9\u6cd5\u4f60\u7684\u4ee3\u7801\u4e2d\u7684\u5bf9\u5e94\u590d\u6742\u5ea6\u5de5\u4e1a\u5e94\u7528<\/tr>\n<tbody>\n<tr>\n<td>\u9010\u683c\u626b\u63cf<\/td>\n<td>for \u5217: if grid[\u884c][\u5217]&#061;&#061;&#039;1&#039;: \u8ba1\u6570&#043;&#043;<\/td>\n<td>O(n\u00d7m) per \u77e9\u5f62<\/td>\n<td>\u6734\u7d20\u7684\u533a\u57df\u7edf\u8ba1<\/td>\n<\/tr>\n<tr>\n<td>\u4e8c\u7ef4\u524d\u7f00\u548c<\/td>\n<td>pre[r2&#043;1][c2&#043;1] &#8211; pre[r1][c2&#043;1] &#8211; &#8230;<\/td>\n<td>O(1) per \u77e9\u5f62<\/td>\n<td>Viola-Jones \u79ef\u5206\u56fe<\/td>\n<\/tr>\n<tr>\n<td>\u6ed1\u52a8\u7a97\u53e3<\/td>\n<td>\u56fa\u5b9a\u884c\u5bf9&#xff0c;\u53cc\u6307\u9488\u626b\u5217<\/td>\n<td>O(n\u00b2\u00d7m)<\/td>\n<td>\u76f4\u65b9\u56fe\u5206\u6790\u3001\u67f1\u72b6\u56fe<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e8c\u7ef4\u524d\u7f00\u548c &#061; \u79ef\u5206\u56fe\u3002 \u8fd9\u4e2a\u7b49\u4ef7\u5173\u7cfb\u662f 2001 \u5e74 Viola-Jones \u8bba\u6587\u7684\u6838\u5fc3\u8d21\u732e\u4e4b\u4e00\u3002\u4ed6\u4eec\u5728\u4e0d\u77e5\u9053&#034;\u524d\u7f00\u548c&#034;\u8fd9\u4e2a\u540d\u5b57\u7684\u60c5\u51b5\u4e0b&#xff0c;\u72ec\u7acb\u63d0\u51fa\u4e86\u5b8c\u5168\u76f8\u540c\u7684\u6570\u5b66\u7ed3\u6784&#xff0c;\u547d\u540d\u4e3a&#034;Integral Image&#034;&#xff08;Viola-Jones \u2014 Wikipedia&#xff09;\u3002\u4f60\u5728\u6d1b\u8c37\u4e0a\u7528\u7684\u524d\u7f00\u548c\u6280\u5de7&#xff0c;\u548c 2001 \u5e74\u8ba9\u5b9e\u65f6\u4eba\u8138\u68c0\u6d4b\u6210\u4e3a\u53ef\u80fd\u7684\u79ef\u5206\u56fe&#xff0c;\u662f\u540c\u4e00\u4e2a\u6570\u5b66\u5de5\u5177\u3002<\/p>\n<h4>&#x1f5fa;\ufe0f \u5730\u7406\u4fe1\u606f\u7cfb\u7edf&#xff1a;\u6805\u683c\u6570\u636e\u65e0\u5904\u4e0d\u5728<\/h4>\n<p>\u4f60\u7684 01 \u7f51\u683c\u5728 GIS \u4e2d\u53eb\u6805\u683c\u6570\u636e&#xff08;Raster Data&#xff09;\u3002\u6bcf\u4e00\u683c\u4ee3\u8868\u4e00\u5757\u5730\u9762\u7684\u5c5e\u6027&#xff1a;\u662f\/\u4e0d\u662f\u68ee\u6797\u3001\u662f\/\u4e0d\u662f\u6c34\u4f53\u3001\u662f\/\u4e0d\u662f\u5efa\u7b51&#xff08;Raster Data \u2014 GIS Wiki&#xff09;\u3002<\/p>\n<table>\n<tr>P10719GIS \u6805\u683c<\/tr>\n<tbody>\n<tr>\n<td>n\u00d7m \u7f51\u683c<\/td>\n<td>\u9065\u611f\u5f71\u50cf\u6216\u5206\u7c7b\u56fe<\/td>\n<\/tr>\n<tr>\n<td>1 &#061; \u9ed1\u683c<\/td>\n<td>1 &#061; \u76ee\u6807\u7c7b\u522b&#xff08;\u68ee\u6797\/\u6c34\u4f53\/\u5efa\u7b51&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>k \u4e2a 1<\/td>\n<td>k \u4e2a\u76ee\u6807\u50cf\u7d20&#xff08;\u201c\u8fd9\u5757\u8db3\u591f\u5927\u201d&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u5c0f\u77e9\u5f62<\/td>\n<td>\u6700\u5c0f\u5916\u63a5\u77e9\u5f62&#xff08;\u9762\u79ef\u4f30\u7b97\u3001\u5b9a\u4f4d&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>min_area<\/td>\n<td>\u9762\u79ef\u7edf\u8ba1&#xff08;\u73af\u5883\u4fdd\u62a4\u3001\u57ce\u5e02\u89c4\u5212&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>USGS 3DEP&#xff08;3D Elevation Program&#xff09;\u63d0\u4f9b\u5168\u7f8e 1 \u7c73\u5206\u8fa8\u7387\u7684\u6570\u5b57\u9ad8\u7a0b\u6a21\u578b\u2014\u2014\u4e00\u5f20\u56fe\u5c31\u662f 10\u2078 \u4e2a\u683c\u5b50\u3002\u5728\u8fd9\u4e9b\u6570\u636e\u4e0a\u627e&#034;\u6d77\u62d4 &gt; \u67d0\u503c\u7684\u8fde\u7eed\u533a\u57df\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62&#034;&#xff0c;\u5c31\u662f\u4f60 P10719 \u7684\u5de5\u4e1a\u7248&#xff08;USGS 3DEP \u2014 USGS&#xff09;\u3002<\/p>\n<p>\u4f60\u7684 for \u5faa\u73af\u904d\u5386 n\u00d7m \u7684\u7f51\u683c&#xff0c;\u548c ArcGIS\u3001QGIS \u5728\u5904\u7406\u536b\u661f\u6570\u636e\u65f6\u505a\u7684\u4e8b\u4e00\u6a21\u4e00\u6837\u2014\u2014\u53ea\u662f\u4f60\u7684\u7f51\u683c 100\u00d7100&#xff0c;\u5b83\u4eec\u7684\u7f51\u683c 10\u2074\u00d710\u2074\u3002<\/p>\n<hr \/>\n<h3>&#x1f4da; \u5ef6\u4f38\u9605\u8bfb\u6587\u732e<\/h3>\n<h5>\u8bba\u6587\u4e0e\u6280\u672f\u6587\u6863<\/h5>\n<li>P. Viola, M. Jones. Robust Real-Time Face Detection. International Journal of Computer Vision, 2004. \u2014\u2014 \u79ef\u5206\u56fe&#xff08;\u524d\u7f00\u548c&#xff09;\u5728\u76ee\u6807\u68c0\u6d4b\u4e2d\u7684\u7ecf\u5178\u5e94\u7528\u3002<\/li>\n<li>J. Redmon, S. Divvala, R. Girshick, A. Farhadi. You Only Look Once: Unified, Real-Time Object Detection. CVPR, 2016. \u2014\u2014 YOLO \u76ee\u6807\u68c0\u6d4b&#xff0c;\u4ece\u56fe\u50cf\u76f4\u63a5\u9884\u6d4b\u77e9\u5f62\u3002<\/li>\n<li>R. C. Gonzalez, R. E. Woods. Digital Image Processing (4th Edition). Pearson, 2018. \u2014\u2014 \u7b2c 10 \u7ae0\u56fe\u50cf\u5206\u5272&#xff0c;\u542b\u4e8c\u503c\u56fe\u50cf\u5904\u7406\u3002<\/li>\n<h5>\u5728\u7ebf\u8d44\u6e90<\/h5>\n<li>\u6d1b\u8c37. P10719 [GESP202406 \u4e94\u7ea7] \u9ed1\u767d\u683c. https:\/\/www.luogu.com.cn\/problem\/P10719<\/li>\n<li>Binary Image \u2014 Wikipedia. &#xff08;Binary Image&#xff09; \u2014\u2014 \u4e8c\u503c\u56fe\u50cf\u7684\u57fa\u7840\u6982\u5ff5\u3002<\/li>\n<li>Viola-Jones Object Detection Framework \u2014 Wikipedia. &#xff08;Viola-Jones&#xff09; \u2014\u2014 \u79ef\u5206\u56fe\u548c\u6ed1\u52a8\u7a97\u53e3\u68c0\u6d4b\u3002<\/li>\n<li>Object Detection \u2014 Wikipedia. &#xff08;Object Detection&#xff09; \u2014\u2014 \u76ee\u6807\u68c0\u6d4b\u7efc\u8ff0&#xff0c;\u4ece\u6ed1\u52a8\u7a97\u53e3\u5230 YOLO\u3002<\/li>\n<li>YOLO (Algorithm) \u2014 Wikipedia. &#xff08;YOLO&#xff09; \u2014\u2014 YOLO \u7b97\u6cd5&#xff0c;\u5355\u6b21\u524d\u5411\u9884\u6d4b\u77e9\u5f62\u3002<\/li>\n<li>Landsat Program \u2014 NASA. https:\/\/landsat.gsfc.nasa.gov\/ \u2014\u2014 Landsat \u536b\u661f\u8ba1\u5212&#xff0c;1972 \u5e74\u5f00\u59cb\u7684\u5730\u7403\u89c2\u6d4b\u3002<\/li>\n<li>USGS 3D Elevation Program. https:\/\/www.usgs.gov\/3d-elevation-program \u2014\u2014 \u5168\u7f8e 1 \u7c73\u5206\u8fa8\u7387\u6570\u5b57\u9ad8\u7a0b\u6a21\u578b\u3002<\/li>\n<li>Image Thresholding \u2014 OpenCV. https:\/\/docs.opencv.org\/4.x\/d7\/d4d\/tutorial_py_thresholding.html \u2014\u2014 \u4e8c\u503c\u5316\u6559\u7a0b&#xff0c;\u7070\u5ea6\u56fe\u219201 \u7f51\u683c\u3002<\/li>\n<li>Geographic Information System \u2014 Wikipedia. &#xff08;GIS&#xff09; \u2014\u2014 \u5730\u7406\u4fe1\u606f\u7cfb\u7edf&#xff0c;\u6805\u683c\u6570\u636e\u548c\u6700\u5c0f\u5916\u63a5\u77e9\u5f62\u3002<\/li>\n<h5>\u63a8\u8350\u6559\u6750<\/h5>\n<ul>\n<li>\n<p>R. C. Gonzalez, R. E. Woods. Digital Image Processing (4th Edition). Pearson, 2018. \u2014\u2014 \u56fe\u50cf\u5904\u7406\u5723\u7ecf&#xff0c;\u542b\u4e8c\u503c\u56fe\u50cf\u3001\u8fde\u901a\u57df\u3001\u5916\u63a5\u77e9\u5f62\u3002<\/p>\n<\/li>\n<li>\n<p>R. Szeliski. Computer Vision: Algorithms and Applications (2nd Edition). Springer, 2022. \u2014\u2014 \u8ba1\u7b97\u673a\u89c6\u89c9\u6559\u6750&#xff0c;\u542b\u76ee\u6807\u68c0\u6d4b\u548c\u6ed1\u52a8\u7a97\u53e3\u3002<\/p>\n<\/li>\n<li>\n<p>M. A. Zevenbergen, J. P. Wilson. Geographic Information Systems and Science. Wiley, 2020. \u2014\u2014 GIS \u6559\u6750&#xff0c;\u542b\u6805\u683c\u6570\u636e\u5904\u7406\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<p>\u672c\u6587\u6807\u7b7e&#xff1a;#\u7b97\u6cd5 #\u66b4\u529b\u679a\u4e3e #\u524d\u7f00\u548c #\u4e8c\u503c\u56fe\u50cf #\u6700\u5c0f\u5916\u63a5\u77e9\u5f62 #\u76ee\u6807\u68c0\u6d4b #YOLO #GIS #\u6d1b\u8c37\u9898\u89e3 #\u4fe1\u5965 #GESP #C&#043;&#043; #\u4e94\u7ea7<\/p>\n<p>\u672c\u6587\u9996\u53d1\u4e8e CSDN&#xff0c;\u4f5c\u8005&#xff1a;HugoStudio_SWAN<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6d1b\u8c37 P10719 [GESP202406 \u4e94\u7ea7] \u9ed1\u767d\u683c\u2014\u2014\u66b4\u529b\u7f8e\u5b66\u4e0e\u56fe\u50cf\u5904\u7406\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62<br \/>\n&#x1f4cc; \u6458\u8981<br \/>\nP10719 \u7ed9\u5b9a\u4e00\u4e2a n\u00d7m \u7684 01 \u7f51\u683c&#xff0c;\u627e\u81f3\u5c11\u5305\u542b k \u4e2a\u9ed1\u683c\u7684\u6700\u5c0f\u5b50\u77e9\u5f62\u9762\u79ef\u3002n,m\u2264100&#xff0c;\u66b4\u529b\u679a\u4e3e\u6240\u6709\u77e9\u5f62 O(n\u00b2\u00d7m\u00b2) \u53ef\u4ee5\u901a\u8fc7\u3002\u672c\u6587\u5206\u6790\u4e86\u66b4\u529b\u89e3\u6cd5\u7684\u8bbe\u8ba1\u601d\u8def\u2014\u2014\u4ece\u5de6\u4e0a\u89d2\u51fa\u53d1&#xff0c;\u9010\u6b65\u6269\u5c55\u5bbd\u5ea6\u548c\u9ad8\u5ea6&#xff0c;\u9047\u5230\u6ee1\u8db3\u6761\u4ef6\u7684\u5c31\u8bb0\u5f55\u9762\u79ef\u5e76\u8df3\u51fa\u2014\u2014\u5e76\u5ef6\u4f38\u5230\u4e8c\u503c\u56fe\u50cf\u5904\u7406\u4e2d\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62&amp;#xff0<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,50,3829,5281,427],"topic":[],"class_list":["post-101508","post","type-post","status-publish","format-standard","hentry","category-server","tag-c","tag-50","tag-3829","tag-5281","tag-427"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6d1b\u8c37 P10719 \\\\[GESP202406 \u4e94\u7ea7] \u9ed1\u767d\u683c\u2014\u2014\u66b4\u529b\u7f8e\u5b66\u4e0e\u56fe\u50cf\u5904\u7406\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/101508.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6d1b\u8c37 P10719 \\\\[GESP202406 \u4e94\u7ea7] \u9ed1\u767d\u683c\u2014\u2014\u66b4\u529b\u7f8e\u5b66\u4e0e\u56fe\u50cf\u5904\u7406\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6d1b\u8c37 P10719 [GESP202406 \u4e94\u7ea7] \u9ed1\u767d\u683c\u2014\u2014\u66b4\u529b\u7f8e\u5b66\u4e0e\u56fe\u50cf\u5904\u7406\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62 &#x1f4cc; \u6458\u8981 P10719 \u7ed9\u5b9a\u4e00\u4e2a n\u00d7m \u7684 01 \u7f51\u683c&#xff0c;\u627e\u81f3\u5c11\u5305\u542b k \u4e2a\u9ed1\u683c\u7684\u6700\u5c0f\u5b50\u77e9\u5f62\u9762\u79ef\u3002n,m\u2264100&#xff0c;\u66b4\u529b\u679a\u4e3e\u6240\u6709\u77e9\u5f62 O(n\u00b2\u00d7m\u00b2) \u53ef\u4ee5\u901a\u8fc7\u3002\u672c\u6587\u5206\u6790\u4e86\u66b4\u529b\u89e3\u6cd5\u7684\u8bbe\u8ba1\u601d\u8def\u2014\u2014\u4ece\u5de6\u4e0a\u89d2\u51fa\u53d1&#xff0c;\u9010\u6b65\u6269\u5c55\u5bbd\u5ea6\u548c\u9ad8\u5ea6&#xff0c;\u9047\u5230\u6ee1\u8db3\u6761\u4ef6\u7684\u5c31\u8bb0\u5f55\u9762\u79ef\u5e76\u8df3\u51fa\u2014\u2014\u5e76\u5ef6\u4f38\u5230\u4e8c\u503c\u56fe\u50cf\u5904\u7406\u4e2d\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62&amp;#xff0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/101508.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-06T15:49:14+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/101508.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/101508.html\",\"name\":\"\u6d1b\u8c37 P10719 \\\\\\\\[GESP202406 \u4e94\u7ea7] \u9ed1\u767d\u683c\u2014\u2014\u66b4\u529b\u7f8e\u5b66\u4e0e\u56fe\u50cf\u5904\u7406\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-06T15:49:14+00:00\",\"dateModified\":\"2026-09-06T15:49:14+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/101508.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/101508.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/101508.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6d1b\u8c37 P10719 \\\\\\\\[GESP202406 \u4e94\u7ea7] \u9ed1\u767d\u683c\u2014\u2014\u66b4\u529b\u7f8e\u5b66\u4e0e\u56fe\u50cf\u5904\u7406\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6d1b\u8c37 P10719 \\\\[GESP202406 \u4e94\u7ea7] \u9ed1\u767d\u683c\u2014\u2014\u66b4\u529b\u7f8e\u5b66\u4e0e\u56fe\u50cf\u5904\u7406\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/101508.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6d1b\u8c37 P10719 \\\\[GESP202406 \u4e94\u7ea7] \u9ed1\u767d\u683c\u2014\u2014\u66b4\u529b\u7f8e\u5b66\u4e0e\u56fe\u50cf\u5904\u7406\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6d1b\u8c37 P10719 [GESP202406 \u4e94\u7ea7] \u9ed1\u767d\u683c\u2014\u2014\u66b4\u529b\u7f8e\u5b66\u4e0e\u56fe\u50cf\u5904\u7406\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62 &#x1f4cc; \u6458\u8981 P10719 \u7ed9\u5b9a\u4e00\u4e2a n\u00d7m \u7684 01 \u7f51\u683c&#xff0c;\u627e\u81f3\u5c11\u5305\u542b k \u4e2a\u9ed1\u683c\u7684\u6700\u5c0f\u5b50\u77e9\u5f62\u9762\u79ef\u3002n,m\u2264100&#xff0c;\u66b4\u529b\u679a\u4e3e\u6240\u6709\u77e9\u5f62 O(n\u00b2\u00d7m\u00b2) \u53ef\u4ee5\u901a\u8fc7\u3002\u672c\u6587\u5206\u6790\u4e86\u66b4\u529b\u89e3\u6cd5\u7684\u8bbe\u8ba1\u601d\u8def\u2014\u2014\u4ece\u5de6\u4e0a\u89d2\u51fa\u53d1&#xff0c;\u9010\u6b65\u6269\u5c55\u5bbd\u5ea6\u548c\u9ad8\u5ea6&#xff0c;\u9047\u5230\u6ee1\u8db3\u6761\u4ef6\u7684\u5c31\u8bb0\u5f55\u9762\u79ef\u5e76\u8df3\u51fa\u2014\u2014\u5e76\u5ef6\u4f38\u5230\u4e8c\u503c\u56fe\u50cf\u5904\u7406\u4e2d\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62&amp;#xff0","og_url":"https:\/\/www.wsisp.com\/helps\/101508.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-06T15:49:14+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/101508.html","url":"https:\/\/www.wsisp.com\/helps\/101508.html","name":"\u6d1b\u8c37 P10719 \\\\[GESP202406 \u4e94\u7ea7] \u9ed1\u767d\u683c\u2014\u2014\u66b4\u529b\u7f8e\u5b66\u4e0e\u56fe\u50cf\u5904\u7406\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-06T15:49:14+00:00","dateModified":"2026-09-06T15:49:14+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/101508.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/101508.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/101508.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6d1b\u8c37 P10719 \\\\[GESP202406 \u4e94\u7ea7] \u9ed1\u767d\u683c\u2014\u2014\u66b4\u529b\u7f8e\u5b66\u4e0e\u56fe\u50cf\u5904\u7406\u7684\u6700\u5c0f\u5916\u63a5\u77e9\u5f62"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/101508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=101508"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/101508\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=101508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=101508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=101508"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=101508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}