{"id":79848,"date":"2026-03-03T11:17:15","date_gmt":"2026-03-03T03:17:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/79848.html"},"modified":"2026-03-03T11:17:15","modified_gmt":"2026-03-03T03:17:15","slug":"%e6%95%b0%e6%8d%ae%e7%bb%93%e6%9e%84_%e7%ba%bf%e6%80%a7%e8%a1%a8%e7%9a%84%e9%93%be%e5%bc%8f%e8%a1%a8%e7%a4%ba%e5%92%8c%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/79848.html","title":{"rendered":"\u6570\u636e\u7ed3\u6784_\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u548c\u5b9e\u73b0"},"content":{"rendered":"<h3>\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u548c\u5b9e\u73b0<\/h3>\n<h4>\u94fe\u5f0f\u5b58\u50a8\u7684\u8868\u793a<\/h4>\n<ul>\n<li>\u94fe\u5f0f\u5b58\u50a8\u7ed3\u6784\n<ul>\n<li>\u7ed3\u70b9\u5728\u5b58\u50a8\u5668\u4e2d\u7684\u4f4d\u7f6e\u662f\u4efb\u610f\u7684&#xff0c;\u5373\u903b\u8f91\u4e0a\u76f8\u90bb\u7684\u6570\u636e\u5143\u7d20\u5728\u7269\u7406\u4e0a\u4e0d\u4e00\u5b9a\u76f8\u90bb<\/li>\n<\/ul>\n<\/li>\n<li>\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u53c8\u79f0\u4e3a<font color=\"purple\">\u975e\u987a\u5e8f\u6620\u50cf<\/font>\u6216<font color=\"brown\">\u94fe\u5f0f\u6620\u50cf<\/font>\u3002\n<ul>\n<li>\u7528\u4e00\u7ec4\u7269\u7406\u4f4d\u7f6e\u4efb\u610f\u7684\u5b58\u50a8\u5355\u5143\u6765\u5b58\u653e\u7ebf\u6027\u8868\u7684\u6570\u636e\u5143\u7d20\u3002<\/li>\n<li>\u8fd9\u7ec4\u5b58\u50a8\u5355\u5143\u65e2\u53ef\u4ee5\u662f\u8fde\u7eed\u7684&#xff0c;\u4e5f\u53ef\u4ee5\u662f\u4e0d\u8fde\u7eed\u7684&#xff0c;\u751a\u81f3\u662f\u96f6\u6563\u5206\u5e03\u5728\u5185\u5b58\u4e2d\u7684\u4efb\u610f\u4f4d\u7f6e\u4e0a\u7684\u3002<\/li>\n<li>\u94fe\u8868\u4e2d\u5143\u7d20\u7684\u903b\u8f91\u6b21\u5e8f\u548c\u7269\u7406\u6b21\u5e8f\u4e0d\u4e00\u5b9a\u76f8\u540c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u4e0e\u94fe\u5f0f\u5b58\u50a8\u6709\u5173\u7684\u672f\u8bed&#xff1a;\n<ul>\n<li><font color=\"brown\">\u7ed3\u70b9<\/font>&#xff1a;\u6570\u636e\u5143\u7d20\u5927\u7684\u5b58\u50a8\u6620\u50cf&#xff0c;\u7531\u6570\u636e\u57df\u548c\u6307\u9488\u57df\u4e24\u90e8\u5206\u7ec4\u6210<br \/>\n<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223\u6570\u636e\u57df\u2223\u6307\u9488\u57df\u2223\u203e\u203e\\\\overline{\\\\underline{|\u6570\u636e\u57df | \u6307\u9488\u57df|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mord cjk_fallback\">\u6570\u636e\u57df<\/span><span class=\"mord\">\u2223<\/span><span class=\"mord cjk_fallback\">\u6307\u9488\u57df<\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/li>\n<li><font color=\"brown\">\u94fe\u8868<\/font>&#xff1a;n\u4e2a\u7ed3\u70b9\u7531<font color=\"tomato\">\u6307\u9488\u94fe<\/font>\u7ec4\u6210\u4e00\u4e2a\u94fe\u8868\u3002\u5b83\u662f\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u5b58\u50a8\u6620\u50cf&#xff0c;\u79f0\u4e3a\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u5b58\u50a8\u7ed3\u6784<\/li>\n<li>\u5355\u94fe\u8868\u3001\u53cc\u94fe\u8868\u3001\u5faa\u73af\u94fe\u8868:\n<ul>\n<li>\u7ed3\u70b9\u53ea\u6709\u4e00\u4e2a\u6307\u9488\u57df\u7684\u94fe\u8868&#xff0c;\u79f0\u4e3a<font color=\"red\">\u5355\u94fe\u8868<\/font>\u6216\u7ebf\u6027\u94fe\u8868<\/li>\n<li>\u7ed3\u70b9\u6709\u4e24\u4e2a\u6307\u9488\u57df\u7684\u94fe\u8868&#xff0c;\u79f0\u4e3a<font color=\"tomato\">\u53cc\u94fe\u8868<\/font><\/li>\n<li>\u9996\u5c3e\u76f8\u63a5\u7684\u94fe\u8868\u79f0\u4e3a<font color=\"camel\">\u5faa\u73af\u94fe\u8868<\/font><\/li>\n<\/ul>\n<\/li>\n<li>\u5934\u6307\u9488\u3001\u5934\u7ed3\u70b9\u548c\u9996\u5143\u7ed3\u70b9:<br \/>\n<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223head\u2223\u203e\u203e\\\\overline{\\\\underline{|head|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mord mathnormal\">h<\/span><span class=\"mord mathnormal\">e<\/span><span class=\"mord mathnormal\">a<\/span><span class=\"mord mathnormal\">d<\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u2013&gt;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223info\u2223\u2212\u2223\u203e\u203e\\\\overline{\\\\underline{|info|-|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mord mathnormal\">in<\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.1076em\">f<\/span><span class=\"mord mathnormal\">o<\/span><span class=\"mord\">\u2223<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u2212<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u2013&gt;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223a1\u2223\u2212\u2223\u203e\u203e\\\\overline{\\\\underline{|a_1|-|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">1<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mord\">\u2223<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u2212<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u2013&gt;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223a2\u2223\u2212\u2223\u203e\u203e\\\\overline{\\\\underline{|a_2| -|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">2<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mord\">\u2223<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u2212<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u2013&gt;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223\u2026\u2223\u2212\u2223\u203e\u203e\\\\overline{\\\\underline{|\\\\dots|-|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"minner\">\u2026<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mord\">\u2223<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u2212<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u2013&gt;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223an\u2223null\u2223\u203e\u203e\\\\overline{\\\\underline{|a_n|null|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.1514em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mathnormal mtight\">n<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mord\">\u2223<\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mord mathnormal\">u<\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0197em\">ll<\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><br \/>\n\u5934\u6307\u9488<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2212\u2212&gt;&#8211;&gt;<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6667em;vertical-align: -0.0833em\"><\/span><span class=\"mord\">\u2212<\/span><span class=\"mord\">\u2212<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&gt;<\/span><\/span><\/span><\/span><\/span>\u5934\u7ed3\u70b9<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2212\u2212&gt;&#8211;&gt;<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6667em;vertical-align: -0.0833em\"><\/span><span class=\"mord\">\u2212<\/span><span class=\"mord\">\u2212<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&gt;<\/span><\/span><\/span><\/span><\/span>\u9996\u5143\u7ed3\u70b9<\/p>\n<ul>\n<li><font color=\"chocolate\">\u5934\u6307\u9488<\/font>&#xff1a;\u662f\u6307\u5411\u94fe\u8868\u4e2d\u7b2c\u4e00\u4e2a\u7ed3\u70b9\u7684\u6307\u9488:<\/li>\n<li><font color=\"chocolate\">\u9996\u5143\u7ed3\u70b9<\/font>&#xff1a;\u662f\u6307\u94fe\u8868\u4e2d\u5b58\u50a8\u7b2c\u4e00\u4e2a\u6570\u636e\u5143\u7d20<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">a1a_1<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.5806em;vertical-align: -0.15em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">1<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u7684\u7ed3\u70b9<\/li>\n<li><font color=\"chocolate\">\u5934\u7ed3\u70b9<\/font>&#xff1a;\u662f\u5728\u94fe\u8868\u7684\u9996\u5143\u7ed3\u70b9\u4e4b\u524d\u9644\u8bbe\u7684\u4e00\u4e2a\u7ed3\u70b9<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u95ee\u9898\u8ba8\u8bba\n<li>\u5982\u4f55\u8868\u793a\u7a7a\u8868&#xff1f;\n<ul>\n<li>\u65e0\u5934\u7ed3\u70b9\u65f6&#xff0c;\u5934\u6307\u9488\u4e3a\u7a7a\u65f6\u8868\u793a\u7a7a\u8868<\/li>\n<li>\u6709\u5934\u7ed3\u70b9\u65f6&#xff0c;\u5f53\u5934\u7ed3\u70b9\u7684\u6307\u9488\u57df\u4e3a\u7a7a\u65f6\u8868\u793a\u7a7a\u8868<\/li>\n<\/ul>\n<\/li>\n<li>\u5728\u94fe\u8868\u4e2d\u8bbe\u7f6e<font color=\"seagreen\">\u5934\u7ed3\u70b9<\/font>\u7684\u597d\u5904&#xff1f;\n<ul>\n<li>\u4fbf\u4e8e<font color=\"red\">\u9996\u5143\u7ed3\u70b9<\/font>\u7684\u5904\u7406<br \/>\n\u9996\u5143\u7ed3\u70b9\u7684\u5730\u5740\u4fdd\u5b58\u5728\u5934\u7ed3\u70b9\u7684\u6307\u9488\u57df\u4e2d,\u6240\u4ee5\u5728\u94fe\u8868\u7684\u7b2c\u4e00\u4e2a\u4f4d\u7f6e\u4e0a\u7684\u64cd\u4f5c\u548c\u5176\u5b83\u4f4d\u7f6e\u4e00\u81f4&#xff0c;\u65e0\u987b\u8fdb\u884c\u7279\u6b8a\u5904\u7406;<\/li>\n<li>\u4fbf\u4e8e<font color=\"royalblue\">\u7a7a\u8868\u548c\u975e\u7a7a\u8868<\/font>\u7684\u7edf\u4e00\u5904\u7406<br \/>\n\u65e0\u8bba\u94fe\u8868\u662f\u5426\u4e3a\u7a7a&#xff0c;\u5934\u6307\u9488\u90fd\u662f\u6307\u5411\u5934\u7ed3\u70b9\u7684\u975e\u7a7a\u6307\u9488&#xff0c;\u56e0\u6b64\u7a7a\u8868\u548c\u975e\u7a7a\u8868\u7684\u5904\u7406\u4e5f\u5c31\u7edf\u4e00\u4e86\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5934\u7ed3\u70b9\u7684<font color=\"brown\">\u6570\u636e\u57df<\/font>\u5185\u88c5\u7684\u662f\u4ec0\u4e48?<br \/>\n\u5934\u7ed3\u70b9\u7684<font color=\"orange\">\u6570\u636e\u57df<\/font>\u53ef\u4ee5\u4e3a\u7a7a&#xff0c;\u4e5f\u53ef\u5b58\u653e\u7ebf\u6027<font color=\"yellowgreen\">\u8868\u957f\u5ea6<\/font>\u7b49\u9644\u52a0\u4fe1\u606f&#xff0c;\u4f46\u6b64\u7ed3\u70b9\u4e0d\u80fd\u8ba1\u5165\u94fe\u8868\u957f\u5ea6\u503c\u3002<\/li>\n<\/li>\n<li>\u94fe\u8868(\u94fe\u5f0f\u5b58\u50a8\u7ed3\u6784)\u7684\u7279\u70b9\n<li>\u7ed3\u70b9\u5728\u5b58\u50a8\u5668\u4e2d\u7684\u4f4d\u7f6e\u662f\u4efb\u610f\u7684&#xff0c;\u5373\u903b\u8f91\u4e0a\u76f8\u90bb\u7684\u6570\u636e\u5143\u7d20\u5728\u7269\u7406\u4e0a\u4e0d\u4e00\u5b9a\u76f8\u90bb\u3002<\/li>\n<li>\u8bbf\u95ee\u65f6\u53ea\u80fd\u901a\u8fc7\u5934\u6307\u9488\u8fdb\u5165\u94fe\u8868&#xff0c;\u5e76\u901a\u8fc7\u6bcf\u4e2a\u7ed3\u70b9\u7684\u6307\u9488\u57df\u4f9d\u6b21\u5411\u540e<font color=\"amber\">\u987a\u5e8f\u626b\u63cf<\/font>\u5176\u4f59\u7ed3\u70b9&#xff0c;\u6240\u4ee5\u5bfb\u627e\u7b2c\u4e00\u4e2a\u7ed3\u70b9\u548c\u6700\u540e\u4e00\u4e2a\u7ed3\u70b9\u6240\u82b1\u8d39\u7684\u65f6\u95f4\u4e0d\u7b49<\/li>\n<li>\u8fd9\u79cd\u5b58\u53d6\u5143\u7d20\u7684\u65b9\u6cd5\u88ab\u79f0\u4e3a<font color=\"seagreen\">\u987a\u5e8f\u5b58\u53d6\u6cd5<\/font><\/li>\n<\/li>\n<\/ul>\n<h4>\u5355\u94fe\u8868<\/h4>\n<h5>\u5b9a\u4e49<\/h5>\n<p>\u6bcf\u4e2a\u7ed3\u70b9\u53ea\u6709\u4e00\u4e2a\u6307\u9488\u57df<\/p>\n<p>struct Lnode<br \/>\n{<br \/>\n   ElemType data;\/\/\u7ed3\u70b9\u7684\u6570\u636e\u57df<br \/>\n   Lnode *next;\/\/\u7ed3\u70b9\u7684\u6307\u9488\u57df<br \/>\n};<br \/>\ntypedef Lnode *LinkList;   \/\/LinkList\u4e3a\u6307\u5411\u7ed3\u6784\u4f53Lnode\u7684\u6307\u9488\u7c7b\u578b<\/p>\n<p>\u81ea\u5df1\u5b9a\u4e49\u7684\u65f6\u5019\u4f7f\u7528\u4e86\u81ea\u5df1\u7684\u7c7b\u578b <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2212\u2212&gt;&#8211;&gt;<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6667em;vertical-align: -0.0833em\"><\/span><span class=\"mord\">\u2212<\/span><span class=\"mord\">\u2212<\/span><span class=\"mspace\" style=\"margin-right: 0.2778em\"><\/span><span class=\"mrel\">&gt;<\/span><\/span><\/span><\/span><\/span> \u5d4c\u5957\u5b9a\u4e49<\/p>\n<h5>\u7b97\u6cd5<\/h5>\n<h6>\u30102.1\u3011\u57fa\u7840<\/h6>\n<ul>\n<li>\n<p>\u521d\u59cb\u5316<\/p>\n<ul>\n<li>\u7b97\u6cd5\u6b65\u9aa4&#xff1a;\n<ul>\n<li>\u751f\u6210\u65b0\u7ed3\u70b9\u4f5c\u5934\u7ed3\u70b9&#xff0c;\u7528\u5934\u6307\u9488L\u6307\u5411\u5934\u7ed3\u70b9\u3002<\/li>\n<li>\u5c06\u5934\u7ed3\u70b9\u7684\u6307\u9488\u57df\u7f6e\u7a7a\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u7b97\u6cd5\u5b9e\u73b0&#xff1a;<\/li>\n<\/ul>\n<p>bool InitList(LinkList &amp;L)<br \/>\n{<br \/>\n   L &#061; new Lnode; \/\/\u5806\u533a\u5f00\u8f9f\u4e00\u4e2a\u5934\u7ed3\u70b9&#xff0c;\u7ed3\u70b9\u7684\u6570\u636e\u7c7b\u578b\u4e3aLnode<br \/>\n   L-&gt;next &#061; nullptr;  \/\/\u7a7a\u8868&#xff0c;\u4e5f\u5c31\u662f\u8bf4\u5934\u7ed3\u70b9\u7684\u6307\u9488\u6307\u5411\u4e3a\u7a7a<br \/>\n   return true;<br \/>\n}<br \/>\n\/\/LinkList &amp;L\u7b49\u4ef7\u4e8e Lnode *&amp;L&#xff0c;Lnode *&amp;L\u662f\u4e00\u4e2a\u6307\u5411\u6307\u9488\u7684\u5f15\u7528<\/p>\n<\/li>\n<li>\n<p>\u5224\u65ad\u662f\u5426\u4e3a\u7a7a<\/p>\n<ul>\n<li><font color=\"purple\">\u7a7a\u8868<\/font>&#xff1a;\u94fe\u8868\u4e2d\u65e0\u5143\u7d20&#xff0c;\u79f0\u4e3a\u7a7a\u94fe\u8868(\u5934\u6307\u9488\u548c\u5934\u7ed3\u70b9\u4ecd\u7136\u5728)<\/li>\n<li>\u7b97\u6cd5\u601d\u8def&#xff1a;\u5224\u65ad\u5934\u7ed3\u70b9\u6307\u9488\u57df\u662f\u5426\u4e3a\u7a7a<\/li>\n<li>\u7b97\u6cd5\u5b9e\u73b0&#xff1a;<\/li>\n<\/ul>\n<p>bool IsEmpty(const LinkList &amp;L)<br \/>\n{<br \/>\n   if(L-&gt;next)\/\/\u975e\u7a7a<br \/>\n   {<br \/>\n      return false;<br \/>\n   }<br \/>\n   else<br \/>\n   {<br \/>\n      return true;<br \/>\n   }<br \/>\n}<\/p>\n<\/li>\n<li>\n<p>\u94fe\u8868\u7684\u9500\u6bc1&#xff1a;\u9500\u6bc1\u540e\u4e0d\u5b58\u5728<\/p>\n<ul>\n<li>\u7b97\u6cd5\u601d\u8def&#xff1a;\u4ece\u5934\u6307\u9488\u5f00\u59cb&#xff0c;\u4f9d\u6b21\u91ca\u653e\u6240\u6709\u7ed3\u70b9<\/li>\n<li>\u7b97\u6cd5\u5b9e\u73b0&#xff1a;<\/li>\n<\/ul>\n<p>bool DestroyList(LinkList &amp;L)<br \/>\n{<br \/>\n   \/\/\u5224\u65ad\u94fe\u8868\u662f\u5426\u4e3a\u7a7a<br \/>\n   if(IsEmpty(L))<br \/>\n   {<br \/>\n      cerr &lt;&lt; &#034;empty List!&#034; &lt;&lt; endl;<br \/>\n      return false;<br \/>\n   }<br \/>\n   while (L)\/\/\u94fe\u8868\u8fd8\u672a\u5230\u8fbe\u5c3e\u7aef<br \/>\n   {<br \/>\n      Node *temp &#061; L-&gt;next;\/\/\u5c06\u5934\u6307\u9488\u6307\u5411\u4e0b\u4e00\u4e2a\u7ed3\u70b9<br \/>\n      delete L;<br \/>\n      L &#061; temp;<br \/>\n   }<br \/>\n   return true;<br \/>\n}<\/p>\n<\/li>\n<li>\n<p>\u6e05\u7a7a\u94fe\u8868&#xff1a;\u94fe\u8868\u53d8\u6210\u7a7a\u94fe\u8868&#xff0c;\u8fd8\u5b58\u5728<\/p>\n<ul>\n<li>\u7b97\u6cd5\u601d\u8def&#xff1a;\u4f9d\u6b21\u91ca\u653e\u6240\u6709\u7ed3\u70b9&#xff0c;\u5e76\u5c06\u5934\u7ed3\u70b9\u6307\u9488\u57df\u8bbe\u7f6e\u4e3a\u7a7a<\/li>\n<li>\u7b97\u6cd5\u5b9e\u73b0&#xff1a;<\/li>\n<\/ul>\n<p>bool ClearList(LinkList &amp;L)<br \/>\n{<br \/>\n   \/\/\u5224\u65ad\u94fe\u8868\u662f\u5426\u4e3a\u7a7a<br \/>\n   if(IsEmpty(L))<br \/>\n   {<br \/>\n      cerr &lt;&lt; &#034;empty List!&#034; &lt;&lt; endl;<br \/>\n      return false;<br \/>\n   }<br \/>\n   Node *p &#061; L -&gt; next;    \/\/\u4fdd\u7559\u4e86\u5934\u7ed3\u70b9<br \/>\n   while (p)\/\/\u94fe\u8868\u8fd8\u672a\u5230\u8fbe\u5c3e\u7aef<br \/>\n   {<br \/>\n      Node *temp &#061; p-&gt;next;\/\/\u5c06\u5934\u6307\u9488\u6307\u5411\u4e0b\u4e00\u4e2a\u7ed3\u70b9<br \/>\n      delete p;<br \/>\n      p &#061; temp;<br \/>\n   }<br \/>\n   L -&gt; next &#061; nullptr;       \/\/\u5934\u7ed3\u70b9\u6307\u9488\u57df\u4e3a\u7a7a<br \/>\n   return true;<br \/>\n}<\/p>\n<\/li>\n<li>\n<p>\u6c42\u94fe\u8868\u8868\u957f \u8fd4\u56de\u8868\u4e2d\u5143\u7d20\u4e2a\u6570<\/p>\n<ul>\n<li>\u7b97\u6cd5\u601d\u8def&#xff1a;\u4ece\u9996\u5143\u7ed3\u70b9\u5f00\u59cb&#xff0c;\u4f9d\u6b21\u8ba1\u6570\u6240\u6709\u7ed3\u70b9<\/li>\n<li>\u7b97\u6cd5\u5b9e\u73b0&#xff1a;<\/li>\n<\/ul>\n<p>int GetLength(const LinkList &amp;L)<br \/>\n{<br \/>\n   Lnode *p;<br \/>\n   p &#061; L-&gt;next;<br \/>\n   int cnt &#061; 0;<br \/>\n   while (p)<br \/>\n   {<br \/>\n      &#043;&#043;cnt;<br \/>\n      p &#061; p-&gt;next;<br \/>\n   }<br \/>\n   return cnt;<br \/>\n}<br \/>\n\/\/\u7b97\u6cd5\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n)<\/p>\n<\/li>\n<\/ul>\n<h6>\u30102.2\u3011\u53d6\u503c<\/h6>\n<p>\u53d6\u5355\u94fe\u8868\u4e2d\u7b2ci\u4e2a\u5143\u7d20\u5185\u5bb9<\/p>\n<ul>\n<li>\u7b97\u6cd5\u601d\u8def&#xff1a;\u4ece\u94fe\u8868\u7684\u5934\u6307\u9488\u51fa\u53d1&#xff0c;\u987a\u7740\u94fe\u57dfnext\u9010\u4e2a\u7ed3\u70b9\u5f80\u4e0b\u641c\u7d22&#xff0c;\u76f4\u81f3\u641c\u7d22\u5230\u7b2ci\u4e2a\u7ed3\u70b9\u4e3a\u6b62\u3002\u56e0\u6b64&#xff0c;<font color=\"tomato\">\u94fe\u8868\u4e0d\u662f\u968f\u673a\u5b58\u53d6\u7ed3\u6784<\/font><\/li>\n<li>\u7b97\u6cd5\u6b65\u9aa4&#xff1a;\n<li>\u4ece\u7b2c1\u4e2a\u7ed3\u70b9(L-&gt;next)\u987a\u94fe\u626b\u63cf&#xff0c;\u7528\u6307\u9488p\u6307\u5411\u5f53\u524d\u626b\u63cf\u5230\u7684\u7ed3\u70b9&#xff0c;p\u521d\u503cp&#061;L-&gt;next\u3002<\/li>\n<li>j\u505a\u8ba1\u6570\u5668&#xff0c;\u7d2f\u8ba1\u5f53\u524d\u626b\u63cf\u8fc7\u7684\u7ed3\u70b9\u6570&#xff0c;j\u521d\u503c\u4e3a1\u3002<\/li>\n<li>\u5f53p\u6307\u5411\u626b\u63cf\u5230\u7684\u4e0b\u4e00\u7ed3\u70b9\u65f6&#xff0c;\u8ba1\u6570\u5668j\u52a01\u3002<\/li>\n<li>\u5f53j&#061;&#061;i\u65f6&#xff0c;p\u6240\u6307\u7684\u7ed3\u70b9\u5c31\u662f\u8981\u627e\u7684\u7b2ci\u4e2a\u7ed3\u70b9\u3002<\/li>\n<\/li>\n<li>\u7b97\u6cd5\u5b9e\u73b0&#xff1a;bool GetElem(const LinkList &amp;L, const int &amp;i, ElemType &amp;e)<br \/>\n{<br \/>\n   if(i &lt; 0)<br \/>\n   {<br \/>\n      cerr &lt;&lt; &#034;out of range&#034; &lt;&lt; endl;<br \/>\n      return false;<br \/>\n   }<br \/>\n   Lnode *p &#061; L-&gt;next;<br \/>\n   for (int j &#061; 1; j &lt; i &#043; 1; &#043;&#043;j)<br \/>\n   {<br \/>\n      p &#061; p-&gt;next;<br \/>\n      if(!p)<br \/>\n      {<br \/>\n            cerr &lt;&lt; &#034;out of range&#034; &lt;&lt; endl;<br \/>\n            return false;\/\/\u5982\u679c\u6b64\u65f6p\u4e3a\u7a7a&#xff0c;\u610f\u5473\u7740\u5df2\u7ecf\u5230\u8fbe\u94fe\u8868\u5c3e\u7aef&#xff0c;\u505c\u6b62\u5faa\u73af<br \/>\n      }<br \/>\n   }<br \/>\n   e &#061; p-&gt;data;<br \/>\n   return true;<br \/>\n}<\/p>\n<\/li>\n<\/ul>\n<h6>\u30102.3\u3011\u67e5\u627e<\/h6>\n<p>\u6309\u503c\u67e5\u627e&#xff1a;<\/p>\n<li>\u83b7\u53d6\u8be5\u6570\u636e\u6240\u5728\u4f4d\u7f6e(\u5730\u5740)<\/li>\n<li>\u83b7\u53d6\u8be5\u6570\u636e\u6240\u5728\u7684\u4f4d\u7f6e\u5e8f\u53f7()<\/li>\n<ul>\n<li>\u7b97\u6cd5\u601d\u8def&#xff1a;\u4ece\u7b2c\u4e00\u4e2a\u5143\u7d20\u5f00\u59cb\u4f9d\u6b21\u6bd4\u5bf9&#xff0c;\u76f4\u5230\u627e\u5230\u76f8\u540c\u5143\u7d20<\/li>\n<li>\u7b97\u6cd5\u6b65\u9aa4&#xff1a;\n<li>.\u4ece\u7b2c\u4e00\u4e2a\u7ed3\u70b9\u8d77&#xff0c;\u4f9d\u6b21\u548ce\u76f8\u6bd4\u8f83\u3002<\/li>\n<li>\u5982\u679c\u627e\u5230\u4e00\u4e2a\u5176\u503c\u4e0ee\u76f8\u7b49\u7684\u6570\u636e\u5143\u7d20&#xff0c;\u5219\u8fd4\u56de\u5176\u5728\u94fe\u8868\u4e2d\u7684\u5730\u5740;<\/li>\n<li>\u5982\u679c\u67e5\u904d\u6574\u4e2a\u94fe\u8868\u90fd\u6ca1\u6709\u627e\u5230\u5176\u503c\u548ce\u76f8\u7b49\u7684\u5143\u7d20&#xff0c;\u5219\u8fd4\u56de0\u6216&#034;NULL&#034;<\/li>\n<li>\u8bbe\u7f6e\u4e00\u4e2a\u4ece1\u5f00\u59cb\u7684\u8ba1\u6570\u503c&#xff0c;\u6bcf\u6bd4\u5bf9\u4e00\u6b21\u5c31\u52a0\u4e00&#xff0c;<\/li>\n<li>\u627e\u5230\u540e\u6700\u540e\u8fd4\u56de\u5373\u53ef&#xff0c;<\/li>\n<li>\u6ca1\u627e\u5230\u8fd4\u56de0\u5373\u53ef\u3002<\/li>\n<\/li>\n<li>\u7b97\u6cd5\u5b9e\u73b0&#xff1a;size_t LocateElem(LinkList &amp;L, ElemType &amp;e)<br \/>\n{<br \/>\n   Lnode *p &#061; L-&gt;next;<br \/>\n   size_t cnt &#061; 1;<br \/>\n   while (p)<br \/>\n   {<br \/>\n      if (p-&gt;data &#061;&#061; e)<br \/>\n      {<br \/>\n         return cnt;<br \/>\n      }<br \/>\n      &#043;&#043;cnt;<br \/>\n      p &#061; p-&gt;next;<br \/>\n   }<br \/>\n   cerr &lt;&lt; &#034;not found&#034; &lt;&lt; endl;<br \/>\n   return 0;<br \/>\n}<br \/>\n\/\/\u7b97\u6cd5\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n)<\/p>\n<\/li>\n<\/ul>\n<h6>\u30102.4\u3011\u63d2\u5165<\/h6>\n<p>\u5728\u7b2ci\u4e2a\u7ed3\u70b9\u524d\u63d2\u5165\u503c\u4e3ae\u7684\u65b0\u7ed3\u70b9<\/p>\n<ul>\n<li>\u7b97\u6cd5\u6b65\u9aa4&#xff1a;\n<li>\u9996\u5148\u627e\u5230<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">ai\u22121a_{i-1}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6389em;vertical-align: -0.2083em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3117em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mathnormal mtight\">i<\/span><span class=\"mbin mtight\">\u2212<\/span><span class=\"mord mtight\">1<\/span><\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.2083em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u7684\u5b58\u50a8\u4f4d\u7f6ep\u3002<\/li>\n<li>\u751f\u6210\u4e00\u4e2a\u6570\u636e\u57df\u4e3ae\u7684\u65b0\u7ed3\u70b9s\u3002<\/li>\n<li>\u63d2\u5165\u65b0\u7ed3\u70b9:\n<li>\u65b0\u7ed3\u70b9\u7684\u6307\u9488\u57df\u6307\u5411\u7ed3\u70b9<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">aia_i<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.5806em;vertical-align: -0.15em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3117em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mathnormal mtight\">i<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>       s-&gt;next &#061; p-&gt; next;<\/li>\n<li>\u7ed3\u70b9<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">ai\u22121a_{i-1}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6389em;vertical-align: -0.2083em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3117em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mathnormal mtight\">i<\/span><span class=\"mbin mtight\">\u2212<\/span><span class=\"mord mtight\">1<\/span><\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.2083em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u7684\u6307\u9488\u57df\u6307\u5411\u65b0\u7ed3\u70b9   p-&gt;next &#061; s;<\/li>\n<\/li>\n<li><font color=\"green\">\u601d\u8003&#xff1a;\u6b65\u9aa4\u4e00\u548c\u6b65\u9aa4\u4e8c\u80fd\u4e92\u6362\u5417&#xff1f;<\/font><br \/>\n\u601d\u8def\u53ef\u884c&#xff0c;\u4f46\u76f4\u63a5\u6362\u6b65\u9aa4\u4f1a\u4e22\u5931<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">aia_i<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.5806em;vertical-align: -0.15em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3117em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mathnormal mtight\">i<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u7684\u5730\u5740<\/li>\n<\/li>\n<li>\u7b97\u6cd5\u5b9e\u73b0&#xff1a;bool InsertList(LinkList &amp;L, const int &amp;i, const ElemType &amp;e)<br \/>\n{<br \/>\n   Lnode *p &#061; L;<br \/>\n   int j &#061; 0;<br \/>\n   while(p &amp;&amp; j &lt; i-1)<br \/>\n   {<br \/>\n      p &#061; p-&gt;next;<br \/>\n      &#043;&#043;j;<br \/>\n   }<br \/>\n   \/\/\u5f02\u5e38\u5224\u65ad<br \/>\n   if(!p || i&lt;0)<br \/>\n   {<br \/>\n      cerr &lt;&lt; &#034;out of range&#034; &lt;&lt; endl;<br \/>\n      return false;<br \/>\n   }<br \/>\n   LinkList insert &#061; new Lnode;<br \/>\n   insert-&gt;data &#061; e;<br \/>\n   insert-&gt;next &#061; p-&gt;next;<br \/>\n   p-&gt;next &#061; insert;<br \/>\n   return true;<br \/>\n}<br \/>\n\/\/\u7b97\u6cd5\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n)<\/p>\n<\/li>\n<\/ul>\n<h6>\u30102.5\u3011\u5220\u9664<\/h6>\n<p>\u5220\u9664\u7b2ci\u4e2a\u7ed3\u70b9<\/p>\n<ul>\n<li>\u7b97\u6cd5\u6b65\u9aa4&#xff1a;\n<li>\u9996\u5148\u627e\u5230<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">ai\u22121a_{i-1}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.6389em;vertical-align: -0.2083em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3117em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mathnormal mtight\">i<\/span><span class=\"mbin mtight\">\u2212<\/span><span class=\"mord mtight\">1<\/span><\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.2083em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u7684\u5b58\u50a8\u4f4d\u7f6ep&#xff0c;\u4fdd\u5b58\u8981\u5220\u9664\u7684a\u7684\u503c\u3002<\/li>\n<li>\u4ee4p-&gt;next\u6307\u5411ai1\u3002 p-&gt;next &#061; p-&gt;next-&gt;next;<\/li>\n<li>\u91ca\u653e\u7ed3\u70b9a\u7684\u7a7a\u95f4\u3002<\/li>\n<\/li>\n<li>\u7b97\u6cd5\u5b9e\u73b0&#xff1a;bool EraseList(LinkList &amp;L, const int &amp;i)<br \/>\n{<br \/>\n   Lnode *p &#061; L;<br \/>\n   int j &#061; 0;<br \/>\n   while (p-&gt;next &amp;&amp; j &lt; i &#8211; 1)<br \/>\n   {<br \/>\n      p &#061; p-&gt;next;<br \/>\n      &#043;&#043;j;<br \/>\n   }                              \/\/\u5bfb\u627e\u7b2ci\u4e2a\u7ed3\u70b9&#xff0c;\u5e76\u4ee4p\u6307\u5411\u5176\u524d\u9a71<br \/>\n   if (!(p-&gt;next) || i &lt; 0)<br \/>\n   {<br \/>\n      cerr &lt;&lt; &#034;out of range&#034; &lt;&lt; endl;<br \/>\n      return false;<br \/>\n   }<br \/>\n   Lnode *q &#061; p-&gt;next;<br \/>\n   p-&gt;next &#061; p-&gt;next-&gt;next;<br \/>\n   delete q;<br \/>\n   return true;<br \/>\n}<br \/>\n\/\/\u7b97\u6cd5\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n)<\/p>\n<\/li>\n<\/ul>\n<h6>\u30102.6\u3011\u5355\u94fe\u8868\u7684\u5efa\u7acb<\/h6>\n<li>\n<p>\u5934\u63d2\u6cd5\u5143\u7d20\u63d2\u5165\u5728\u94fe\u8868\u5934\u90e8&#xff0c;\u4e5f\u53eb\u524d\u63d2\u6cd5<\/p>\n<li>\u7b97\u6cd5\u6b65\u9aa4\n<li>\u4ece\u4e00\u4e2a\u7a7a\u8868\u5f00\u59cb&#xff0c;\u91cd\u590d\u8bfb\u5165\u6570\u636e;<\/li>\n<li>\u751f\u6210\u65b0\u7ed3\u70b9&#xff0c;\u5c06\u8bfb\u5165\u6570\u636e\u5b58\u653e\u5230\u65b0\u7ed3\u70b9\u7684\u6570\u636e\u57df\u4e2d<\/li>\n<li>\u4ece\u6700\u540e\u4e00\u4e2a\u7ed3\u70b9\u5f00\u59cb&#xff0c;\u4f9d\u6b21\u5c06\u5404\u7ed3\u70b9\u63d2\u5165\u5230\u94fe\u8868\u7684\u524d\u7aef<\/li>\n<\/li>\n<li>\u7b97\u6cd5\u5b9e\u73b0&#xff1a;<\/li>\n<p>void CreatListHead(LinkList &amp;L, const size_t n)<br \/>\n{<br \/>\n   for (int i &#061; 0; i &lt; n; &#043;&#043;i)<br \/>\n   {<br \/>\n      Lnode *p &#061; new Lnode;<br \/>\n      cin &gt;&gt; p-&gt;data;<br \/>\n      p-&gt;next &#061; L-&gt;next;<br \/>\n      L-&gt;next &#061; p;<br \/>\n   }<br \/>\n}<\/p>\n<\/li>\n<li>\n<p>\u5c3e\u63d2\u6cd5\u5143\u7d20\u63d2\u5165\u5728\u94fe\u8868\u5c3e\u90e8&#xff0c;\u4e5f\u53eb\u540e\u63d2\u6cd5<\/p>\n<li>\u7b97\u6cd5\u6b65\u9aa4\n<li>\u4ece\u4e00\u4e2a\u7a7a\u8868L\u5f00\u59cb&#xff0c;\u5c06\u65b0\u7ed3\u70b9\u9010\u4e2a\u63d2\u5165\u5230\u94fe\u8868\u7684\u5c3e\u90e8&#xff0c;\u5c3e\u6307\u9488r\u6307\u5411\u94fe\u8868\u7684\u5c3e\u7ed3\u70b9\u3002<\/li>\n<li>\u521d\u59cb\u65f6&#xff0c;r\u540cL\u5747\u6307\u5411\u5934\u7ed3\u70b9\u3002\u6bcf\u8bfb\u5165\u4e00\u4e2a\u6570\u636e\u5143\u7d20\u5219\u7533\u8bf7\u4e00\u4e2a\u65b0\u7ed3\u70b9&#xff0c;\u5c06\u65b0\u7ed3\u70b9\u63d2\u5165\u5230\u5c3e\u7ed3\u70b9\u540e&#xff0c;r\u6307\u5411\u65b0\u7ed3\u70b9\u3002<\/li>\n<li>\u4ece\u6700\u540e\u4e00\u4e2a\u7ed3\u70b9\u5f00\u59cb&#xff0c;\u4f9d\u6b21\u5c06\u5404\u7ed3\u70b9\u63d2\u5165\u5230\u94fe\u8868\u7684\u540e\u7aef<\/li>\n<\/li>\n<li>\u7b97\u6cd5\u5b9e\u73b0&#xff1a;<\/li>\n<p>void CreatListTail(LinkList &amp;L, const size_t n)<br \/>\n{<br \/>\n   Lnode *r &#061; L;<br \/>\n   for (int i &#061; 0; i &lt; n; &#043;&#043;i)<br \/>\n   {<br \/>\n      Lnode *p &#061; new Lnode;<br \/>\n      cin &gt;&gt; p-&gt;data;<br \/>\n      p-&gt;next &#061; r-&gt;next;<br \/>\n      r-&gt;next &#061; p;<br \/>\n      r &#061; r-&gt;next;<br \/>\n   }<br \/>\n}<\/p>\n<\/li>\n<h4>\u53cc\u5411\u94fe\u8868<\/h4>\n<h5>\u5b9a\u4e49<\/h5>\n<ul>\n<li>\n<p>\u4e3a\u4ec0\u4e48\u8981\u8ba8\u8bba\u53cc\u5411\u94fe\u8868&#xff1a;<\/p>\n<ul>\n<li>\u5355\u94fe\u8868\u7684\u7ed3\u70b9\u2013&gt;\u6709\u6307\u793a\u540e\u7ee7\u7684\u6307\u9488\u57df\u2013&gt;\u627e\u540e\u7ee7\u7ed3\u70b9\u65b9\u4fbf;<br \/>\n\u5373:\u67e5\u627e\u67d0\u7ed3\u70b9\u7684\u540e\u7ee7\u7ed3\u70b9\u7684\u6267\u884c\u65f6\u95f4\u4e3a<font color=\"seagreen\">O(1)<\/font>\u3002<\/li>\n<li>\u65e0\u6307\u793a\u524d\u9a71\u7684\u6307\u9488\u57df\u2013&gt;\u627e\u524d\u9a71\u7ed3\u70b9\u96be:\u4ece\u8868\u5934\u51fa\u53d1\u67e5\u627e\u3002<br \/>\n\u5373:\u67e5\u627e\u67d0\u7ed3\u70b9\u7684\u524d\u9a71\u7ed3\u70b9\u7684\u6267\u884c\u65f6\u95f4\u4e3a<font color=\"plum\">O(n)<\/font>\u3002<\/li>\n<li>\u53ef\u7528<font color=\"amber\">\u53cc\u5411\u94fe\u8868<\/font>\u6765\u514b\u670d\u5355\u94fe\u8868\u7684\u8fd9\u79cd\u7f3a\u70b9<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><font color=\"amber\">\u53cc\u5411\u94fe\u8868<\/font>:\u5728\u5355\u94fe\u8868\u7684\u6bcf\u4e2a\u7ed3\u70b9\u91cc\u518d\u589e\u52a0\u4e00\u4e2a\u6307\u5411\u5176\u76f4\u63a5\u524d\u9a71\u7684\u6307\u9488\u57dfprior&#xff0c;\u8fd9\u6837\u94fe\u8868\u4e2d\u5c31\u5f62\u6210\u4e86\u6709\u4e24\u4e2a\u65b9\u5411\u4e0d\u540c\u7684\u94fe&#xff0c;\u6545\u79f0\u4e3a\u53cc\u5411\u94fe\u8868\u3002<br \/>\n<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223prior\u2223data\u2223next\u2223\u203e\u203e\\\\overline{\\\\underline{|prior|data|next|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mord mathnormal\">p<\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">r<\/span><span class=\"mord mathnormal\">i<\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">or<\/span><span class=\"mord\">\u2223<\/span><span class=\"mord mathnormal\">d<\/span><span class=\"mord mathnormal\">a<\/span><span class=\"mord mathnormal\">t<\/span><span class=\"mord mathnormal\">a<\/span><span class=\"mord\">\u2223<\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mord mathnormal\">e<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mord mathnormal\">t<\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<\/li>\n<li>\n<p>\u53cc\u5411\u94fe\u8868\u7684\u7ed3\u6784\u53ef\u5b9a\u4e49\u4e3a&#xff1a;<\/p>\n<p>typedef struct DuLnode<br \/>\n{<br \/>\n   ElemType data;<br \/>\n   DuLnode *prior, *next;<br \/>\n} * DuLinkList;<\/p>\n<\/li>\n<li>\n<p>\u53cc\u5411\u94fe\u8868\u7ed3\u6784\u7684\u5bf9\u79f0\u6027<\/p>\n<ul>\n<li>\u8bbe\u6307\u9488p\u6307\u5411\u67d0\u4e00\u7ed3\u70b9<\/li>\n<li>p-&gt;prior-&gt;next &#061; p &#061; p-&gt;next-&gt;prior <\/li>\n<li>\u5728\u53cc\u5411\u94fe\u8868\u4e2d\u6709\u4e9b\u64cd\u4f5c,\u56e0\u4ec5\u6d89\u53ca\u4e00\u4e2a\u65b9\u5411\u7684\u6307\u9488&#xff0c;\u6545\u5b83\u4eec\u7684\u7b97\u6cd5\u4e0e\u7ebf\u6027\u94fe\u8868\u7684\u76f8\u540c\u3002<\/li>\n<li>\u4f46\u5728\u63d2\u5165\u3001\u5220\u9664\u65f6&#xff0c;\u5219\u9700\u540c\u65f6\u4fee\u6539\u4e24\u4e2a\u65b9\u5411\u4e0a\u7684\u6307\u9488&#xff0c;\u4e24\u8005\u7684\u64cd\u4f5c\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u5747\u4e3aO(n)\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>\u7b97\u6cd5<\/h5>\n<h6>\u30103.1\u3011\u63d2\u5165<\/h6>\n<p>\u628ax\u63d2\u5165a\u548cb\u4e2d<br \/>\na\u7684\u540e\u7ee7\u6307\u5411x,b\u7684\u524d\u9a71\u6307\u5411x&#xff0c;x\u7684\u524d\u9a71\u662fa&#xff0c;x\u7684\u540e\u7ee7\u662fb<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260303031714-69a652ba33dce.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u7b97\u6cd5\u5b9e\u73b0&#xff1a;<\/p>\n<p>bool ListInsert_DuL(DuLinkList &amp;L, const int i, const ElemType &amp;e)<br \/>\n{<br \/>\n    \/\/\u79fb\u52a8\u6307\u9488\u5230i\u5904<br \/>\n    DuLnode *p &#061; L-&gt;next;<br \/>\n    int j &#061; 1;<br \/>\n    while (p-&gt;next &amp;&amp; j &lt; i)<br \/>\n    {<br \/>\n        &#043;&#043;j;<br \/>\n        p &#061; p-&gt;next;<br \/>\n    }<br \/>\n    if (j &lt; i || j &lt; 1) \/\/\u5982\u679ci\u5728\u94fe\u8868\u8303\u56f4\u5185&#xff0c;\u4e0a\u9762\u7684while\u5faa\u73af\u7684\u7ec8\u6b62\u6761\u4ef6\u5c31\u662fj&lt;i<br \/>\n    {<br \/>\n        cerr &lt;&lt; &#034;out of range&#034; &lt;&lt; endl;<br \/>\n        return false;<br \/>\n    }<br \/>\n    \/\/\u5728\u5806\u533a\u521b\u5efa\u8981\u63d2\u5165\u7684\u7ed3\u70b9<br \/>\n    DuLnode *s &#061; new DuLnode;<br \/>\n    s-&gt;data &#061; e;<br \/>\n    \/\/\u91cd\u65b0\u5efa\u7acb\u94fe\u63a5\u5173\u7cfb<br \/>\n    s-&gt;prior &#061; p-&gt;prior; \/\/\u7b2c\u4e00\u6b65&#xff1a;s\u7684\u524d\u8d8b\u7b49\u4e8ep\u7684\u524d\u8d8b<br \/>\n    p-&gt;prior-&gt;next &#061; s;  \/\/\u7b2c\u4e8c\u6b65&#xff0c;\u7528p\u7684\u524d\u8d8b\u7ed3\u70b9\u7684next\u6307\u5411\u63d2\u5165\u5143\u7d20s&#xff0c;\u66f4\u6539\u4e86\u7b2c\u4e00\u6761\u94fe<br \/>\n    s-&gt;next &#061; p;         \/\/\u7b2c\u4e09\u6b65&#xff1a;s\u7684\u540e\u7ee7\u6307\u5411p<br \/>\n    p-&gt;prior &#061; s;        \/\/\u7b2c\u56db\u6b65&#xff1a;p\u7684\u524d\u8d8b\u6539\u4e3a\u6307\u5411s&#xff0c;\u66f4\u6539\u4e86\u7b2c\u4e8c\u6761\u94fe<br \/>\n    \/\/return<br \/>\n    return true;<br \/>\n} <\/p>\n<h6>\u30103.2\u3011\u5220\u9664<\/h6>\n<ul>\n<li>\u64cd\u4f5c&#xff1a;\u628ab\u4ecea\u548cc\u4e2d\u95f4\u5220\u9664\n<ul>\n<li>p-&gt;prior-&gt;next&#061;p-&gt;next;<\/li>\n<li>p-&gt;next-&gt;prior&#061;p-&gt;prior;<\/li>\n<\/ul>\n<\/li>\n<li>\u5b9e\u73b0&#xff1a;<br \/>\n\u5220\u6389\u7b2ci\u4e2a<\/li>\n<\/ul>\n<p>bool ListErase_DuL(DuLinkList &amp;L, const int i)<br \/>\n{<br \/>\n    DuLnode *p &#061; L-&gt;next;<br \/>\n    int j &#061; 1;<br \/>\n    while (p-&gt;next &amp;&amp; j &lt; i) \/\/\u79fb\u52a8\u5230\u7b2ci\u4e2a\u5143\u7d20\u7684\u4f4d\u7f6e<br \/>\n    {<br \/>\n        &#043;&#043;j;<br \/>\n        p &#061; p-&gt;next;<br \/>\n    }<\/p>\n<p>    if (j &lt; i || j &lt; 1)<br \/>\n    {<br \/>\n        cerr &lt;&lt; &#034;out of range&#034; &lt;&lt; endl;<br \/>\n        return false;<br \/>\n    }<\/p>\n<p>    \/\/\u6539\u53d8\u94fe\u63a5\u5173\u7cfb<br \/>\n    p-&gt;prior-&gt;next &#061; p-&gt;next;\/\/p\u7684\u524d\u8d8b\u7ed3\u70b9\u7684next\u7b49\u4e8ep\u7684\u540e\u7ee7<br \/>\n    if ((p-&gt;next))\/\/\u5982\u679c\u5220\u9664\u7684\u4e0d\u662f\u6700\u540e\u4e00\u4e2a\u5143\u7d20<br \/>\n    {<br \/>\n        p-&gt;next-&gt;prior &#061; p-&gt;prior;<br \/>\n    }<br \/>\n    \/\/\u91ca\u653ep<br \/>\n    delete p;<br \/>\n    \/\/\u7ed3\u675f<br \/>\n    return true;<br \/>\n} <\/p>\n<h4>\u5faa\u73af\u94fe\u8868<\/h4>\n<h5>\u5b9a\u4e49<\/h5>\n<ul>\n<li>\u662f\u4e00\u79cd\u5934\u5c3e\u76f8\u63a5\u7684\u94fe\u8868<\/li>\n<li>\u5373:\u8868\u4e2d\u6700\u540e\u4e00\u4e2a\u7ed3\u70b9\u7684\u6307\u9488\u57df\u6307\u5411\u5934\u7ed3\u70b9&#xff0c;\u6574\u4e2a\u94fe\u8868\u5f62\u6210\u4e00\u4e2a\u73af<\/li>\n<li>\u4f18\u70b9:\u4ece\u8868\u4e2d\u4efb\u4e00\u7ed3\u70b9\u51fa\u53d1\u5747\u53ef\u627e\u5230\u8868\u4e2d\u5176\u4ed6\u7ed3\u70b9<\/li>\n<\/ul>\n<p><span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223head\u2223\u203e\u203e\\\\overline{\\\\underline{|head|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mord mathnormal\">h<\/span><span class=\"mord mathnormal\">e<\/span><span class=\"mord mathnormal\">a<\/span><span class=\"mord mathnormal\">d<\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u2013&gt;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223info\u2223\u2212\u2223\u203e\u203e\\\\overline{\\\\underline{|info|-|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mord mathnormal\">in<\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.1076em\">f<\/span><span class=\"mord mathnormal\">o<\/span><span class=\"mord\">\u2223<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u2212<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u2013&gt;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223a1\u2223\u2212\u2223\u203e\u203e\\\\overline{\\\\underline{|a_1|-|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">1<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mord\">\u2223<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u2212<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u2013&gt;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223a2\u2223\u2212\u2223\u203e\u203e\\\\overline{\\\\underline{|a_2| -|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">2<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mord\">\u2223<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u2212<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u2013&gt;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223\u2026\u2223\u2212\u2223\u203e\u203e\\\\overline{\\\\underline{|\\\\dots|-|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"minner\">\u2026<\/span><span class=\"mspace\" style=\"margin-right: 0.1667em\"><\/span><span class=\"mord\">\u2223<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u2212<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u2013&gt;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223an\u2223info\u2223\u203e\u203e\\\\overline{\\\\underline{|a_n|info|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.1514em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mathnormal mtight\">n<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mord\">\u2223<\/span><span class=\"mord mathnormal\">in<\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.1076em\">f<\/span><span class=\"mord mathnormal\">o<\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<ul>\n<li>\n<p><font color=\"brown\">\u6ce8\u610f:<\/font><\/p>\n<ul>\n<li>\u7531\u4e8e\u5faa\u73af\u94fe\u8868\u4e2d\u6ca1\u6709NULL\u6307\u9488&#xff0c;\u6545\u6d89\u53ca\u904d\u5386\u64cd\u4f5c\u65f6&#xff0c;\u5176\u7ec8\u6b62\u6761\u4ef6\u5c31\u4e0d\u518d\u50cf<font color=\"amber\">\u975e\u5faa\u73af\u94fe\u8868<\/font>\u90a3\u6837<font color=\"green\">\u5224\u65adp\u6216p-&gt;next\u662f\u5426\u4e3a\u7a7a<\/font>&#xff0c;\u800c\u662f\u5224\u65ad\u5b83\u4eec<font color=\"camel\">\u662f\u5426\u7b49\u4e8e\u5934\u6307\u9488<\/font>\u3002<\/li>\n<li>\u5faa\u73af\u6761\u4ef6&#xff1a;\n<ul>\n<li>\u5355\u94fe\u8868&#xff1a;p !&#061; nullptr;<br \/>\np-&gt;next !&#061; nullptr;<\/p>\n<\/li>\n<li>\u5355\u5faa\u73af\u94fe\u8868&#xff1a;p !&#061; L;<br \/>\np-&gt;next !&#061; L;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u8868\u793a\u65b9\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u5934\u6307\u9488\u8868\u793a&#xff1a;\n<ul>\n<li>\u627e<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">a1a_1<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.5806em;vertical-align: -0.15em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">1<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u7684\u65f6\u95f4\u590d\u6742\u5ea6&#xff1a;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">O(1)O(1)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/li>\n<li>\u627e<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">ana_n<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.5806em;vertical-align: -0.15em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.1514em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mathnormal mtight\">n<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u7684\u65f6\u95f4\u590d\u6742\u5ea6&#xff1a;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">O(n)O(n)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/li>\n<li><font color=\"amber\">\u4e0d\u65b9\u4fbf<\/font><\/li>\n<\/ul>\n<\/li>\n<li>\u5c3e\u6307\u9488\u8868\u793a&#xff1a;\n<ul>\n<li><span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">a1a_1<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.5806em;vertical-align: -0.15em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">1<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u7684\u50a8\u5b58\u4f4d\u7f6e&#xff1a;R\u2013&gt;next\u2013&gt;next<\/li>\n<li><span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">ana_n<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 0.5806em;vertical-align: -0.15em\"><\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.1514em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mathnormal mtight\">n<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u7684\u50a8\u5b58\u4f4d\u7f6e&#xff1a;R<\/li>\n<li>\u65f6\u95f4\u590d\u6742\u5ea6&#xff1a;<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">O(1)O(1)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/li>\n<\/ul>\n<\/li>\n<li><font color=\"chocolate\">\u6ce8\u610f<\/font>:\u8868\u7684\u64cd\u4f5c\u5e38\u5e38\u662f\u5728\u8868\u7684\u9996\u5c3e\u4f4d\u7f6e\u4e0a\u8fdb\u884c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><font color=\"tomato\">\u53cc\u5411\u5faa\u73af\u94fe\u8868<\/font>:\u548c\u5355\u94fe\u7684\u5faa\u73af\u8868\u7c7b\u4f3c&#xff0c;\u53cc\u5411\u94fe\u8868\u4e5f\u53ef\u4ee5\u6709\u5faa\u73af\u8868<\/p>\n<ul>\n<li>\u8ba9\u5934\u7ed3\u70b9\u7684\u524d\u9a71\u6307\u9488\u6307\u5411\u94fe\u8868\u7684\u6700\u540e\u4e00\u4e2a\u7ed3\u70b9<\/li>\n<li>\u8ba9\u6700\u540e\u4e00\u4e2a\u7ed3\u70b9\u7684\u540e\u7ee7\u6307\u9488\u6307\u5411\u5934\u7ed3\u70b9\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>\u5b9e\u73b0<\/h5>\n<p>\u5e26\u5c3e\u6307\u9488\u5faa\u73af\u94fe\u8868\u7684\u5408\u5e76(\u5c06Tb\u5408\u5e76\u5728Ta\u4e4b\u540e)<\/p>\n<ul>\n<li>\u5206\u6790&#xff1a;\n<ul>\n<li>p\u5b58\u8868\u5934\u7ed3\u70b9         p &#061; Ta-&gt;next;<\/li>\n<li>Tb\u8868\u5934\u63a5\u5230Ta\u8868\u5c3e    Ta-&gt;next&#061;Tb-&gt;next-&gt;next;<\/li>\n<li>\u91ca\u653eTb\u8868\u5934\u7ed3\u70b9      delete Tb-&gt;next;<\/li>\n<li>\u4fee\u6539\u6307\u9488            Tb-&gt;next&#061;p;<\/li>\n<\/ul>\n<\/li>\n<li>\u7b97\u6cd5\u5b9e\u73b0&#xff1a;LinkList Connect(LinkList Ta,LinkList Tb)<br \/>\n{<br \/>\n   p &#061; Ta-&gt;next;<br \/>\n   Ta-&gt;next&#061;Tb-&gt;next-&gt;next;<br \/>\n   delete Tb-&gt;next;<br \/>\n   Tb-&gt;next&#061;p;<br \/>\n   return Tb;<br \/>\n}<\/p>\n<\/li>\n<\/ul>\n<h3>\u5355\u94fe\u8868\u3001\u5faa\u73af\u94fe\u8868\u3001\u548c\u548c\u53cc\u5411\u94fe\u8868\u7684<font color=\"chocolate\">\u65f6\u95f4\u6548\u7387<\/font>\u6bd4\u8f83<\/h3>\n<table>\n<tr>\u67e5\u627e\u8868\u5934\u7ed3\u70b9(\u9996\u5143\u7ed3\u70b9)\u67e5\u627e\u8868\u5c3e\u7ed3\u70b9\u67e5\u627e\u7ed3\u70b9*P\u7684\u524d\u9a71\u7ed3\u70b9<\/tr>\n<tbody>\n<tr>\n<td align=\"center\">\u5e26\u5934\u7ed3\u70b9\u7684<font color=\"camel\">\u5355\u94fe\u8868<\/font>L<\/td>\n<td align=\"center\">L-&gt;next\u65f6\u95f4\u590d\u6742\u5ea6<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">O(1)O(1)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/td>\n<td align=\"center\">\u4eceL-&gt;next\u4f9d\u6b21\u5411\u540e\u904d\u5386\u65f6\u95f4\u590d\u6742\u5ea6<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">O(n)O(n)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/td>\n<td align=\"center\">\u901a\u8fc7p-&gt;next\u65e0\u6cd5\u627e\u5230\u5176\u524d\u9a71<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u5e26\u5934\u7ed3\u70b9<font color=\"chocolate\">\u4ec5\u8bbe\u5934\u6307\u9488L<\/font>\u7684\u5faa\u73af\u5355\u94fe\u8868<\/td>\n<td align=\"center\">L-&gt;next\u65f6\u95f4\u590d\u6742\u5ea6<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">O(1)O(1)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/td>\n<td align=\"center\">\u4eceL-&gt;next\u4f9d\u6b21\u5411\u540e\u904d\u5386\u65f6\u95f4\u590d\u6742\u5ea6<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">O(n)O(n)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/td>\n<td align=\"center\">\u901a\u8fc7p-&gt;next\u53ef\u4ee5\u627e\u5230\u5176\u524d\u9a71\u65f6\u95f4\u590d\u6742\u5ea6<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">O(n)O(n)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u5e26\u5934\u7ed3\u70b9<font color=\"camel\">\u4ec5\u8bbe\u5c3e\u6307\u9488R<\/font>\u7684\u5faa\u73af\u5355\u94fe\u8868<\/td>\n<td align=\"center\">L-&gt;next\u65f6\u95f4\u590d\u6742\u5ea6<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">O(1)O(1)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/td>\n<td align=\"center\">R\u65f6\u95f4\u590d\u6742\u5ea6<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">O(1)O(1)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/td>\n<td align=\"center\">\u901a\u8fc7p-&gt;next\u53ef\u4ee5\u627e\u5230\u5176\u524d\u9a71\u65f6\u95f4\u590d\u6742\u5ea6<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">O(n)O(n)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">n<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u5e26\u5934\u7ed3\u70b9\u7684<font color=\"green\">\u53cc\u5411\u5faa\u73af\u94fe\u8868<\/font>L<\/td>\n<td align=\"center\">L-&gt;next\u65f6\u95f4\u590d\u6742\u5ea6<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">O(1)O(1)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/td>\n<td align=\"center\">L-&gt;prior\u65f6\u95f4\u590d\u6742\u5ea6<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">O(1)O(1)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/td>\n<td align=\"center\">p-&gt;prior\u65f6\u95f4\u590d\u6742\u5ea6<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">O(1)O(1)<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u987a\u5e8f\u8868\u548c\u94fe\u8868\u7684\u6bd4\u8f83<\/h3>\n<ul>\n<li>\u94fe\u5f0f\u5b58\u50a8\u7ed3\u6784\u7684<font color=\"plum\">\u4f18\u70b9<\/font>:\n<ul>\n<li><font color=\"blue\">\u7ed3\u70b9\u7a7a\u95f4<\/font>\u53ef\u4ee5<font color=\"yellowgreen\">\u52a8\u6001\u7533\u8bf7\u548c\u91ca\u653e<\/font>;<\/li>\n<li>\u6570\u636e\u5143\u7d20\u7684\u903b\u8f91\u6b21\u5e8f\u9760\u7ed3\u70b9\u7684\u6307\u9488\u6765\u6307\u793a&#xff0c;<font color=\"purple\">\u63d2\u5165\u548c\u5220\u9664\u65f6\u4e0d\u9700\u8981\u79fb\u52a8\u6570\u636e\u5143\u7d20<\/font>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u94fe\u5f0f\u5b58\u50a8\u7ed3\u6784\u7684<font color=\"green\">\u7f3a\u70b9<\/font>:\n<ul>\n<li><font color=\"red\">\u5b58\u50a8\u5bc6\u5ea6\u5c0f<\/font>&#xff0c;\u6bcf\u4e2a\u7ed3\u70b9\u7684<font color=\"tomato\">\u6307\u9488\u57df\u9700\u989d\u5916\u5360\u7528\u5b58\u50a8\u7a7a\u95f4<\/font>\u3002\u5f53\u6bcf\u4e2a\u7ed3\u70b9\u7684\u6570\u636e\u57df\u6240\u5360\u5b57\u8282\u4e0d\u591a\u65f6&#xff0c;\u6307\u9488\u57df\u6240\u5360\u5b58\u50a8\u7a7a\u95f4\u7684\u6bd4\u91cd\u663e\u5f97\u5f88\u5927\u3002<\/li>\n<li>\u94fe\u5f0f\u5b58\u50a8\u7ed3\u6784\u662f<font color=\"plum\">\u975e\u968f\u673a\u5b58\u53d6\u7ed3\u6784<\/font>\u3002\u5bf9\u4efb\u4e00\u7ed3\u70b9\u7684\u64cd\u4f5c\u90fd\u8981\u4ece\u5934\u6307\u9488\u4f9d\u6307\u9488\u94fe\u67e5\u627e\u5230\u8be5\u7ed3\u70b9&#xff0c;\u8fd9\u589e\u52a0\u4e86\u7b97\u6cd5\u7684\u590d\u6742\u5ea6\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>\u5b58\u50a8\u5bc6\u5ea6<\/h4>\n<ul>\n<li>\u5b58\u50a8\u5bc6\u5ea6\u662f\u6307\u7ed3\u70b9\u6570\u636e\u672c\u8eab\u6240\u5360\u7684\u5b58\u50a8\u91cf\u548c\u6574\u4e2a\u7ed3\u70b9\u7ed3\u6784\u4e2d\u6240\u5360\u7684\u5b58\u50a8\u91cf\u4e4b\u6bd4&#xff0c;\u5373:<br \/>\n<h3>\u5b58\u50a8\u5bc6\u5ea6 &#061; <span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u7ed3\u70b9\u6570\u636e\u672c\u8eab\u5360\u7528\u7684\u7a7a\u95f4\u7ed3\u70b9\u5360\u7528\u7684\u7a7a\u95f4\u603b\u91cf\\\\frac{\u7ed3\u70b9\u6570\u636e\u672c\u8eab\u5360\u7528\u7684\u7a7a\u95f4}{\u7ed3\u70b9\u5360\u7528\u7684\u7a7a\u95f4\u603b\u91cf}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.2173em;vertical-align: -0.345em\"><\/span><span class=\"mord\"><span class=\"mopen nulldelimiter\"><\/span><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8723em\"><span class=\"\" style=\"top: -2.655em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord cjk_fallback mtight\">\u7ed3\u70b9\u5360\u7528\u7684\u7a7a\u95f4\u603b\u91cf<\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.23em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"frac-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3.394em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord cjk_fallback mtight\">\u7ed3\u70b9\u6570\u636e\u672c\u8eab\u5360\u7528\u7684\u7a7a\u95f4<\/span><\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.345em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><span class=\"mclose nulldelimiter\"><\/span><\/span><\/span><\/span><\/span><\/span><\/h3>\n<\/li>\n<\/ul>\n<p>\u4f8b\u5982&#xff1a;<br \/>\n<span class=\"katex--inline\"><span class=\"katex\"><span class=\"katex-mathml\">\u2223a1\u2223\u2217p\u2223\u203e\u203e\\\\overline{\\\\underline{|a_1|*p|}}<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.4em;vertical-align: -0.45em\"><\/span><span class=\"mord overline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.95em\"><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord underline\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.75em\"><span class=\"\" style=\"top: -2.59em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"underline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><span class=\"\" style=\"top: -3em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"mord\"><span class=\"mord\">\u2223<\/span><span class=\"mord\"><span class=\"mord mathnormal\">a<\/span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.3011em\"><span class=\"\" style=\"top: -2.55em;margin-left: 0em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">1<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.15em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mord\">\u2223<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mbin\">\u2217<\/span><span class=\"mspace\" style=\"margin-right: 0.2222em\"><\/span><span class=\"mord mathnormal\">p<\/span><span class=\"mord\">\u2223<\/span><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"\" style=\"top: -3.87em\"><span class=\"pstrut\" style=\"height: 3em\"><\/span><span class=\"overline-line\" style=\"border-bottom-width: 0.04em\"><\/span><\/span><\/span><span class=\"vlist-s\">\u200b<\/span><\/span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.45em\"><span class=\"\"><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><br \/>\n\u6570\u636e\u57df8\u4e2a\u5b57\u8282&#xff0c;\u6307\u9488\u57df4\u4e2a\u5b57\u8282&#xff0c;\u5b58\u50a8\u5bc6\u5ea6&#061;8\/12&#061;67%<\/p>\n<ul>\n<li>\u4e00\u822c\u5730&#xff0c;\u5b58\u50a8\u5bc6\u5ea6\u8d8a\u5927&#xff0c;\u5b58\u50a8\u7a7a\u95f4\u7684\u5229\u7528\u7387\u5c31\u8d8a\u9ad8\u3002<\/li>\n<li>\u663e\u7136&#xff0c;\u987a\u5e8f\u8868\u7684\u5b58\u50a8\u5bc6\u5ea6\u4e3a1(100%)&#xff0c;\u800c\u94fe\u8868\u7684\u5b58\u50a8\u5bc6\u5ea6\u5c0f\u4e8e1\u3002<\/li>\n<\/ul>\n<h4>\u4e0d\u540c\u60c5\u51b5\u7684\u6bd4\u8f83<\/h4>\n<table>\n<tr>\u6bd4\u8f83\u9879\u76ee\u987a\u5e8f\u8868\u94fe\u8868<\/tr>\n<tbody>\n<tr>\n<td align=\"center\">\u5b58\u50a8\u7a7a\u95f4<\/td>\n<td align=\"center\">\u9884\u5148\u5206\u914d&#xff0c;\u4f1a\u5bfc\u81f4\u7a7a\u95f4\u95f2\u7f6e\u6216\u6ea2\u51fa\u73b0\u8c61<\/td>\n<td align=\"center\">\u52a8\u6001\u5206\u914d&#xff0c;\u4e0d\u4f1a\u51fa\u73b0\u5b58\u50a8\u7a7a\u95f4\u95f2\u7f6e\u6216\u6ea2\u51fa\u73b0\u8c61<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u5b58\u50a8\u5bc6\u5ea6<\/td>\n<td align=\"center\">\u5b58\u50a8\u5bc6\u5ea6\u7b49\u4e8e1&#xff0c;\u903b\u8f91\u5173\u7cfb\u7b49\u4e8e\u5b58\u50a8\u5173\u7cfb&#xff0c;\u65e0\u989d\u5916\u7684\u5b58\u50a8\u5f00\u9500<\/td>\n<td align=\"center\">\u5b58\u50a8\u5bc6\u5ea6\u5c0f\u4e8e1&#xff0c;\u9700\u8981\u501f\u52a9\u6307\u9488\u6765\u4f53\u73b0\u5143\u7d20\u95f4\u7684\u903b\u8f91\u5173\u7cfb<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u5b58\u53d6\u5143\u7d20<\/td>\n<td align=\"center\">\u968f\u673a\u5b58\u53d6&#xff0c;\u6309\u4f4d\u7f6e\u8bbf\u95ee\u5143\u7d20\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(1)<\/td>\n<td align=\"center\">\u987a\u5e8f\u5b58\u53d6&#xff0c;\u6309\u4f4d\u7f6e\u8bbf\u95ee\u5143\u7d20\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n)<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u63d2\u5165\u3001\u5220\u9664<\/td>\n<td align=\"center\">\u5e73\u5747\u79fb\u52a8\u7ea6\u8868\u4e2d\u4e00\u534a\u5143\u7d20,\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n)<\/td>\n<td align=\"center\">\u4e0d\u9700\u79fb\u52a8\u5143\u7d20&#xff0c;\u786e\u5b9a\u63d2\u5165\u3001\u5220\u9664\u4f4d\u7f6e\u540e,\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n)<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u9002\u7528\u60c5\u51b5<\/td>\n<td align=\"center\">1. \u8868\u957f\u53d8\u5316\u4e0d\u5927&#xff0c;\u4e14\u80fd\u4e8b\u5148\u786e\u5b9a\u53d8\u5316\u7684\u8303\u56f42. \u5f88\u5c11\u8fdb\u884c\u63d2\u5165\u6216\u5220\u9664\u64cd\u4f5c&#xff0c;\u7ecf\u5e38\u6309\u5143\u7d20\u4f4d\u7f6e\u5e8f\u53f7\u8bbf\u95ee\u6570\u636e\u5143\u7d20<\/td>\n<td align=\"center\">1. \u957f\u5ea6\u53d8\u5316\u8f83\u59272. \u9891\u7e41\u8fdb\u884c\u63d2\u5165\u6216\u5220\u9664\u64cd\u4f5c<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u7c7b\u6bd4c&#043;&#043;\u6a21\u677f<\/td>\n<td align=\"center\">vector<\/td>\n<td align=\"center\">list<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u548c\u5b9e\u73b0<br \/>\n\u94fe\u5f0f\u5b58\u50a8\u7684\u8868\u793a<br \/>\n\u94fe\u5f0f\u5b58\u50a8\u7ed3\u6784<br \/>\n\u7ed3\u70b9\u5728\u5b58\u50a8\u5668\u4e2d\u7684\u4f4d\u7f6e\u662f\u4efb\u610f\u7684&#xff0c;\u5373\u903b\u8f91\u4e0a\u76f8\u90bb\u7684\u6570\u636e\u5143\u7d20\u5728\u7269\u7406\u4e0a\u4e0d\u4e00\u5b9a\u76f8\u90bb<br \/>\n\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u53c8\u79f0\u4e3a\u975e\u987a\u5e8f\u6620\u50cf\u6216\u94fe\u5f0f\u6620\u50cf\u3002<br \/>\n\u7528\u4e00\u7ec4\u7269\u7406\u4f4d\u7f6e\u4efb\u610f\u7684\u5b58\u50a8\u5355\u5143\u6765\u5b58\u653e\u7ebf\u6027\u8868\u7684\u6570\u636e\u5143\u7d20\u3002\u8fd9\u7ec4\u5b58\u50a8\u5355\u5143\u65e2\u53ef\u4ee5\u662f\u8fde\u7eed\u7684&#xff0c;\u4e5f\u53ef\u4ee5\u662f\u4e0d\u8fde\u7eed\u7684&#xff0c;\u751a\u81f3\u662f\u96f6\u6563\u5206\u5e03\u5728\u5185\u5b58\u4e2d\u7684\u4efb\u610f\u4f4d\u7f6e\u4e0a\u7684\u3002\u94fe\u8868\u4e2d\u5143\u7d20\u7684\u903b\u8f91\u6b21\u5e8f\u548c\u7269\u7406\u6b21\u5e8f\u4e0d\u4e00\u5b9a\u76f8\u540c\u3002<br \/>\n\u4e0e\u94fe\u5f0f\u5b58\u50a8\u6709\u5173\u7684\u672f\u8bed&#xff1a;<br \/>\n\u7ed3\u70b9&#xff1a;\u6570\u636e\u5143\u7d20\u5927\u7684\u5b58\u50a8\u6620\u50cf&amp;#xf<\/p>\n","protected":false},"author":2,"featured_media":79847,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,1813,305,427,124,2640],"topic":[],"class_list":["post-79848","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-c","tag-1813","tag-305","tag-427","tag-124","tag-2640"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6570\u636e\u7ed3\u6784_\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u548c\u5b9e\u73b0 - \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\/79848.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6570\u636e\u7ed3\u6784_\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u548c\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u548c\u5b9e\u73b0 \u94fe\u5f0f\u5b58\u50a8\u7684\u8868\u793a \u94fe\u5f0f\u5b58\u50a8\u7ed3\u6784 \u7ed3\u70b9\u5728\u5b58\u50a8\u5668\u4e2d\u7684\u4f4d\u7f6e\u662f\u4efb\u610f\u7684&#xff0c;\u5373\u903b\u8f91\u4e0a\u76f8\u90bb\u7684\u6570\u636e\u5143\u7d20\u5728\u7269\u7406\u4e0a\u4e0d\u4e00\u5b9a\u76f8\u90bb \u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u53c8\u79f0\u4e3a\u975e\u987a\u5e8f\u6620\u50cf\u6216\u94fe\u5f0f\u6620\u50cf\u3002 \u7528\u4e00\u7ec4\u7269\u7406\u4f4d\u7f6e\u4efb\u610f\u7684\u5b58\u50a8\u5355\u5143\u6765\u5b58\u653e\u7ebf\u6027\u8868\u7684\u6570\u636e\u5143\u7d20\u3002\u8fd9\u7ec4\u5b58\u50a8\u5355\u5143\u65e2\u53ef\u4ee5\u662f\u8fde\u7eed\u7684&#xff0c;\u4e5f\u53ef\u4ee5\u662f\u4e0d\u8fde\u7eed\u7684&#xff0c;\u751a\u81f3\u662f\u96f6\u6563\u5206\u5e03\u5728\u5185\u5b58\u4e2d\u7684\u4efb\u610f\u4f4d\u7f6e\u4e0a\u7684\u3002\u94fe\u8868\u4e2d\u5143\u7d20\u7684\u903b\u8f91\u6b21\u5e8f\u548c\u7269\u7406\u6b21\u5e8f\u4e0d\u4e00\u5b9a\u76f8\u540c\u3002 \u4e0e\u94fe\u5f0f\u5b58\u50a8\u6709\u5173\u7684\u672f\u8bed&#xff1a; \u7ed3\u70b9&#xff1a;\u6570\u636e\u5143\u7d20\u5927\u7684\u5b58\u50a8\u6620\u50cf&amp;#xf\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/79848.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-03T03:17:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260303031714-69a652ba33dce.png\" \/>\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=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79848.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/79848.html\",\"name\":\"\u6570\u636e\u7ed3\u6784_\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u548c\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-03T03:17:15+00:00\",\"dateModified\":\"2026-03-03T03:17:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/79848.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/79848.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79848.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6570\u636e\u7ed3\u6784_\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u548c\u5b9e\u73b0\"}]},{\"@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":"\u6570\u636e\u7ed3\u6784_\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u548c\u5b9e\u73b0 - \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\/79848.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6570\u636e\u7ed3\u6784_\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u548c\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u548c\u5b9e\u73b0 \u94fe\u5f0f\u5b58\u50a8\u7684\u8868\u793a \u94fe\u5f0f\u5b58\u50a8\u7ed3\u6784 \u7ed3\u70b9\u5728\u5b58\u50a8\u5668\u4e2d\u7684\u4f4d\u7f6e\u662f\u4efb\u610f\u7684&#xff0c;\u5373\u903b\u8f91\u4e0a\u76f8\u90bb\u7684\u6570\u636e\u5143\u7d20\u5728\u7269\u7406\u4e0a\u4e0d\u4e00\u5b9a\u76f8\u90bb \u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u53c8\u79f0\u4e3a\u975e\u987a\u5e8f\u6620\u50cf\u6216\u94fe\u5f0f\u6620\u50cf\u3002 \u7528\u4e00\u7ec4\u7269\u7406\u4f4d\u7f6e\u4efb\u610f\u7684\u5b58\u50a8\u5355\u5143\u6765\u5b58\u653e\u7ebf\u6027\u8868\u7684\u6570\u636e\u5143\u7d20\u3002\u8fd9\u7ec4\u5b58\u50a8\u5355\u5143\u65e2\u53ef\u4ee5\u662f\u8fde\u7eed\u7684&#xff0c;\u4e5f\u53ef\u4ee5\u662f\u4e0d\u8fde\u7eed\u7684&#xff0c;\u751a\u81f3\u662f\u96f6\u6563\u5206\u5e03\u5728\u5185\u5b58\u4e2d\u7684\u4efb\u610f\u4f4d\u7f6e\u4e0a\u7684\u3002\u94fe\u8868\u4e2d\u5143\u7d20\u7684\u903b\u8f91\u6b21\u5e8f\u548c\u7269\u7406\u6b21\u5e8f\u4e0d\u4e00\u5b9a\u76f8\u540c\u3002 \u4e0e\u94fe\u5f0f\u5b58\u50a8\u6709\u5173\u7684\u672f\u8bed&#xff1a; \u7ed3\u70b9&#xff1a;\u6570\u636e\u5143\u7d20\u5927\u7684\u5b58\u50a8\u6620\u50cf&amp;#xf","og_url":"https:\/\/www.wsisp.com\/helps\/79848.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-03T03:17:15+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260303031714-69a652ba33dce.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/79848.html","url":"https:\/\/www.wsisp.com\/helps\/79848.html","name":"\u6570\u636e\u7ed3\u6784_\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u548c\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-03T03:17:15+00:00","dateModified":"2026-03-03T03:17:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/79848.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/79848.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/79848.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6570\u636e\u7ed3\u6784_\u7ebf\u6027\u8868\u7684\u94fe\u5f0f\u8868\u793a\u548c\u5b9e\u73b0"}]},{"@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\/79848","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=79848"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79848\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/79847"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=79848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=79848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=79848"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=79848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}