{"id":103017,"date":"2024-08-16T18:33:10","date_gmt":"2024-08-16T10:33:10","guid":{"rendered":"https:\/\/gulass.cn\/?p=103017"},"modified":"2024-08-16T18:33:10","modified_gmt":"2024-08-16T10:33:10","slug":"recursive-operation","status":"publish","type":"post","link":"https:\/\/gulass.cn\/recursive-operation.html","title":{"rendered":"\u8f6f\u4ef6\u5f00\u53d1\u4e4b\u9012\u5f52\u64cd\u4f5c"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u9012\u5f52\u662f\u5f88\u795e\u5947\u7684\uff0c\u4f46\u662f\u5728\u5927\u591a\u6570\u7684\u7f16\u7a0b\u7c7b\u4e66\u85c9\u4e2d\u5bf9\u9012\u5f52\u8bb2\u89e3\u7684\u5e76\u4e0d\u597d\u3002\u5b83\u4eec\u53ea\u662f\u7ed9\u4f60\u5c55\u793a\u4e00\u4e2a\u9012\u5f52\u9636\u4e58\u7684\u5b9e\u73b0\uff0c\u7136\u540e\u8b66\u544a\u4f60\u9012\u5f52\u8fd0\u884c\u7684\u5f88\u6162\uff0c\u5e76\u4e14\u8fd8\u6709\u53ef\u80fd\u56e0\u4e3a\u6808\u7f13\u51b2\u533a\u6ea2\u51fa\u800c\u5d29\u6e83\u3002\u201c\u4f60\u53ef\u4ee5\u5c06\u5934\u4f38\u8fdb\u5fae\u6ce2\u7089\u4e2d\u53bb\u70d8\u5e72\u4f60\u7684\u5934\u53d1\uff0c\u4f46\u662f\u9700\u8981\u8b66\u60d5\u9885\u5185\u9ad8\u538b\u5e76\u8ba9\u4f60\u7684\u5934\u53d1\u751f\u7206\u70b8\uff0c\u6216\u8005\u4f60\u53ef\u4ee5\u4f7f\u7528\u6bdb\u5dfe\u6765\u64e6\u5e72\u5934\u53d1\u3002\u201d\u96be\u602a\u4eba\u4eec\u4e0d\u613f\u610f\u4f7f\u7528\u9012\u5f52\u3002\u4f46\u8fd9\u79cd\u5efa\u8bae\u662f\u5f88\u7cdf\u7cd5\u7684\uff0c\u56e0\u4e3a\u5728\u7b97\u6cd5\u4e2d\uff0c\u9012\u5f52\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u601d\u60f3\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u6211\u4eec\u6765\u770b\u4e00\u4e0b\u8fd9\u4e2a\u7ecf\u5178\u7684\u9012\u5f52\u9636\u4e58\uff1a<\/p>\n

#include\r\nint factorial(int n)\r\n{\r\nint previous = 0xdeadbeef;\r\nif (n == 0 || n == 1) {\r\nreturn 1;\r\n}\r\nprevious = factorial(n-1);\r\nreturn n * previous;\r\n}\r\nint main(int argc)\r\n{\r\nint answer = factorial(5);\r\nprintf(\"%d\\n\", answer);\r\n}\r\n<\/pre>\n

\u9012\u5f52\u9636\u4e58 - factorial.c
\n\u51fd\u6570\u8c03\u7528\u81ea\u8eab\u7684\u8fd9\u4e2a\u89c2\u70b9\u5728\u4e00\u5f00\u59cb\u662f\u8ba9\u4eba\u5f88\u96be\u7406\u89e3\u7684\u3002\u4e3a\u4e86\u8ba9\u8fd9\u4e2a\u8fc7\u7a0b\u66f4\u5f62\u8c61\u5177\u4f53\uff0c\u4e0b\u56fe\u5c55\u793a\u7684\u662f\u5f53\u8c03\u7528 factorial(5) \u5e76\u4e14\u8fbe\u5230 n == 1\u8fd9\u884c\u4ee3\u7801 \u65f6\uff0c\u6808\u4e0a \u7aef\u70b9\u7684\u60c5\u51b5\uff1a<\/p>\n

\"\"<\/p>\n

\u6bcf\u6b21\u8c03\u7528 factorial \u90fd\u751f\u6210\u4e00\u4e2a\u65b0\u7684 \u6808\u5e27\u3002\u8fd9\u4e9b\u6808\u5e27\u7684\u521b\u5efa\u548c \u9500\u6bc1 \u662f\u4f7f\u5f97\u9012\u5f52\u7248\u672c\u7684\u9636\u4e58\u6162\u4e8e\u5176\u76f8\u5e94\u7684\u8fed\u4ee3\u7248\u672c\u7684\u539f\u56e0\u3002\u5728\u8c03\u7528\u8fd4\u56de\u4e4b\u524d\uff0c\u7d2f\u79ef\u7684\u8fd9\u4e9b\u6808\u5e27\u53ef\u80fd\u4f1a\u8017\u5c3d\u6808\u7a7a\u95f4\uff0c\u8fdb\u800c\u4f7f\u4f60\u7684\u7a0b\u5e8f\u5d29\u6e83\u3002<\/p>\n

\u800c\u8fd9\u4e9b\u62c5\u5fc3\u7ecf\u5e38\u662f\u5b58\u5728\u4e8e\u7406\u8bba\u4e0a\u7684\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e\u6bcf\u4e2a factorial \u7684\u6808\u5e27\u5360\u7528 16 \u5b57\u8282\uff08\u8fd9\u53ef\u80fd\u53d6\u51b3\u4e8e\u6808\u6392\u5217\u4ee5\u53ca\u5176\u5b83\u56e0\u7d20\uff09\u3002\u5982\u679c\u5728\u4f60\u7684\u7535\u8111\u4e0a\u8fd0\u884c\u7740\u73b0\u4ee3\u7684 x86 \u7684 Linux \u5185\u6838\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\u4f60\u62e5\u6709 8 GB \u7684\u6808\u7a7a\u95f4\uff0c\u56e0\u6b64\uff0cfactorial \u7a0b\u5e8f\u4e2d\u7684 n \u6700\u591a\u53ef\u4ee5\u8fbe\u5230 512,000 \u5de6\u53f3\u3002\u8fd9\u662f\u4e00\u4e2a \u5de8\u5927\u65e0\u6bd4\u7684\u7ed3\u679c\uff0c\u5b83\u5c06\u82b1\u8d39 8,971,833 \u6bd4\u7279\u6765\u8868\u793a\u8fd9\u4e2a\u7ed3\u679c\uff0c\u56e0\u6b64\uff0c\u6808\u7a7a\u95f4\u6839\u672c\u5c31\u4e0d\u662f\u4ec0\u4e48\u95ee\u9898\uff1a\u4e00\u4e2a\u6781\u5c0f\u7684\u6574\u6570 \u2014\u2014 \u751a\u81f3\u662f\u4e00\u4e2a 64 \u4f4d\u7684\u6574\u6570 \u2014\u2014 \u5728\u6211\u4eec\u7684\u6808\u7a7a\u95f4\u88ab\u8017\u5c3d\u4e4b\u524d\u5c31\u65e9\u5df2\u7ecf\u6ea2\u51fa\u4e86\u6210\u5343\u4e0a\u4e07\u6b21\u4e86\u3002<\/p>\n

\u8fc7\u4e00\u4f1a\u513f\u6211\u4eec\u518d\u53bb\u770b CPU \u7684\u4f7f\u7528\uff0c\u73b0\u5728\uff0c\u6211\u4eec\u5148\u4ece\u6bd4\u7279\u548c\u5b57\u8282\u56de\u9000\u4e00\u6b65\uff0c\u628a\u9012\u5f52\u770b\u4f5c\u4e00\u79cd\u901a\u7528\u6280\u672f\u3002\u6211\u4eec\u7684\u9636\u4e58\u7b97\u6cd5\u53ef\u5f52\u7ed3\u4e3a\uff1a\u5c06\u6574\u6570 N\u3001N-1\u3001 \u2026 1 \u63a8\u5165\u5230\u4e00\u4e2a\u6808\uff0c\u7136\u540e\u5c06\u5b83\u4eec\u6309\u76f8\u53cd\u7684\u987a\u5e8f\u76f8\u4e58\u3002\u5b9e\u9645\u4e0a\u6211\u4eec\u4f7f\u7528\u4e86\u7a0b\u5e8f\u8c03\u7528\u6808\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff0c\u8fd9\u662f\u5b83\u7684\u7ec6\u8282\uff1a\u6211\u4eec\u5728\u5806\u4e0a\u5206\u914d\u4e00\u4e2a\u6808\u5e76\u4f7f\u7528\u5b83\u3002\u867d\u7136\u8c03\u7528\u6808\u5177\u6709\u7279\u6b8a\u7684\u7279\u6027\uff0c\u4f46\u662f\u5b83\u4e5f\u53ea\u662f\u53c8\u4e00\u79cd\u6570\u636e\u7ed3\u6784\u800c\u5df2\uff0c\u4f60\u53ef\u4ee5\u968f\u610f\u4f7f\u7528\u3002\u6211\u5e0c\u671b\u8fd9\u4e2a\u793a\u610f\u56fe\u53ef\u4ee5\u8ba9\u4f60\u660e\u767d\u8fd9\u4e00\u70b9\u3002<\/p>\n

\u5f53\u4f60\u5c06\u6808\u8c03\u7528\u89c6\u4e3a\u4e00\u79cd\u6570\u636e\u7ed3\u6784\uff0c\u6709\u4e9b\u4e8b\u60c5\u5c06\u53d8\u5f97\u66f4\u52a0\u6e05\u6670\u660e\u4e86\uff1a\u5c06\u90a3\u4e9b\u6574\u6570\u5806\u79ef\u8d77\u6765\uff0c\u7136\u540e\u518d\u5c06\u5b83\u4eec\u76f8\u4e58\uff0c\u8fd9\u5e76\u4e0d\u662f\u4e00\u4e2a\u597d\u7684\u60f3\u6cd5\u3002\u90a3\u662f\u4e00\u79cd\u6709\u7f3a\u9677\u7684\u5b9e\u73b0\uff1a\u5c31\u50cf\u4f60\u62ff\u87ba\u4e1d\u5200\u53bb\u9489\u9489\u5b50\u4e00\u6837\u3002\u76f8\u5bf9\u66f4\u5408\u7406\u7684\u662f\u4f7f\u7528\u4e00\u4e2a\u8fed\u4ee3\u8fc7\u7a0b\u53bb\u8ba1\u7b97\u9636\u4e58\u3002<\/p>\n

\u4f46\u662f\uff0c\u87ba\u4e1d\u9489\u592a\u591a\u4e86\uff0c\u6211\u4eec\u53ea\u80fd\u6311\u4e00\u4e2a\u3002\u6709\u4e00\u4e2a\u7ecf\u5178\u7684\u9762\u8bd5\u9898\uff0c\u5728\u8ff7\u5bab\u91cc\u6709\u4e00\u53ea\u8001\u9f20\uff0c\u4f60\u5fc5\u987b\u5e2e\u52a9\u8fd9\u53ea\u8001\u9f20\u627e\u5230\u4e00\u4e2a\u5976\u916a\u3002\u5047\u8bbe\u8001\u9f20\u80fd\u591f\u5728\u8ff7\u5bab\u4e2d\u5411\u5de6\u6216\u8005\u5411\u53f3\u8f6c\u5f2f\u3002\u4f60\u8be5\u600e\u4e48\u53bb\u5efa\u6a21\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff1f<\/p>\n

\u5c31\u50cf\u73b0\u5b9e\u751f\u6d3b\u4e2d\u7684\u5f88\u591a\u95ee\u9898\u4e00\u6837\uff0c\u4f60\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u8001\u9f20\u627e\u5976\u916a\u7684\u95ee\u9898\u7b80\u5316\u4e3a\u4e00\u4e2a\u56fe\uff0c\u4e00\u4e2a\u4e8c\u53c9\u6811\u7684\u6bcf\u4e2a\u7ed3\u70b9\u4ee3\u8868\u5728\u8ff7\u5bab\u4e2d\u7684\u4e00\u4e2a\u4f4d\u7f6e\u3002\u7136\u540e\u4f60\u53ef\u4ee5\u8ba9\u8001\u9f20\u5728\u4efb\u4f55\u53ef\u80fd\u7684\u5730\u65b9\u90fd\u5de6\u8f6c\uff0c\u800c\u5f53\u5b83\u8fdb\u5165\u4e00\u4e2a\u6b7b\u80e1\u540c\u65f6\uff0c\u518d\u56de\u6eaf\u56de\u53bb\uff0c\u518d\u53f3\u8f6c\u3002\u8fd9\u662f\u4e00\u4e2a\u8001\u9f20\u884c\u8d70\u7684 \u8ff7\u5bab\u793a\u4f8b:<\/p>\n

\"\"<\/p>\n

\u6bcf\u5230\u8fb9\u7f18\uff08\u7ebf\uff09\u90fd\u8ba9\u8001\u9f20\u5de6\u8f6c\u6216\u8005\u53f3\u8f6c\u6765\u5230\u8fbe\u4e00\u4e2a\u65b0\u7684\u4f4d\u7f6e\u3002\u5982\u679c\u5411\u54ea\u8fb9\u8f6c\u90fd\u88ab\u62e6\u4f4f\uff0c\u8bf4\u660e\u76f8\u5173\u7684\u8fb9\u7f18\u4e0d\u5b58\u5728\u3002\u73b0\u5728\uff0c\u6211\u4eec\u6765\u8ba8\u8bba\u4e00\u4e0b\uff01\u8fd9\u4e2a\u8fc7\u7a0b\u65e0\u8bba\u4f60\u662f\u8c03\u7528\u6808\u8fd8\u662f\u5176\u5b83\u6570\u636e\u7ed3\u6784\uff0c\u5b83\u90fd\u79bb\u4e0d\u5f00\u4e00\u4e2a\u9012\u5f52\u7684\u8fc7\u7a0b\u3002\u800c\u4f7f\u7528\u8c03\u7528\u6808\u662f\u975e\u5e38\u5bb9\u6613\u7684\uff1a<\/p>\n

#include\r\n#include \"maze.h\"\r\nint explore(maze_t *node)\r\n{\r\nint found = 0;\r\nif (node == NULL)\r\n{\r\nreturn 0;\r\n}\r\nif (node->hasCheese){\r\nreturn 1;\/\/ found cheese\r\n}\r\nfound = explore(node->left) || explore(node->right);\r\nreturn found;\r\n}\r\nint main(int argc)\r\n{\r\nint found = explore(&maze);\r\n}\r\n<\/pre>\n

\u9012\u5f52\u8ff7\u5bab\u6c42\u89e3 \u4e0b\u8f7d
\n\u5f53\u6211\u4eec\u5728 maze.c:13 \u4e2d\u627e\u5230\u5976\u916a\u65f6\uff0c\u6808\u7684\u60c5\u51b5\u5982\u4e0b\u56fe\u6240\u793a\u3002\u4f60\u4e5f\u53ef\u4ee5\u5728 GDB \u8f93\u51fa \u4e2d\u770b\u5230\u66f4\u8be6\u7ec6\u7684\u6570\u636e\uff0c\u5b83\u662f\u4f7f\u7528 \u547d\u4ee4 \u91c7\u96c6\u7684\u6570\u636e\u3002<\/p>\n

\"\"<\/p>\n

\u5b83\u5c55\u793a\u4e86\u9012\u5f52\u7684\u826f\u597d\u8868\u73b0\uff0c\u56e0\u4e3a\u8fd9\u662f\u4e00\u4e2a\u9002\u5408\u4f7f\u7528\u9012\u5f52\u7684\u95ee\u9898\u3002\u800c\u4e14\u8fd9\u5e76\u4e0d\u5947\u602a\uff1a\u5f53\u6d89\u53ca\u5230\u7b97\u6cd5\u65f6\uff0c\u9012\u5f52\u662f\u89c4\u5219\uff0c\u800c\u4e0d\u662f\u4f8b\u5916\u3002\u5b83\u51fa\u73b0\u5728\u5982\u4e0b\u60c5\u666f\u4e2d\u2014\u2014\u8fdb\u884c\u641c\u7d22\u65f6\u3001\u8fdb\u884c\u904d\u5386\u6811\u548c\u5176\u5b83\u6570\u636e\u7ed3\u6784\u65f6\u3001\u8fdb\u884c\u89e3\u6790\u65f6\u3001\u9700\u8981\u6392\u5e8f\u65f6\u2014\u2014\u5b83\u65e0\u5904\u4e0d\u5728\u3002\u6b63\u5982\u4f17\u6240\u5468\u77e5\u7684 pi \u6216\u8005 e\uff0c\u5b83\u4eec\u5728\u6570\u5b66\u4e2d\u50cf\u201c\u795e\u201d\u4e00\u6837\u7684\u5b58\u5728\uff0c\u56e0\u4e3a\u5b83\u4eec\u662f\u5b87\u5b99\u4e07\u7269\u7684\u57fa\u7840\uff0c\u800c\u9012\u5f52\u4e5f\u548c\u5b83\u4eec\u4e00\u6837\uff1a\u53ea\u662f\u5b83\u5b58\u5728\u4e8e\u8ba1\u7b97\u7ed3\u6784\u4e2d\u3002<\/p>\n

Steven Skienna \u7684\u4f18\u79c0\u8457\u4f5c \u7b97\u6cd5\u8bbe\u8ba1\u6307\u5357 \u7684\u7cbe\u5f69\u4e4b\u5904\u5728\u4e8e\uff0c\u4ed6\u901a\u8fc7 \u201c\u6218\u4e89\u6545\u4e8b\u201d \u4f5c\u4e3a\u624b\u6bb5\u6765\u8be0\u91ca\u5de5\u4f5c\uff0c\u4ee5\u6b64\u6765\u5c55\u793a\u89e3\u51b3\u73b0\u5b9e\u4e16\u754c\u4e2d\u7684\u95ee\u9898\u80cc\u540e\u7684\u7b97\u6cd5\u3002\u8fd9\u662f\u6211\u6240\u77e5\u9053\u7684\u62d3\u5c55\u4f60\u7684\u7b97\u6cd5\u77e5\u8bc6\u7684\u6700\u4f73\u8d44\u6e90\u3002\u53e6\u4e00\u4e2a\u8bfb\u7269\u662f McCarthy \u7684 \u5173\u4e8e LISP \u5b9e\u73b0\u7684\u7684\u539f\u521b\u8bba\u6587\u3002\u9012\u5f52\u5728\u8bed\u8a00\u4e2d\u65e2\u662f\u5b83\u7684\u540d\u5b57\u4e5f\u662f\u5b83\u7684\u57fa\u672c\u539f\u7406\u3002\u8fd9\u7bc7\u8bba\u6587\u65e2\u53ef\u8bfb\u53c8\u6709\u8da3\uff0c\u5728\u5de5\u4f5c\u4e2d\u80fd\u770b\u5230\u5927\u5e08\u7684\u4f5c\u54c1\u662f\u4ef6\u8ba9\u4eba\u5174\u594b\u7684\u4e8b\u60c5\u3002<\/p>\n

\u56de\u5230\u8ff7\u5bab\u95ee\u9898\u4e0a\u3002\u867d\u7136\u5b83\u5728\u8fd9\u91cc\u5f88\u96be\u79bb\u5f00\u9012\u5f52\uff0c\u4f46\u662f\u5e76\u4e0d\u610f\u5473\u7740\u5fc5\u987b\u901a\u8fc7\u8c03\u7528\u6808\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u50cf RRLL \u8fd9\u6837\u7684\u5b57\u7b26\u4e32\u53bb\u8ddf\u8e2a\u8f6c\u5411\uff0c\u7136\u540e\uff0c\u4f9d\u636e\u8fd9\u4e2a\u5b57\u7b26\u4e32\u53bb\u51b3\u5b9a\u8001\u9f20\u4e0b\u4e00\u6b65\u7684\u52a8\u4f5c\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u5206\u914d\u4e00\u4e9b\u5176\u5b83\u7684\u4e1c\u897f\u6765\u8bb0\u5f55\u8ffd\u5bfb\u5976\u916a\u7684\u6574\u4e2a\u72b6\u6001\u3002\u4f60\u4ecd\u7136\u662f\u5b9e\u73b0\u4e86\u4e00\u4e2a\u9012\u5f52\u7684\u8fc7\u7a0b\uff0c\u53ea\u662f\u9700\u8981\u4f60\u5b9e\u73b0\u4e00\u4e2a\u81ea\u5df1\u7684\u6570\u636e\u7ed3\u6784\u3002<\/p>\n

\u90a3\u6837\u4f3c\u4e4e\u66f4\u590d\u6742\u4e00\u4e9b\uff0c\u56e0\u4e3a\u6808\u8c03\u7528\u66f4\u5408\u9002\u3002\u6bcf\u4e2a\u6808\u5e27\u8bb0\u5f55\u7684\u4e0d\u4ec5\u662f\u5f53\u524d\u8282\u70b9\uff0c\u4e5f\u8bb0\u5f55\u90a3\u4e2a\u8282\u70b9\u4e0a\u7684\u8ba1\u7b97\u72b6\u6001\uff08\u5728\u8fd9\u4e2a\u6848\u4f8b\u4e2d\uff0c\u6211\u4eec\u662f\u5426\u53ea\u8ba9\u5b83\u8d70\u5de6\u8fb9\uff0c\u6216\u8005\u5df2\u7ecf\u5c1d\u8bd5\u5411\u53f3\uff09\u3002\u56e0\u6b64\uff0c\u4ee3\u7801\u5df2\u7ecf\u53d8\u5f97\u4e0d\u91cd\u8981\u4e86\u3002\u7136\u800c\uff0c\u6709\u65f6\u5019\u6211\u4eec\u56e0\u4e3a\u5bb3\u6015\u6ea2\u51fa\u548c\u671f\u671b\u4e2d\u7684\u6027\u80fd\u800c\u653e\u5f03\u8fd9\u79cd\u4f18\u79c0\u7684\u7b97\u6cd5\u3002\u90a3\u662f\u5f88\u611a\u8822\u7684\uff01<\/p>\n

\u6b63\u5982\u6211\u4eec\u6240\u89c1\uff0c\u6808\u7a7a\u95f4\u662f\u975e\u5e38\u5927\u7684\uff0c\u5728\u8017\u5c3d\u6808\u7a7a\u95f4\u4e4b\u524d\u5f80\u5f80\u4f1a\u9047\u5230\u5176\u5b83\u7684\u9650\u5236\u3002\u4e00\u65b9\u9762\u53ef\u4ee5\u901a\u8fc7\u68c0\u67e5\u95ee\u9898\u5927\u5c0f\u6765\u786e\u4fdd\u5b83\u80fd\u591f\u88ab\u5b89\u5168\u5730\u5904\u7406\u3002\u800c\u5bf9 CPU \u7684\u62c5\u5fc3\u662f\u7531\u4e24\u4e2a\u5e7f\u4e3a\u6d41\u4f20\u7684\u6709\u95ee\u9898\u7684\u793a\u4f8b\u6240\u5bfc\u81f4\u7684\uff1a\u54d1\u9636\u4e58dumb factorial\u548c\u53ef\u6015\u7684\u65e0\u8bb0\u5fc6\u7684 O( 2n ) Fibonacci \u9012\u5f52\u3002\u5b83\u4eec\u5e76\u4e0d\u662f\u6808\u9012\u5f52\u7b97\u6cd5\u7684\u6b63\u786e\u4ee3\u8868\u3002<\/p>\n

\u4e8b\u5b9e\u4e0a\u6808\u64cd\u4f5c\u662f\u975e\u5e38\u5feb\u7684\u3002\u901a\u5e38\uff0c\u6808\u5bf9\u6570\u636e\u7684\u504f\u79fb\u662f\u975e\u5e38\u51c6\u786e\u7684\uff0c\u5b83\u5728 \u7f13\u5b58 \u4e2d\u662f\u70ed\u6570\u636e\uff0c\u5e76\u4e14\u662f\u7531\u4e13\u95e8\u7684\u6307\u4ee4\u6765\u64cd\u4f5c\u5b83\u7684\u3002\u540c\u65f6\uff0c\u4f7f\u7528\u4f60\u81ea\u5df1\u5b9a\u4e49\u7684\u5728\u5806\u4e0a\u5206\u914d\u7684\u6570\u636e\u7ed3\u6784\u7684\u76f8\u5173\u5f00\u9500\u662f\u5f88\u5927\u7684\u3002\u7ecf\u5e38\u80fd\u770b\u5230\u4eba\u4eec\u5199\u7684\u4e00\u4e9b\u6bd4\u6808\u8c03\u7528\u9012\u5f52\u66f4\u590d\u6742\u3001\u6027\u80fd\u66f4\u5dee\u7684\u5b9e\u73b0\u65b9\u6cd5\u3002\u6700\u540e\uff0c\u73b0\u4ee3\u7684 CPU \u7684\u6027\u80fd\u90fd\u662f \u975e\u5e38\u597d\u7684 \uff0c\u5e76\u4e14\u4e00\u822c CPU \u4e0d\u4f1a\u662f\u6027\u80fd\u74f6\u9888\u6240\u5728\u3002\u5728\u8003\u8651\u727a\u7272\u7a0b\u5e8f\u7684\u7b80\u5355\u6027\u65f6\u8981\u7279\u522b\u6ce8\u610f\uff0c\u5c31\u50cf\u7ecf\u5e38\u8003\u8651\u7a0b\u5e8f\u7684\u6027\u80fd\u53ca\u6027\u80fd\u7684\u6d4b\u91cf\u90a3\u6837\u3002<\/p>\n

\u4e0b\u4e00\u7bc7\u6587\u7ae0\u5c06\u662f\u63a2\u79d8\u6808\u7cfb\u5217\u7684\u6700\u540e\u4e00\u7bc7\u4e86\uff0c\u6211\u4eec\u5c06\u4e86\u89e3\u5c3e\u8c03\u7528\u3001\u95ed\u5305\u3001\u4ee5\u53ca\u5176\u5b83\u76f8\u5173\u6982\u5ff5\u3002\u7136\u540e\uff0c\u6211\u4eec\u5c31\u8be5\u6df1\u5165\u6211\u4eec\u7684\u8001\u670b\u53cb\u2014\u2014 Linux \u5185\u6838\u4e86\u3002\u611f\u8c22\u4f60\u7684\u9605\u8bfb\uff01<\/p>\n

\"\"<\/p>\n

via:https:\/\/manybutfinite.com\/post\/recursion\/<\/a><\/p>\n

\u4f5c\u8005\uff1aGustavo Duarte<\/a> \u8bd1\u8005\uff1aqhwdw<\/a> \u6821\u5bf9\uff1aFSSlc<\/a><\/p>\n

\u672c\u6587\u7531 LCTT<\/a> \u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a> \u8363\u8a89\u63a8\u51fa<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-9609-1.html<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttps:\/\/gulass.cn\/recursive-operation.html<\/a>\u7f16\u8f91\uff1a\u51af\u745e\u6d9b\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb \u9012\u5f52\u662f\u5f88\u795e\u5947\u7684\uff0c\u4f46\u662f\u5728\u5927\u591a\u6570\u7684\u7f16\u7a0b\u7c7b\u4e66\u85c9\u4e2d\u5bf9\u9012\u5f52\u8bb2\u89e3\u7684\u5e76\u4e0d\u597d\u3002\u5b83\u4eec\u53ea\u662f\u7ed9\u4f60\u5c55\u793a\u4e00\u4e2a\u9012\u5f52\u9636\u4e58\u7684\u5b9e\u73b0\uff0c\u7136\u540e\u8b66 […]<\/p>\n","protected":false},"author":1329,"featured_media":103024,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-103017","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/103017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1329"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=103017"}],"version-history":[{"count":4,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/103017\/revisions"}],"predecessor-version":[{"id":103125,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/103017\/revisions\/103125"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/103024"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=103017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=103017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=103017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}