{"id":705,"date":"2023-10-18T22:12:10","date_gmt":"2023-10-18T14:12:10","guid":{"rendered":"http:\/\/ggapa.net:81\/?p=705"},"modified":"2023-10-18T22:12:10","modified_gmt":"2023-10-18T14:12:10","slug":"%e6%97%a0%e5%90%91%e5%9b%be%e7%9a%84%e8%bf%9e%e9%80%9a%e6%80%a7","status":"publish","type":"post","link":"http:\/\/ggapa.net:81\/2023\/10\/18\/%e6%97%a0%e5%90%91%e5%9b%be%e7%9a%84%e8%bf%9e%e9%80%9a%e6%80%a7\/","title":{"rendered":"\u65e0\u5411\u56fe\u7684\u8fde\u901a\u6027"},"content":{"rendered":"
\u5728\u65e0\u5411\u56fe\u4e2d\u6240\u6709\u80fd\u591f\u4e92\u901a\u7684\u70b9\u6784\u6210\u4e86\u8fde\u901a\u5206\u91cf\uff0c\u5176\u4e2d\u6709\u4e00\u4e9b\u5173\u952e\u7684\u70b9\uff0c\u5982\u679c\u5220\u9664\u5b83\uff0c\u5982\u679c\u8fd9\u4e2a\u8054\u901a\u5206\u91cf\u88ab\u5206\u6210\u4e86\u4e24\u4e2a\u6216\u8005\u66f4\u591a\uff0c\u5219\u79f0\u8fd9\u4e2a\u70b9\u4e3a\u5272\u70b9\u3002<\/p>\n
\u901a\u4fd7\u7684\u8bb2\uff0c\u73b0\u5728\u6709\u5f88\u591a\u4e2a\u4e3b\u673a\u8fde\u5728\u4e00\u8d77\u6784\u6210\u7f51\u7edc\uff0c\u4f46\u662f\u5982\u679c\u6709\u4e00\u4e2a\u4e3b\u673a\u70c2\u6389\u4e86,\u4f60\u5c31\u65e0\u6cd5\u8bbf\u95ee\u6d1b\u8c37\uff0c\u5219\u79f0\u5219\u79f0\u8fd9\u4e2a\u4e3b\u673a\u662f\u4e00\u4e2a\u5272\u70b9\u3002<\/p>\n
\u5728\u901a\u8fc7 DFS \u904d\u5386\u4e2a\u56fe\u7684\u65f6\u5019\uff0c\u5f88\u5bb9\u6613\u53d1\u73b0\u5982\u679c\u4e00\u4e2a\u70b9\u662f\u5272\u70b9\uff0c\u5219\u5b83\u7684\u513f\u5b50\u4eec\u90fd\u65e0\u6cd5\u4e0d\u901a\u8fc7\u8fd8\u6ca1\u88ab\u8bbf\u95ee\u8fc7\u7684\u8fb9\u8fd4\u56de\u5272\u70b9\u4e4b\u524d\u7684\u70b9\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n
\u53ef\u4ee5\u53d1\u73b0\u8282\u70b9 2\u30013 \u90fd\u662f\u5272\u70b9\uff0c\u8282\u70b9 2 \u7684\u5b50\u8282\u70b9\u4eec\u4e0d\u80fd\u5728\u4e0d\u901a\u8fc7\u8282\u70b9 2 \u7684\u60c5\u51b5\u4e0b\u5230\u8fbe\u8282\u70b9\u4e00\uff0c\u8282\u70b9 3 \u7684\u5b50\u8282\u70b9\u4eec\u53ea\u80fd\u901a\u8fc7 3 \u5230\u8fbe\u8282\u70b9 1\u30012\u3002<\/p>\n
\u4f46\u662f\u8282\u70b9 4 \u4e0d\u662f\u5272\u70b9\uff0c\u56e0\u4e3a\u8282\u70b9 5 \u53ef\u4ee5\u76f4\u63a5\u8df3\u8fc7\u8282\u70b9 4 \u5230\u8fbe\u8282\u70b9 3\u3002<\/p>\n
\u77e5\u9053\u4e86\u6c42\u5272\u70b9\u7684\u539f\u7406\u4e4b\u540e\u6211\u4eec\u8003\u8651\u7b97\u6cd5\u5b9e\u73b0\uff0c\u5b9a\u4e49\u4e24\u4e2a\u6570\u7ec4 $dfn[i]$ \u548c $low[i]$\u3002 <\/p>\n
$dfn[i]$ \u8868\u793a\u7b2c $i$ \u4e2a\u8282\u70b9\u7b2c\u4e00\u6b21\u88ab\u8bbf\u95ee\u5230\u7684\u987a\u5e8f\u3002<\/p>\n
$low[i]$ \u8868\u793a\u7b2c $i$ \u4e2a\u8282\u70b9\u548c $i$ \u7684\u540e\u4ee3\u5728\u4e0d\u7ecf\u8fc7\u5df2\u7ecf\u88ab\u8bbf\u95ee\u8fc7\u7684\u8fb9\u7684\u6761\u4ef6\u4e0b\uff0c\u80fd\u5230\u8fbe\u7684 $dfn[]$ \u6700\u5c0f\u7684\u8282\u70b9\u3002<\/p>\n
\u5c06\u521a\u521a\u7684\u56fe\u4ece\u8282\u70b9 1 \u5f00\u59cb\u904d\u5386\u5f97\u5230\u7684\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n