{"id":367,"date":"2023-05-01T14:51:28","date_gmt":"2023-05-01T06:51:28","guid":{"rendered":"https:\/\/blog.taiyang.space\/?p=367"},"modified":"2023-05-01T14:51:29","modified_gmt":"2023-05-01T06:51:29","slug":"%e7%ac%ac3%e7%ab%a0-%e6%a0%88%e5%92%8c%e9%98%9f%e5%88%97","status":"publish","type":"post","link":"https:\/\/blog.taiyang.space\/?p=367","title":{"rendered":"\u7b2c3\u7ae0-\u6808\u548c\u961f\u5217"},"content":{"rendered":"<h2>3.1 \u6808\u548c\u961f\u5217\u7684\u5b9a\u4e49\u548c\u7279\u70b9<\/h2>\n<p>\u6808\u548c\u961f\u5217\u65f6\u9650\u5b9a\u63d2\u5165\u548c\u5220\u9664\u53ea\u80fd\u5728\u8868\u7684\u201c\u7aef\u70b9\u201d\u8fdb\u884c\u7684\u7ebf\u6027\u8868<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438750.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u6808\u548c\u961f\u5217\u662f\u7ebf\u6027\u8868\u7684\u5b50\u96c6\uff08\u662f\u63d2\u5165\u548c\u5220\u9664\u4f4d\u7f6e<strong>\u53d7\u9650\u7684<\/strong>\u7ebf\u6027\u8868\uff09<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u6808<\/strong>\uff1a\u5148\u8fdb\u540e\u51fa\uff08\u540e\u8fdb\u5148\u51fa\uff09<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438752.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u7531\u4e8e\u6808\u7684\u64cd\u4f5c\u5177\u6709\u5148\u8fdb\u540e\u51fa\u7684\u56fa\u6709\u7279\u6027\uff0c\u4f7f\u5f97\u6808\u79f0\u4e3a\u7a0b\u5e8f\u8bbe\u8ba1\u4e2d\u7684\u6709\u7528\u5de5\u5177\u3002\u53e6\u5916\uff0c\u5982\u679c\u95ee\u9898\u6c42\u89e3\u8fc7\u7a0b\u5177\u6709\u201c\u5148\u8fdb\u540e\u51fa\u201d\u7684\u5929\u7136\u7279\u6027\u7684\u8bdd\uff0c\u5219\u6c42\u89e3\u7684\u7b97\u6cd5\u4e2d\u4e5f\u5fc5\u7136\u9700\u8981\u5229\u7528\u201c\u6808\u201d<\/p>\n<p>\u6bd4\u5982\uff1a<\/p>\n<ul>\n<li>\u6570\u5236\u8f6c\u6362\u3001\u8868\u8fbe\u5f0f\u6c42\u503c<\/li>\n<li>\u62ec\u53f7\u5339\u914d\u7684\u68c0\u9a8c<\/li>\n<li>\u516b\u7687\u540e\u95ee\u9898<\/li>\n<li>\u884c\u7f16\u8f91\u7a0b\u5e8f<\/li>\n<li>\u8ff7\u5bab\u6c42\u89e3<\/li>\n<li>\u51fd\u6570\u8c03\u7528<\/li>\n<li>\u9012\u5f52\u8c03\u7528\u7684\u5b9e\u73b0<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>\u961f\u5217<\/strong>\uff1a\u5148\u8fdb\u5148\u51fa<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438757.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u7531\u4e8e\u961f\u5217\u7684\u64cd\u4f5c\u5177\u6709<strong>\u5148\u8fdb\u5148\u51fa<\/strong>\u7684\u7279\u6027\uff0c\u4f7f\u5f97\u961f\u5217\u79f0\u4e3a\u7a0b\u5e8f\u8bbe\u8ba1\u4e2d\u89e3\u51b3\u7c7b\u4f3c<strong>\u6392\u961f\u95ee\u9898<\/strong>\u7684\u6709\u7528\u5de5\u5177<\/p>\n<ul>\n<li>\u8131\u673a\u6253\u5370\u8f93\u51fa\uff1a\u6309\u7533\u8bf7\u7684\u5148\u540e\u987a\u5e8f\u4f9d\u6b21\u8f93\u51fa<\/li>\n<li>\u591a\u7528\u6237\u7cfb\u7edf\u4e2d\uff0c\u591a\u4e2a\u7528\u6237\u6392\u6210\u961f\uff0c\u5206\u65f6\u5730\u5faa\u73af\u4f7f\u7528CPU\u548c\u4e3b\u5b58<\/li>\n<li>\u6309\u7528\u6237\u7684\u4f18\u5148\u7ea7\u6392\u6210\u591a\u4e2a\u961f\uff0c\u6bcf\u4e2a\u4f18\u5148\u7ea7\u4e00\u4e2a\u961f\u5217<\/li>\n<li>\u5b9e\u65f6\u63a7\u5236\u7cfb\u7edf\u4e2d\uff0c\u4fe1\u53f7\u6309\u63a5\u53d7\u7684\u5411\u540e\u987a\u5e8f\u4f9d\u6b21\u8fdb\u884c\u5904\u7406<\/li>\n<li>\u7f51\u7edc\u7535\u6587\u4f20\u8f93\uff0c\u6309\u5230\u8fbe\u7684\u65f6\u95f4\u5148\u540e\u987a\u5e8f\u4f9d\u6b21\u8fdb\u884c<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>3.1.1 \u6808\u7684\u5b9a\u4e49\u548c\u7279\u70b9<\/h3>\n<p>\u6808\uff08stack\uff09\u662f\u4e00\u4e2a\u7279\u6b8a\u7684\u7ebf\u6027\u8868\uff0c\u662f\u9650\u5b9a\u4ec5\u5728\u4e00\u7aef\uff08\u901a\u5e38\u662f\u8868\u5c3e\uff09\u8fdb\u884c\u63d2\u5165\u548c\u5220\u9664\u64cd\u4f5c\u7684\u7ebf\u6027\u8868<\/p>\n<p>\u53c8\u79f0<strong>\u5148\u8fdb\u540e\u51fa<\/strong>\uff08First In Lirst Out\uff09\u7684\u7ebf\u6027\u8868\uff0c\u7b80\u79f0<strong>FILO<\/strong>\u7ed3\u6784   \uff08\u6216LIFO\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>\u76f8\u5173\u6982\u5ff5<\/p>\n<ul>\n<li>\u4ec5\u5728\u8868\u5c3e\u8fdb\u884c\u63d2\u5165\u3001\u5220\u9664\u64cd\u4f5c\u7684\u7ebf\u6027\u8868<\/li>\n<li>\u8868\u5c3e\uff08\u5373an\u7aef\uff09\u79f0\u4e3a\u6808\u9876 Top\uff1b\u8868\u5934\uff08\u5373a1\u7aef\uff09\u79f0\u4e3a\u6808\u5e95Base<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438758.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u63d2\u5165\u5143\u7d20\u5230<strong>\u6808\u9876<\/strong>\uff08\u5373\u8868\u5c3e\uff09\u7684\u64cd\u4f5c\uff0c\u79f0\u4e3a<strong>\u5165\u6808<\/strong>           \u201c\u5165\u201d= \u538b\u5165 = push<\/p>\n<p>\u4ece<strong>\u6808\u9876<\/strong>\uff08\u5373\u8868\u5c3e\uff09\u5220\u9664\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u7684\u64cd\u4f5c\uff0c\u79f0\u4e3a<strong>\u51fa\u6808<\/strong>    \u201c\u51fa\u201d= \u5f39\u51fa = pop<\/p>\n<p>&nbsp;<\/p>\n<p>\u793a\u610f\u56fe<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438756.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u6808\u4e0e\u4e00\u822c\u7ebf\u6027\u8868\u7684\u533a\u522b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438763.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h3>3.1.2 \u961f\u5217\u7684\u5b9a\u4e49\u548c\u7279\u70b9<\/h3>\n<p>\u961f\u5217(queue)\u662f\u4e00\u79cd\u5148\u8fdb\u5148\u51fa(First In First Out) FIFO\u7684\u7ebf\u6027\u8868\u3002\u5728\u8868\u4e00\u7aef\u63d2\u5165\uff08\u8868\u5c3e\uff09\uff0c\u5728\u53e6\u4e00\u7aef\uff08\u8868\u5934\uff09\u5220\u9664<\/p>\n<p>&nbsp;<\/p>\n<p>\u76f8\u5173\u6982\u5ff5\uff1a<\/p>\n<ul>\n<li>\u5b9a\u4e49\uff1a\u53ea\u80fd\u5728\u8868\u7684\u4e00\u7aef\u8fdb\u884c\u63d2\u5165\u8fd0\u7b97\uff0c\u5728\u8868\u7684\u53e6\u4e00\u7aef\u8fdb\u884c\u5220\u9664\u8fd0\u7b97\u7684\u7ebf\u6027\u8868\uff08\u5934\u5220\u5c3e\u63d2\uff09<\/li>\n<li>\u903b\u8f91\u7ed3\u6784\uff1a\u4e0e\u7ebf\u6027\u8868\u76f8\u540c\uff0c\u4ecd\u4e3a\u4e00\u5bf9\u4e00\u5173\u7cfb<\/li>\n<li>\u5b58\u50a8\u7ed3\u6784\uff1a\u987a\u5e8f\u961f\u6216\u94fe\u961f\uff0c\u4ee5\u5faa\u73af\u987a\u5e8f\u961f\u5217\u66f4\u5e38\u89c1<\/li>\n<li>\u8fd0\u7b97\u89c4\u5219\uff1a\u53ea\u80fd\u5728\u961f\u9996\u548c\u961f\u5c3e\u8fd0\u7b97\uff0c\u4e14\u8bbf\u95ee\u7ed3\u70b9\u65f6\u4f9d\u7167\u5148\u8fdb\u5148\u51fa\uff08FIFO\uff09\u7684\u539f\u5219<\/li>\n<li>\u5b9e\u73b0\u65b9\u5f0f\uff1a\u5173\u952e\u662f\u638c\u63e1\u5165\u961f\u548c\u51fa\u961f\u64cd\u4f5c\uff0c\u5177\u4f53\u5b9e\u73b0\u4f9d\u987a\u5e8f\u961f\u6216\u94fe\u961f\u7684\u4e0d\u540c\u800c\u4e0d\u540c<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>3.2 \u6848\u4f8b\u5f15\u5165<\/h2>\n<h3>3.2.1 \u8fdb\u5236\u8f6c\u6362<\/h3>\n<p>\u628a\u5341\u8fdb\u5236\u6570159\u8f6c\u6362\u6210\u516b\u8fdb\u5236\u6570   ps\uff1a\u8fd9\u8fb9\u4e0d\u7406\u89e3\u7684\u53ef\u4ee5\u770b\u6211\u4e4b\u524d\u5199\u7684<a href=\"https:\/\/blog.taiyang.space\/?p=193\">\u8ba1\u7ec4\u7b14\u8bb0<\/a><\/p>\n<p>\u8fd9\u65f6\u5019\u5c31\u53ef\u4ee5\u7528\u6808<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438023.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h3>3.2.2 \u62ec\u53f7\u5339\u914d\u7684\u68c0\u9a8c<\/h3>\n<p>\u5047\u8bbe\u8868\u8fbe\u5f0f\u4e2d\u5141\u8bb8\u5305\u542b\u4e24\u79cd\u62ec\u53f7\uff1a\u5706\u62ec\u53f7\u548c\u65b9\u62ec\u53f7<\/p>\n<p>\u5176\u5d4c\u5957\u7684\u987a\u5e8f\u968f\u610f\uff0c\u5373\uff1a<\/p>\n<ol start=\"\">\n<li>\uff08 [ ] ( ) \uff09\u6216 [ ( [ ] [ ] ) ] \u4e3a\u6b63\u786e\u683c\u5f0f<\/li>\n<li>[ ( ] ) \u4e3a\u9519\u8bef\u683c\u5f0f<\/li>\n<li>( [ ( ) ) \u6216 ( ( ) ] ) \u4e3a\u9519\u8bef\u683c\u5f0f<\/li>\n<\/ol>\n<p>\u4f8b\u5982\uff1a\u68c0\u9a8c  <strong>( ( ) ] )<\/strong>  \u662f\u5426\u5339\u914d<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438120.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<ul>\n<li>\u53ef\u4ee5\u5229\u7528\u4e00\u4e2a\u6808\u7ed3\u6784\u4fdd\u5b58\u6bcf\u4e2a\u51fa\u73b0\u7684\u5de6\u62ec\u53f7\uff0c\u5f53\u9047\u5230\u53f3\u62ec\u53f7\u65f6\uff0c\u4ece\u6808\u4e2d\u5f39\u51fa\u5de6\u62ec\u53f7\uff0c\u68c0\u9a8c\u5339\u914d\u60c5\u51b5<\/li>\n<li>\u5728\u68c0\u9a8c\u8fc7\u7a0b\u4e2d\uff0c\u82e5\u9047\u5230\u4ee5\u4e0b\u51e0\u79cd\u60c5\u51b5\u4e4b\u4e00\uff0c\u5c31\u53ef\u4ee5\u5f97\u51fa\u62ec\u53f7\u4e0d\u5339\u914d\u7684\u7ed3\u8bba\n<ul>\n<li>\u5f53\u9047\u5230\u67d0\u4e00\u4e2a\u53f3\u62ec\u53f7\u65f6\uff0c\u6808\u5df2\u7a7a\uff0c\u8bf4\u660e\u5230\u76ee\u524d\u4e3a\u6b62\uff0c<strong>\u53f3\u62ec\u53f7\u591a\u4f59\u5de6\u62ec\u53f7<\/strong><\/li>\n<li>\u4ece\u6808\u4e2d\u5f39\u51fa\u7684\u5de6\u62ec\u53f7\u4e0e\u5f53\u524d\u68c0\u9a8c\u7684\u53f3\u62ec\u53f7\u7c7b\u578b\u4e0d\u540c\uff0c\u8bf4\u660e\u51fa\u73b0\u4e86<strong>\u62ec\u53f7\u4ea4\u53c9<\/strong>\u60c5\u51b5<\/li>\n<li>\u7b97\u6570\u8868\u8fbe\u5f0f\u8f93\u5165\u5b8c\u6bd5\uff0c\u4f46\u6808\u4e2d\u8fd8\u6ca1\u6709\u5339\u914d\u7684\u5de6\u62ec\u53f7\uff0c\u8bf4\u660e<strong>\u5de6\u62ec\u53f7\u591a\u4f59\u53f3\u62ec\u53f7<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>3.2.3 \u8868\u8fbe\u5f0f\u6c42\u503c<\/h3>\n<p>\u8fd9\u91cc\u4ecb\u7ecd\u7684\u7b97\u6cd5\u662f\u7531\u8fd0\u7b97\u7b26\u4f18\u5148\u7ea7\u786e\u5b9a\u8fd0\u7b97\u987a\u5e8f\u7684\u5bf9\u8868\u8fbe\u5f0f\u6c42\u503c\u7b97\u6cd5 \u2014\u2014\u2014\u7b97\u7b26\u4f18\u5148\u7b97\u6cd5<\/p>\n<p>&nbsp;<\/p>\n<p>\u8868\u8fbe\u5f0f\u7ec4\u6210\uff1a<\/p>\n<ul>\n<li>\u64cd\u4f5c\u6570(operand)\uff1a\u5e38\u6570\u3001\u53d8\u91cf<\/li>\n<li>\u8fd0\u7b97\u7b26(operator)\uff1a\u7b97\u6570\u8fd0\u7b97\u7b26\u3001\u5173\u7cfb\u8fd0\u7b97\u7b26\u548c\u903b\u8f91\u8fd0\u7b97\u7b26<\/li>\n<li>\u754c\u9650\u7b26(delimiter)\uff1a\u5de6\u53f3\u62ec\u5f27\u548c\u8868\u8fbe\u5f0f\u7ed3\u675f\u7b26<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u4efb\u4f55\u4e00\u4e2a\u7b97\u672f\u8868\u8fbe\u5f0f\u90fd\u6709\u64cd\u4f5c\u6570\uff08\u5e38\u6570\u3001\u53d8\u91cf\uff09\u3001\u7b97\u672f\u8fd0\u7b97\u7b26\uff08+\u3001-\u3001*\u3001\/\uff09\u548c\u754c\u9650\u7b26\uff08\u62ec\u53f7\u3001\u8868\u8fbe\u5f0f\u7ed3\u675f\u7b26\u2018#\u2019\u3001\u865a\u8bbe\u7684\u8868\u8fbe\u5f0f\u8d77\u59cb\u7b26\u2018#\u2019\uff09\u7ec4\u6210\u3002\u540e\u4e24\u8005\u7edf\u79f0\u4e3a\u7b97\u7b26   \u4f8b\u5982\uff1a# 3 * (7 &#8211; 2) #<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e3a\u4e86\u5b9e\u73b0\u8868\u8fbe\u5f0f\u6c42\u503c\u3002\u9700\u8981\u8bbe\u7f6e\u4e24\u4e2a\u6808\uff1a<\/p>\n<ul>\n<li>\u4e00\u4e2a\u662f\u7b97\u7b26\u6808OPTR\uff0c\u7528\u4e8e\u5bc4\u5b58\u8fd0\u7b97\u7b26<\/li>\n<li>\u53e6\u4e00\u4e2a\u79f0\u4e3a\u64cd\u4f5c\u6570\u6808OPND\uff0c\u7528\u4e8e\u5bc4\u5b58\u8fd0\u7b97\u6570\u548c\u8fd0\u7b97\u7ed3\u679c<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u6c42\u503c\u7684\u5904\u7406\u8fc7\u7a0b\u662f\u81ea\u5de6\u81f3\u53f3\u626b\u63cf\u8868\u8fbe\u5f0f\u7684\u6bcf\u4e00\u4e2a\u5b57\u7b26<\/p>\n<ul>\n<li>\u5f53\u626b\u63cf\u7684\u662f<strong>\u8fd0\u7b97\u6570<\/strong>\uff0c\u5219\u5c06\u5176\u538b\u5165\u6808OPND<\/li>\n<li>\u5f53\u626b\u63cf\u7684\u662f\u8fd0\u7b97\u7b26\u65f6\n<ul>\n<li>\u82e5\u8fd9\u4e2a\u8fd0\u7b97\u7b26\u6bd4OPTR\u6808\u9876\u8fd0\u7b97\u7b26\u7684\u4f18\u5148\u7ea7\u9ad8\uff0c\u5219\u5165\u6808OPTR\uff0c\u7ee7\u7eed\u5411\u540e\u5904\u7406<\/li>\n<li>\u82e5\u8fd9\u4e2a\u8fd0\u7b97\u7b26\u6bd4OPTR\u6808\u9876\u8fd0\u7b97\u7b26\u4f18\u5148\u7ea7\u4f4e\uff0c\u5219\u4eceOPND\u6808\u4e2d\u5f39\u51fa\u4e24\u4e2a\u8fd0\u7b97\u6570\uff0c\u4ece\u6808OPTR\u4e2d\u5f39\u51fa\u6808\u9876\u8fd0\u7b97\u7b26\u8fdb\u884c\u8fd0\u7b97\uff0c\u5e76\u5c06\u8fd0\u7b97\u7ed3\u679c\u538b\u5165OPND<\/li>\n<\/ul>\n<\/li>\n<li>\u7ee7\u7eed\u5904\u7406\u5f53\u524d\u5b57\u7b26\uff0c\u76f4\u5230\u9047\u5230\u7ed3\u675f\u7b26\u4e3a\u6b62<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>3.2.4 \u821e\u4f34\u95ee\u9898<\/h3>\n<p>\u5047\u8bbe\u5728\u821e\u4f1a\u4e0a\uff0c\u7537\u58eb\u548c\u5973\u58eb\u5404\u81ea\u6392\u6210\u4e00\u961f\u3002\u821e\u4f1a\u5f00\u59cb\u65f6\uff0c\u4f9d\u6b21\u4ece\u7537\u961f\u548c\u5973\u961f\u7684\u961f\u5934\u5404\u51fa\u4e00\u4eba\u914d\u6210\u821e\u4f34\u3002\u5982\u679c\u4e24\u961f\u521d\u59cb\u4eba\u6570\u4e0d\u76f8\u540c\uff0c\u5219\u8f83\u957f\u7684\u90a3\u4e00\u961f\u4e2d\u672a\u914d\u5bf9\u7740\u7b49\u5f85\u4e0b\u4e00\u8f6e\u821e\u66f2\u3002\u73b0\u8981\u6c42\u5199\u4e00\u7b97\u6cd5\u6a21\u62df\u4e0a\u8ff0\u821e\u4f34\u914d\u5bf9\u95ee\u9898<\/p>\n<p>&nbsp;<\/p>\n<p>\u663e\u7136\uff0c\u5148\u5165\u961f\u7684\u7537\u58eb\u6216\u5973\u58eb\u5148\u51fa\u961f\u914d\u6210\u821e\u4f34\u3002\u56e0\u6b64\u8be5\u95ee\u9898\u5177\u6709\u5178\u578b\u7684\u5148\u8fdb\u5148\u51fa\u7684\u7279\u6027\uff0c\u53ef\u4ee5\u7528\u961f\u5217\u4f5c\u4e3a\u7b97\u6cd5\u7684\u6570\u636e\u7ed3\u6784<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438348.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<ul>\n<li>\u9996\u5148\u6784\u9020\u4e24\u4e2a\u961f\u5217<\/li>\n<li>\u4f9d\u6b21\u5c06\u961f\u5934\u5143\u7d20\u51fa\u961f\u914d\u6210\u821e\u4f34<\/li>\n<li>\u67d0\u961f\u4e3a\u7a7a\uff0c\u5219\u53e6\u5916\u4e00\u5bf9\u7b49\u5f85\u7740\u5219\u662f\u4e0b\u4e00\u821e\u66f2\u7b2c\u4e00\u4e2a\u53ef\u83b7\u5f97\u821e\u4f34\u7684\u4eba<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>3.3 \u6808\u7684\u8868\u793a\u548c\u64cd\u4f5c\u7684\u5b9e\u73b0<\/h2>\n<h3>3.3.1 \u6808\u7684\u62bd\u8c61\u6570\u636e\u7c7b\u578b\u5b9a\u4e49<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438350.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u7531\u4e8e\u6808\u672c\u8eab\u5c31\u662f\u7ebf\u6027\u8868\uff0c\u4e8e\u662f\u6808\u4e5f\u6709\u987a\u5e8f\u5b58\u50a8\u548c\u94fe\u5f0f\u5b58\u50a8\u4e24\u79cd\u5b9e\u73b0\u65b9\u5f0f<\/p>\n<ul>\n<li>\u6808\u7684\u987a\u5e8f\u5b58\u50a8\uff1a\u987a\u5e8f\u6808<\/li>\n<li>\u6808\u7684\u94fe\u5f0f\u5b58\u50a8\uff1a\u94fe\u5f0f\u6808<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>3.3.2 \u987a\u5e8f\u6808<\/h3>\n<p>\u5b58\u50a8\u65b9\u5f0f\uff1a\u540c\u4e00\u822c\u7ebf\u6027\u8868\u7684\u987a\u5e8f\u5b58\u50a8\u7ed3\u6784\u5b8c\u5168\u76f8\u540c\uff0c\u5229\u7528\u4e00\u7ec4\u5730\u5740\u8fde\u7eed\u7684\u5b58\u50a8\u5355\u5143\u4f9d\u6b21\u5b58\u653e\u81f3\u6808\u5e95\u5230\u6808\u9876\u7684\u6570\u636e\u5143\u7d20\u3002\u6808\u5e95\u4e00\u822c\u5728\u4f4e\u5730\u5740\u7aef<\/p>\n<ul>\n<li>\u9644\u8bbe<strong>top<\/strong>\u6307\u9488\uff0c\u6307\u793a\u6808\u9876\u5143\u7d20\u5728\u987a\u5e8f\u6808\u4e2d\u7684\u4f4d\u7f6e<\/li>\n<li>\u53e6\u8bbe<strong>base<\/strong>\u6307\u9488\uff0c\u6307\u793a\u6808\u5e95\u5143\u7d20\u5728\u987a\u5e8f\u6808\u4e2d\u7684\u4f4d\u7f6e<\/li>\n<li>\u53e6\u5916\uff0c\u7528<strong>stacksize<\/strong>\u8868\u793a\u6808\u53ef\u4f7f\u7528\u7684\u6700\u5927\u5bb9\u91cf<\/li>\n<\/ul>\n<p>\u4f46\u662f\uff0c\u4e3a\u4e86\u65b9\u4fbf\u64cd\u4f5c\uff0c\u901a\u5e38top\u6307\u793a\u771f\u6b63\u7684<strong>\u6808\u9876\u5143\u7d20\u4e4b\u4e0a<\/strong>\u7684\u4e0b\u6807\u5730\u5740<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438753.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u4f8b\u5982<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438757.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u4f7f\u7528\u6570\u7ec4\u4f5c\u4e3a\u987a\u5e8f\u6808\u5b58\u50a8\u65b9\u5f0f\u7684\u7279\u70b9\uff1a\u7b80\u5355\u3001\u65b9\u4fbf\u3001\u4f46\u6613\u4ea7\u751f\u6ea2\u51fa\uff08\u6570\u7ec4\u5927\u5c0f\u56fa\u5b9a\uff09<\/p>\n<ul>\n<li>\u4e0a\u6ea2(overflow)\uff1a\u6808\u5df2\u7ecf\u6ee1\uff0c\u53c8\u8981\u538b\u5165\u5143\u7d20<\/li>\n<li>\u4e0b\u6ea2(underflow)\uff1a\u6808\u5df2\u7ecf\u7a7a\uff0c\u8fd8\u8981\u5f39\u51fa\u5143\u7d20<\/li>\n<\/ul>\n<p>\u6ce8\uff1a\u4e0a\u6ea2\u662f\u4e00\u79cd\u9519\u8bef\uff0c\u4f7f\u95ee\u9898\u7684\u5904\u7406\u65e0\u6cd5\u8fdb\u884c\uff1b\u800c\u4e0b\u6ea2\u4e00\u822c\u8ba4\u4e3a\u662f\u4e00\u79cd\u7ed3\u675f\u6761\u4ef6\uff0c\u5373\u95ee\u9898\u5904\u7406\u7ed3\u675f<\/p>\n<p>&nbsp;<\/p>\n<h4>\u5b9a\u4e49<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">typedef struct {\n\tSElemType* base;\t\/\/ \u6808\u5e95\u6307\u9488\n\tSElemType* top;\t\t\/\/ \u6808\u9876\u6307\u9488\n\tint stackSize;\t\t\/\/ \u6808\u7684\u5927\u5c0f\n}sequenStack;\n<\/code><\/pre>\n<p>\u56fe\u89e3\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438765.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u8fd9\u91cc\u6211\u4eec\u5143\u7d20\u7c7b\u578b\u5b9a\u4e49\u4e3achar<\/p>\n<pre><code class=\"language-cpp\" lang=\"cpp\">#define MAXSIZE 100\n\ntypedef struct {\n\tchar* base;\t\t\/\/ \u6808\u5e95\u6307\u9488\n\tchar* top;\t\t\/\/ \u6808\u9876\u6307\u9488\n\tint stackSize;\t\/\/ \u6808\u7684\u5927\u5c0f\n\n}sequenStack;\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u521d\u59cb\u5316<\/h4>\n<p>\u6784\u9020\u4e00\u4e2a\u7a7a\u6808\uff0c\u8ba9\u6808\u9876\u6307\u9488\u7b49\u4e8e\u6808\u5e95\u6307\u9488<\/p>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u521d\u59cb\u5316\u6808\n * @param\uff1as\t\u6307\u5411\u6808\u7684\u6307\u9488\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus initSequenStack(sequenStack* s)\n{\n\ts-&gt;base = (char*)malloc(MAXSIZE * sizeof(char));\n\tif (!s-&gt;base) {\n\t\texit(OVERFLOW);\n\t}\n\ts-&gt;top = s-&gt;base;\n\ts-&gt;stackSize = MAXSIZE;\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u5224\u7a7a<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u5224\u65ad\u6808\u662f\u5426\u4e3a\u7a7a\n * @param\uff1as\t\u6808\n * @return\uff1a\t\u7a7a\u8fd4\u56de 1\uff1b\u5426\u5219\u8fd4\u56de 0\n *\/\nstatus isSequenStackEmpty(sequenStack s)\n{\n\tif (s.top == s.base) {\n\t\treturn TRUE;\n\t}\n\telse {\n\t\treturn FALSE;\n\t}\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u6c42\u957f\u5ea6<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u6c42\u987a\u5e8f\u6808\u957f\u5ea6\n * @param\uff1as\t\u6808\n * @return\uff1a\t\u6808\u7684\u957f\u5ea6\n *\/\nint getSequenStackLength(sequenStack s)\n{\n\treturn s.top - s.base;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u6e05\u7a7a<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u6e05\u7a7a\u987a\u5e8f\u6808\n * @param\uff1as\t\u6307\u5411\u6808\u7684\u6307\u9488\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus clearSequenStack(sequenStack* s)\n{\n\tif ((*s).base)\n\t\t(*s).top = (*s).base;\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u9500\u6bc1<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u9500\u6bc1\u987a\u5e8f\u6808\n * @param\uff1as\t\u6808\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus destroySequenStack(sequenStack s)\n{\n\tif (s.base) {\n\t\tfree(s.base);\n\t}\n\ts.base = NULL;\n\ts.top = NULL;\n\ts.stackSize = 0;\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u5165\u6808<\/h4>\n<p>\u7b97\u6cd5\u6b65\u9aa4\uff1a<\/p>\n<ol start=\"\">\n<li>\u5148\u5224\u65ad\u662f\u5426\u6808\u6ee1\uff0c\u82e5\u6ee1\u5219\u51fa\u9519\uff08\u4e0a\u6ea2\uff09<\/li>\n<li>\u5143\u7d20e\u538b\u5165\u6808\u9876<\/li>\n<li>\u6808\u6307\u9488\u52a01<\/li>\n<\/ol>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u5165\u6808\n * @param\uff1as\t\u6808\n * @param\uff1ae\t\u8981\u5165\u6808\u7684\u5143\u7d20\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus pushSequenStack(sequenStack* s, char e)\n{\n\tif (s-&gt;top - s-&gt;base &gt;= s-&gt;stackSize) {\n\t\treturn ERROR;\n\t}\n\t*s-&gt;top++ = e;\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u51fa\u6808<\/h4>\n<p>\u7b97\u6cd5\u6b65\u9aa4\uff1a<\/p>\n<ol start=\"\">\n<li>\u5224\u65ad\u662f\u5426\u6808\u7a7a\uff0c\u82e5\u7a7a\u5219\u51fa\u9519\uff08\u4e0b\u6ea2\uff09<\/li>\n<li>\u83b7\u53d6\u6808\u9876\u5143\u7d20e<\/li>\n<li>\u6808\u9876\u6307\u9488\u51cf1<\/li>\n<\/ol>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u51fa\u6808\n * @param\uff1as\t\u6307\u5411\u6808\u7684\u6307\u9488\n * @param\uff1ae\t\u7528\u4e8e\u8fd4\u56de\u8981\u51fa\u6808\u7684\u5143\u7d20\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus popSequenStack(sequenStack* s, char* e)\n{\n\tif (s-&gt;top == s-&gt;base) {\n\t\treturn ERROR;\n\t}\n\t*e = *--s-&gt;top;\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h3>3.3.3 \u94fe\u5f0f\u6808<\/h3>\n<p>\u94fe\u5f0f\u6808\u662f<strong>\u8fd0\u7b97\u53d7\u9650<\/strong>\u7684\u5355\u94fe\u8868\uff0c\u53ea\u80fd\u5728<strong>\u94fe\u8868\u5934\u90e8<\/strong>\u8fdb\u884c\u64cd\u4f5c\u3002\u6240\u4ee5\u5b9a\u4e49\u5f62\u5f0f\u548c\u5355\u94fe\u8868\u7c7b\u4f3c<\/p>\n<pre><code class=\"language-cpp\" lang=\"cpp\">typedef struct StackNode {\n\tchar data;\n\tstruct StackNode* next;\n}stackNode, * linkStack;\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438767.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u6ce8\u610f\uff1a<\/p>\n<ul>\n<li>\u94fe\u5f0f\u6808\u4e2d\u6307\u9488\u7684\u65b9\u5411\uff0c\u4e0e\u94fe\u8868\u7684\u6307\u9488\u65b9\u5411\u76f8\u53cd<\/li>\n<li>\u94fe\u6808\u7684\u5934\u6307\u9488\u5c31\u662f\u6808\u9876<\/li>\n<li>\u4e0d\u9700\u8981\u5934\u7ed3\u70b9<\/li>\n<li>\u57fa\u672c\u4e0d\u5b58\u5728\u6808\u6ee1\u7684\u60c5\u51b5<\/li>\n<li>\u7a7a\u6808\u76f8\u5f53\u4e8e\u5934\u6307\u9488\u6307\u5411\u7a7a<\/li>\n<li>\u63d2\u5165\u548c\u5220\u9664\u4ec5\u5728\u6808\u9876\u5904\u6267\u884c<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4>\u521d\u59cb\u5316<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u521d\u59cb\u5316\u94fe\u5f0f\u6808\n * @param\uff1as\t\u6307\u5411\u94fe\u6808\u7684\u5934\u6307\u9488\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus initLinkStack(linkStack* s)\n{\n\t(*s) = NULL;\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u5224\u7a7a<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u5224\u7a7a\n * @param\uff1as\n * @return\uff1a\t\u7a7a\u8fd4\u56de 1\uff1b\u5426\u5219\u8fd4\u56de 0\n *\/\nstatus isLinkStackEmpty(linkStack* s)\n{\n\tif (*s == NULL)\n\t\treturn TRUE;\n\telse\n\t\treturn FALSE;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u5165\u6808<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438852.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u5165\u6808\n * @param\uff1as\t\u6808\u9876\u6307\u9488\n * @param\uff1ae\t\u8981\u63d2\u5165\u7684\u5143\u7d20\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus pushLinkStack(linkStack* s, char e)\n{\n\tlinkStackNode* p = (linkStackNode*)malloc(sizeof(linkStackNode));\n\tif (!p)\n\t\treturn OVERFLOW;\n\tp-&gt;data = e;\n\tp-&gt;next = *s;\n\t*s = p;\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u51fa\u6808<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u51fa\u6808\n * @param\uff1as\t\u6808\u9876\u6307\u9488\n * @param\uff1ae\t\u7528\u4e8e\u8fd4\u56de\u88ab\u5220\u9664\u7684\u5143\u7d20\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus popLinkStack(linkStack* s, char* e)\n{\n\tlinkStackNode* p;\n\tif (isLinkStackEmpty(s))\n\t\treturn ERROR;\n\t*e = (*s)-&gt;data;\n\tp = *s;\n\t*s = (*s)-&gt;next;\n\tfree(p);\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u53d6\u6808\u9876\u5143\u7d20<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u53d6\u6808\u9876\u5143\u7d20\n * @param\uff1as\t\u6808\u9876\u6307\u9488\n * @return\uff1a\t\u6808\u9876\u5143\u7d20\n *\/\nchar getLinkStackTopElement(linkStack* s)\n{\n\tif (isLinkStackEmpty(s))\n\t\treturn ERROR;\n\n\treturn (*s)-&gt;data;;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h2>3.4 \u6808\u4e0e\u9012\u5f52<\/h2>\n<h3>3.4.1 \u9012\u5f52\u7684\u5b9a\u4e49<\/h3>\n<ul>\n<li>\u82e5\u4e00\u4e2a\u5bf9\u8c61\u90e8\u5206\u5730\u5305\u542b\u81ea\u5df1\uff0c\u6216\u7528\u5b83\u81ea\u5df1\u7ed9\u81ea\u5df1\u5b9a\u4e49\uff0c\u5219\u79f0\u8fd9\u4e2a\u5bf9\u8c61\u662f\u9012\u5f52\u7684<\/li>\n<li>\u82e5\u4e00\u4e2a\u8fc7\u7a0b\u76f4\u63a5\u5730\u6216\u95f4\u63a5\u5730\u8c03\u7528\u81ea\u5df1\uff0c\u5219\u79f0\u8fd9\u4e2a\u8fc7\u7a0b\u662f\u9012\u5f52\u7684\u8fc7\u7a0b<\/li>\n<li>\u4f8b\u5982\uff1a\u9012\u5f52\u6c42n\u7684\u9636\u4e58<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u4e0b\u4e09\u79cd\u60c5\u51b5\u5e38\u5e38\u7528\u5230\u9012\u5f52\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li>\u9012\u5f52\u5b9a\u4e49\u7684\u6570\u5b66\u51fd\u6570\uff1a\u9636\u4e58\u3001\u6590\u6ce2\u90a3\u5951\u6570\u5217<\/li>\n<li>\u5177\u6709\u9012\u5f52\u7279\u6027\u7684\u6570\u636e\u7ed3\u6784\uff1a\u4e8c\u53c9\u6811\u3001\u5e7f\u4e49\u8868<\/li>\n<li>\u53ef\u9012\u5f52\u6c42\u89e3\u7684\u95ee\u9898\uff1a\u8ff7\u5bab\u95ee\u9898<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u9012\u5f52\u95ee\u9898\uff1a\u7528\u5206\u6cbb\u6cd5\u6c42\u89e3<\/p>\n<p>\u5206\u6cbb\u6cd5\uff1a\u5bf9\u4e8e\u4e00\u4e2a\u8f83\u4e3a\u590d\u6742\u7684\u95ee\u9898\uff0c\u80fd\u8fc7\u5206\u89e3\u6210\u51e0\u4e2a\u76f8\u5bf9\u7b80\u5355\u7684\u4e14\u89e3\u6cd5\u76f8\u540c\u6216\u7c7b\u4f3c\u7684\u5b50\u95ee\u9898\u6765\u6c42\u89e3<\/p>\n<p>\u5fc5\u5907\u7684\u4e09\u4e2a\u6761\u4ef6\uff1a<\/p>\n<ol start=\"\">\n<li>\u80fd\u5c06\u4e00\u4e2a\u95ee\u9898\u8f6c\u53d8\u4e3a\u4e00\u4e2a\u65b0\u95ee\u9898\uff0c\u800c\u65b0\u95ee\u9898\u4e0e\u539f\u95ee\u9898\u7684\u89e3\u8bdd\u76f8\u540c\u6216\u7c7b\u540c\uff0c\u4e0d\u540c\u7684\u4ec5\u662f\u5904\u7406\u7684\u5bf9\u8c61\uff0c\u4e14\u8fd9\u4e9b\u5904\u7406\u5bf9\u8c61\u662f\u53d8\u5316\u6709\u89c4\u5f8b\u7684<\/li>\n<li>\u53ef\u4ee5\u901a\u8fc7\u4e0a\u8ff0\u8f6c\u53d1\u800c\u4f7f\u95ee\u9898\u7b80\u5316<\/li>\n<li>\u5fc5\u987b\u6709\u4e00\u4e2a\u660e\u786e\u7684\u9012\u5f52\u51fa\u53e3\uff0c\u6216\u79f0\u9012\u5f52\u7684\u8fb9\u754c<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438291.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u6c42\u89e3\u9636\u4e58 n\uff01\u7684\u8fc7\u7a0b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438289.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u9012\u5f52\u7684\u4f18\u7f3a\u70b9\uff1a<\/p>\n<ul>\n<li>\u4f18\u70b9\uff1a\u7ed3\u6784\u6e05\u6670\uff0c\u7a0b\u5e8f\u6613\u8bfb<\/li>\n<li>\u7f3a\u70b9\uff1a\u6bcf\u6b21\u8c03\u7528\u8981\u751f\u6210\u5de5\u4f5c\u8bb0\u5f55\uff0c\u4fdd\u5b58\u72b6\u6001\u4fe1\u606f\uff0c\u5165\u6808\uff1b\u8fd4\u56de\u65f6\u8981\u51fa\u6808\uff0c\u6062\u590d\u72b6\u6001\u4fe1\u606f\uff0c\u65f6\u95f4\u5f00\u9500\u5927<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u9012\u5f52 -&gt; \u975e\u9012\u5f52<\/p>\n<p>\u65b9\u6cd51\uff1a\u5c3e\u9012\u5f52\u3001\u5355\u5411\u9012\u5f52 -&gt; \u5faa\u73af\u7ed3\u6784<\/p>\n<p>\u65b9\u6cd52\uff1a\u81ea\u7528\u6808\u6a21\u62df\u7cfb\u7edf\u7684\u8fd0\u884c\u65f6\u6808<\/p>\n<p>&nbsp;<\/p>\n<h2>3.5 \u961f\u5217\u7684\u8868\u793a\u548c\u64cd\u4f5c\u7684\u5b9e\u73b0<\/h2>\n<h3>3.5.1 \u961f\u5217\u7684\u62bd\u8c61\u6570\u636e\u7c7b\u578b\u5b9a\u4e49<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438304.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<h3>3.5.2 \u987a\u5e8f\u961f\u5217<\/h3>\n<h4>\u5b9a\u4e49<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">typedef struct {\n\tQElementType* base;\t\/\/ \u521d\u59cb\u5316\u7684\u52a8\u6001\u5206\u914d\u5b58\u50a8\u7a7a\u95f4\n\tint front;\t\t\t\/\/ \u5934\u6307\u9488\n\tint rear;\t\t\t\/\/ \u5c3e\u6307\u9488\n}suquenQueue;\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u5165\u961f\u548c\u51fa\u961f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438298.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>&nbsp;<\/p>\n<p>\u961f\u5217\u6ea2\u51fa<\/p>\n<p>\u53ea\u6709\u5f53front = 0\uff0crear = MAXQUEUESIZE\u65f6\uff0c\u518d\u5165\u961f&#8211;\u771f\u6ea2\u51fa<\/p>\n<p>front \u2260 0\uff0crear = MAXQUEUESIZE\u65f6\uff0c\u518d\u5165\u961f&#8211;\u5047\u6ea2\u51fa<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438296.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u4e24\u79cd\u89e3\u51b3\u5047\u4e0a\u6ea2\u529e\u6cd5\uff1a<\/p>\n<ol start=\"\">\n<li>\u4f9d\u6b21\u79fb\u52a8\u961f\u5217\u91cc\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20 (\u65f6\u95f4\u590d\u6742\u5ea6\u9ad8)<\/li>\n<li>\u7528\u5faa\u73af\u961f\u5217\uff1abase[0]\u63a5\u5728base[MAXQUEUESIZE -1]\u4e4b\u540e\uff0c\u82e5 rear + 1 = MAXQUEUESIZE\uff0c\u5219\u4ee4 rear = 0<\/li>\n<\/ol>\n<p>\u5b9e\u73b0\u65b9\u6cd5\uff1a\u5229\u7528\u6a21\uff08mod\uff0cC\u8bed\u8a00\u4e2d\uff1a%\uff09\u8fd0\u7b97<\/p>\n<p>\u63d2\u5165\u5143\u7d20\uff1a<\/p>\n<ul>\n<li>Q.base[Q.rear] = x<\/li>\n<li>Q.rear = (Q.rear +1) % MAXQUEUESIZE<\/li>\n<\/ul>\n<p>\u5f53 front \u2260 0 \u65f6\uff0c\u53ea\u8981rear\u52a01\u53d6\u4f59\u6700\u5927\u957f\u5ea6\uff0c\u8bf4\u660e\u5df2\u7ecf\u5230\u5934\u4e86\uff0c\u8fd9\u65f6\u5019\u81ea\u52a8\u7b49\u4e8e 0\uff1b\u5426\u5219\u8fd8\u662f\u539f\u6765\u7684\u503c<\/p>\n<p>\u5220\u9664\u5143\u7d20\uff1a<\/p>\n<ul>\n<li>x = Q.base[s.front]<\/li>\n<li>Q.front = (Q.front + 1) % MAXQUEUESIZE<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u6240\u4ee5\u5bf9\u4e8e\u5faa\u73af\u961f\u5217\uff1afront = rear\uff0c\u961f\u5217\u6709\u53ef\u80fd\u662f\u961f\u7a7a\uff0c\u4e5f\u53ef\u80fd\u662f\u961f\u6ee1<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438309.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<ol start=\"\">\n<li>\u53e6\u5916\u8bbe\u4e00\u4e2a\u6807\u5fd7\u4ee5\u533a\u522b\u961f\u7a7a\u3001\u961f\u6ee1<\/li>\n<li>\u53e6\u8bbe\u4e00\u4e2a\u53d8\u91cf\uff0c\u8bb0\u5f55\u5143\u7d20\u4e2a\u6570<\/li>\n<li>\u5c11\u7528\u4e00\u4e2a\u5143\u7d20\u7a7a\u95f4<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/picture.chentaiyang.space\/202304251438671.png\" referrerpolicy=\"no-referrer\" alt=\"img\"><\/p>\n<p>\u5047\u8bbe\u6700MAXQUEUESIZE\u4e3a\uff1a6\uff0c\u5c11\u7528\u4e00\u4e2a\u5143\u7d20\u7a7a\u95f4\uff0c\u6240\u4ee5\u53ea\u80fd\u653e 5 \u4e2a<\/p>\n<p>\u6b64\u65f6rear=4\uff0cfront=5<\/p>\n<p>\uff08rear+1)%6 = front = 5<\/p>\n<p>&nbsp;<\/p>\n<h4>\u521d\u59cb\u5316<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u521d\u59cb\u5316\u961f\u5217\n * @param\uff1a\t\tQ\u6307\u5411\u961f\u5217\u7684\u6307\u9488\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus initSequenQueue(suquenQueue* Q)\n{\n\t(*Q).base = (char*)malloc(MAXQUEUESIZE * sizeof(char));\n\tif (!(*Q).base)\n\t{\n\t\texit(OVERFLOW);\n\t}\n\t(*Q).front = (*Q).rear = 0;\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u6c42\u961f\u5217\u7684\u957f\u5ea6<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u6c42\u961f\u5217\u7684\u957f\u5ea6\n * @param\uff1aQ\t\u961f\u5217\n * @return\uff1a\t\u961f\u5217\u7684\u957f\u5ea6\n *\/\nint getSequenQueueLength(suquenQueue Q)\n{\n\treturn (Q.rear - Q.front + MAXQUEUESIZE) % MAXQUEUESIZE;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u5165\u961f<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u5165\u961f\n * @param\uff1aQ\t\u961f\u5217\u6307\u9488\n * @param\uff1ae\t\u8981\u5165\u961f\u7684\u5143\u7d20\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus enSequenQueue(suquenQueue* Q, char e)\n{\n\tif (((*Q).rear + 1) % MAXQUEUESIZE == (*Q).front)\n\t{\t\/\/ \u961f\u6ee1\n\t\treturn ERROR;\n\t}\n\t(*Q).base[(*Q).rear] = e;\n\t(*Q).rear = ((*Q).rear + 1) % MAXQUEUESIZE;\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u51fa\u961f<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u51fa\u961f\n * @param\uff1aQ\t\u961f\u5217\u6307\u9488\n * @param\uff1ae\t\u7528\u4e8e\u8fd4\u56de\u5220\u9664\u7684\u5143\u7d20\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus deSequenQueue(suquenQueue* Q, char* e)\n{\n\tif ((*Q).front == (*Q).rear)\n\t{\t\/\/ \u961f\u7a7a\n\t\treturn ERROR;\n\t}\n\t*e = (*Q).base[(*Q).front];\n\t(*Q).front = ((*Q).front + 1) % MAXQUEUESIZE;\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u53d6\u961f\u5934\u5143\u7d20<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u53d6\u961f\u5934\u5143\u7d20\n * @param\uff1aQ\t\u961f\u5217\n * @return\uff1a\t\u961f\u5934\u5143\u7d20\n *\/\nchar getSequenQueueHead(suquenQueue Q)\n{\n\tif (Q.front == Q.rear)\n\t{\t\/\/ \u961f\u7a7a\n\t\treturn ERROR;\n\t}\n\treturn  Q.base[Q.front];\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h3>3.5.3 \u94fe\u5f0f\u961f\u5217<\/h3>\n<h4>\u5b9a\u4e49<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">typedef struct Qnode {\n\tchar data;\n\tstruct Qnode* next;\n}linkQueueNode, * QueuePtr;\n\n\ntypedef struct {\n\tQueuePtr front;\t\/\/ \u5934\u6307\u9488\n\tQueuePtr rear;\t\t\/\/ \u5c3e\u6307\u9488\n}linkQueue;\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u521d\u59cb\u5316<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u521d\u59cb\u5316\n * @param\uff1aQ\t\u6307\u5411\u961f\u5217\u7684\u6307\u9488\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus initLinkQueue(linkQueue* Q)\n{\n\t(*Q).front = (*Q).rear = (QueuePtr)malloc(sizeof(linkQueueNode));\n\tif (!(*Q).front){\n\t\texit(OVERFLOW);\n\t}\n\t(*Q).front-&gt;next = NULL;\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u9500\u6bc1<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u9500\u6bc1\n * @param\uff1aQ\t\u6307\u5411\u961f\u5217\u7684\u6307\u9488\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus destroyLinkQueue(linkQueue* Q)\n{\n\twhile ((*Q).front)\n\t{\n\t\tQueuePtr temp;\n\t\ttemp = (*Q).front-&gt;next;\n\t\tfree((*Q).front);\n\t\t(*Q).front = temp;\n\t}\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u5165\u961f<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u5165\u961f\n * @param\uff1aQ\t\u6307\u5411\u961f\u5217\u7684\u6307\u9488\n * @param\uff1ae\t\u8981\u5165\u961f\u7684\u5143\u7d20\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus enLinkQueue(linkQueue* Q, char e)\n{\n\tQueuePtr temp;\n\ttemp = (QueuePtr)malloc(sizeof(linkQueueNode));\n\tif (!temp){\n\t\texit(OVERFLOW);\n\t}\n\ttemp-&gt;data = e;\n\ttemp-&gt;next = NULL;\n\t(*Q).rear-&gt;next = temp;\n\t(*Q).rear = temp;\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u51fa\u961f<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u51fa\u961f\n * @param\uff1aQ\t\u6307\u5411\u961f\u5217\u7684\u6307\u9488\n * @param\uff1ae\t\u7528\u4e8e\u63a5\u6536\u51fa\u961f\u7684\u5143\u7d20\n * @return\uff1a\t\u72b6\u6001\u7801\n *\/\nstatus deLinkQueue(linkQueue* Q, char* e)\n{\n\tif ((*Q).front == (*Q).rear)\n\t{\t\/\/ \u961f\u7a7a\n\t\treturn ERROR;\n\t}\n\tQueuePtr temp;\n\ttemp = (*Q).front-&gt;next;\n\t*e = temp-&gt;data;\n\t(*Q).front-&gt;next = temp-&gt;next;\n    \n\tif ((*Q).rear == temp)\n\t{\t\/\/ \u5982\u679c\u961f\u5217\u4e2d\u53ea\u6709\u4e00\u4e2a\u5143\u7d20\n\t\t(*Q).rear = (*Q).front;\n\t}\n\tfree(temp);\n\treturn OK;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4>\u53d6\u961f\u5934\u5143\u7d20<\/h4>\n<pre><code class=\"language-cpp\" lang=\"cpp\">\/*******************************************************************************************************************************\n * @description\uff1a\u53d6\u961f\u5934\u5143\u7d20\n * @param\uff1aQ\t\u961f\u5217\n * @return\uff1a\t\u961f\u5934\u5143\u7d20\n *\/\nchar getLinkQueueHead(linkQueue Q)\n{\n\tif (Q.front == Q.rear)\n\t{\t\/\/ \u961f\u7a7a\n\t\treturn ERROR;\n\t}\n\treturn Q.front-&gt;next-&gt;data;\n}\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h2>3.6 \u5199\u5728\u6700\u540e<\/h2>\n<p>\u5b8c\u6574\u4ee3\u7801\uff1a<a href=\"https:\/\/github.com\/kisstaiyang\/DataStruct\/tree\/main\/%E7%AC%AC3%E7%AB%A0-%E6%A0%88%E5%92%8C%E9%98%9F%E5%88%97\">\u6233\u6211\ud83c\udf39<\/a><\/p>\n<p>\u672c\u6587\u5b8c<\/p>\n<p>\u656c\u7231\u4e0e\u660e\u5929\ud83c\udf39<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6570\u636e\u7ed3\u6784&#8211;\u6808\u548c\u961f\u5217<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[82,30,86],"class_list":["post-367","post","type-post","status-publish","format-standard","hentry","category-11","tag-ds","tag-30","tag-86"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7b2c3\u7ae0-\u6808\u548c\u961f\u5217 - #\u762b\u7537\u65e5\u8bb0<\/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:\/\/blog.taiyang.space\/?p=367\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7b2c3\u7ae0-\u6808\u548c\u961f\u5217 - #\u762b\u7537\u65e5\u8bb0\" \/>\n<meta property=\"og:description\" content=\"\u6570\u636e\u7ed3\u6784--\u6808\u548c\u961f\u5217\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.taiyang.space\/?p=367\" \/>\n<meta property=\"og:site_name\" content=\"#\u762b\u7537\u65e5\u8bb0\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-01T06:51:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-01T06:51:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/picture.chentaiyang.space\/202304251438750.png\" \/>\n<meta name=\"author\" content=\"taiyang\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"taiyang\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.taiyang.space\/?p=367#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.taiyang.space\/?p=367\"},\"author\":{\"name\":\"taiyang\",\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\"},\"headline\":\"\u7b2c3\u7ae0-\u6808\u548c\u961f\u5217\",\"datePublished\":\"2023-05-01T06:51:28+00:00\",\"dateModified\":\"2023-05-01T06:51:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.taiyang.space\/?p=367\"},\"wordCount\":157,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\"},\"keywords\":[\"DS\",\"\u6808\",\"\u961f\u5217\"],\"articleSection\":[\"\u6570\u636e\u7ed3\u6784\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.taiyang.space\/?p=367#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.taiyang.space\/?p=367\",\"url\":\"https:\/\/blog.taiyang.space\/?p=367\",\"name\":\"\u7b2c3\u7ae0-\u6808\u548c\u961f\u5217 - #\u762b\u7537\u65e5\u8bb0\",\"isPartOf\":{\"@id\":\"https:\/\/blog.taiyang.space\/#website\"},\"datePublished\":\"2023-05-01T06:51:28+00:00\",\"dateModified\":\"2023-05-01T06:51:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.taiyang.space\/?p=367#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.taiyang.space\/?p=367\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.taiyang.space\/?p=367#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/blog.taiyang.space\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7b2c3\u7ae0-\u6808\u548c\u961f\u5217\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.taiyang.space\/#website\",\"url\":\"https:\/\/blog.taiyang.space\/\",\"name\":\"#\u762b\u7537\u65e5\u8bb0\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.taiyang.space\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c\",\"name\":\"taiyang\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg\",\"contentUrl\":\"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg\",\"width\":612,\"height\":640,\"caption\":\"taiyang\"},\"logo\":{\"@id\":\"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/blog.taiyang.space\"],\"url\":\"https:\/\/blog.taiyang.space\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7b2c3\u7ae0-\u6808\u548c\u961f\u5217 - #\u762b\u7537\u65e5\u8bb0","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:\/\/blog.taiyang.space\/?p=367","og_locale":"zh_CN","og_type":"article","og_title":"\u7b2c3\u7ae0-\u6808\u548c\u961f\u5217 - #\u762b\u7537\u65e5\u8bb0","og_description":"\u6570\u636e\u7ed3\u6784--\u6808\u548c\u961f\u5217","og_url":"https:\/\/blog.taiyang.space\/?p=367","og_site_name":"#\u762b\u7537\u65e5\u8bb0","article_published_time":"2023-05-01T06:51:28+00:00","article_modified_time":"2023-05-01T06:51:29+00:00","og_image":[{"url":"https:\/\/picture.chentaiyang.space\/202304251438750.png"}],"author":"taiyang","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"taiyang","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.taiyang.space\/?p=367#article","isPartOf":{"@id":"https:\/\/blog.taiyang.space\/?p=367"},"author":{"name":"taiyang","@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c"},"headline":"\u7b2c3\u7ae0-\u6808\u548c\u961f\u5217","datePublished":"2023-05-01T06:51:28+00:00","dateModified":"2023-05-01T06:51:29+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.taiyang.space\/?p=367"},"wordCount":157,"commentCount":0,"publisher":{"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c"},"keywords":["DS","\u6808","\u961f\u5217"],"articleSection":["\u6570\u636e\u7ed3\u6784"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.taiyang.space\/?p=367#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.taiyang.space\/?p=367","url":"https:\/\/blog.taiyang.space\/?p=367","name":"\u7b2c3\u7ae0-\u6808\u548c\u961f\u5217 - #\u762b\u7537\u65e5\u8bb0","isPartOf":{"@id":"https:\/\/blog.taiyang.space\/#website"},"datePublished":"2023-05-01T06:51:28+00:00","dateModified":"2023-05-01T06:51:29+00:00","breadcrumb":{"@id":"https:\/\/blog.taiyang.space\/?p=367#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.taiyang.space\/?p=367"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.taiyang.space\/?p=367#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.taiyang.space\/"},{"@type":"ListItem","position":2,"name":"\u7b2c3\u7ae0-\u6808\u548c\u961f\u5217"}]},{"@type":"WebSite","@id":"https:\/\/blog.taiyang.space\/#website","url":"https:\/\/blog.taiyang.space\/","name":"#\u762b\u7537\u65e5\u8bb0","description":"","publisher":{"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.taiyang.space\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/5e3b9567310d4c4a328573992325178c","name":"taiyang","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/","url":"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg","contentUrl":"https:\/\/blog.taiyang.space\/wp-content\/uploads\/2022\/10\/touxiang.jpg","width":612,"height":640,"caption":"taiyang"},"logo":{"@id":"https:\/\/blog.taiyang.space\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/blog.taiyang.space"],"url":"https:\/\/blog.taiyang.space\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts\/367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=367"}],"version-history":[{"count":2,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts\/367\/revisions"}],"predecessor-version":[{"id":369,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=\/wp\/v2\/posts\/367\/revisions\/369"}],"wp:attachment":[{"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.taiyang.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}