{"id":785,"date":"2023-04-13T20:43:26","date_gmt":"2023-04-13T12:43:26","guid":{"rendered":"https:\/\/white-night.club\/?p=785"},"modified":"2023-11-09T11:07:56","modified_gmt":"2023-11-09T03:07:56","slug":"study8","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/04\/13\/study8\/","title":{"rendered":"CFG\u7684\u6587\u6cd5\u6811"},"content":{"rendered":"\n<p>\u5728\u63cf\u8ff0\u57fa\u4e8eChomsky\u4f53\u7cfb\u76844\u79cd\u6587\u6cd5\u540e\uff0c\u5176\u4e2d\u7684CFG\uff08\u4e0a\u4e0b\u6587\u65e0\u5173\u6587\u6cd5\uff09\u8fd8\u53ef\u4ee5\u884d\u751f\u51fa\u4ee5\u4e0b\u77e5\u8bc6\u70b9\uff1a<\/p>\n\n\n\n<ul>\n<li>CFG\u8bed\u6cd5\u6811<\/li>\n\n\n\n<li>\u76f4\u63a5\u77ed\u8bed<\/li>\n\n\n\n<li>\u53e5\u67c4\u7684\u5b9a\u4e49<\/li>\n\n\n\n<li>\u5de6\u53e5\u578b\u4e0e\u53f3\u53e5\u578b<\/li>\n<\/ul>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>CFG\u7684\u8bed\u6cd5\u6811\u7684\u4ea7\u751f<\/p>\n<cite><em>\u5bf9\u53e5\u5b50\u7684\u6bcf\u4e00\u6b65\u63a8\u5bfc\u5efa\u6811<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u7ed9\u5b9a\u4e00\u4e2a\u6587\u6cd5\u7684\u4ea7\u751f\u5f0f\uff1a<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>E\u2192 id | c | E + E | E * E<\/strong><\/p>\n\n\n\n<p>\u6c42\u53e5\u5b50 id<sub>1<\/sub> + c * id<sub>2<\/sub>\u7684\u63a8\u5bfc\u3002<\/p>\n\n\n\n<p>\u63a8\u5bfc\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul>\n<li><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">E<\/mark> \u21e8 <mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">E + E<\/mark><\/li>\n\n\n\n<li><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">E<\/mark> + E \u21e8<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\"> id<sub>1<\/sub><\/mark>+ E<\/li>\n\n\n\n<li>id<sub>1<\/sub> +<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\"> E<\/mark>\u21e8 id<sub>1<\/sub> +<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\"> E * E<\/mark><\/li>\n\n\n\n<li>id<sub>1<\/sub>  + <mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">E<\/mark> * E\u21e8 id<sub>1<\/sub> +<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\"> c<\/mark> * E<\/li>\n\n\n\n<li>id<sub>1<\/sub> + c * <mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">E<\/mark>\u21e8id<sub>1<\/sub> + c * <mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">id<sub>2<\/sub><\/mark><\/li>\n<\/ul>\n\n\n\n<p>\u6211\u4eec\u5bf9E\u21e8E + E\u8fd9\u4e00\u6b65\u5efa\u6811\u3002\u4ee5\u6bcf\u4e00\u6b65\u63a8\u5bfc\u8fc7\u7a0b\u4e2d\uff0c\u6240\u4f9d\u636e\u7684\u4ea7\u751f\u5f0f\u5de6\u90e8\u4e3a\u6839\u8282\u70b9\uff0c\u53f3\u90e8\u4e3a\u53f6\u5b50\u8282\u70b9\u3002\u53ef\u4ee5\u5f97\u5230\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"370\" height=\"295\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/04\/tree1.png\" alt=\"\" class=\"wp-image-851\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/04\/tree1.png 370w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/04\/tree1-300x239.png 300w\" sizes=\"(max-width: 370px) 100vw, 370px\" \/><figcaption class=\"wp-element-caption\"><em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">E<strong>\u2192 <\/strong>E+E \uff08\u6b64\u5904\u4e3a\u5b9a\u4e49\u7b26\u53f7\u2192\uff0c\u800c\u4e0d\u662f\u63a8\u5bfc\u7b26\u53f7 \u21e8\uff09<\/mark><\/em><\/figcaption><\/figure>\n\n\n\n<p>\u518d\u5bf9\u7b2c\u4e8c\u6b65\u63a8\u5bfc\u5efa\u6811\uff0c\u6b64\u65f6\u63a8\u5bfc\u4f9d\u636e\u7684\u4ea7\u751f\u5f0f\u4e3a E <strong>\u2192<\/strong> id\uff0c\u53ef\u5f97\u56fe\u4e3a<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"369\" height=\"467\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/04\/tree2.png\" alt=\"\" class=\"wp-image-854\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/04\/tree2.png 369w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/04\/tree2-237x300.png 237w\" sizes=\"(max-width: 369px) 100vw, 369px\" \/><figcaption class=\"wp-element-caption\"><em>E <strong>\u2192<\/strong> id<\/em><\/figcaption><\/figure>\n\n\n\n<p>\u63a5\u4e0b\u6765\u5bf9\u6bcf\u4e00\u6b65\u90fd\u5728\u539f\u6709\u6811\u7684\u57fa\u7840\u4e0a\u5efa\u6811\u3002\u6bcf\u4e00\u6b65\u90fd\u9075\u7167\u201c\u4ea7\u751f\u5f0f\u5de6\u90e8\u4e3a\u6839\u8282\u70b9\uff0c\u53f3\u90e8\u4e3a\u53f6\u5b50\u8282\u70b9\u201d\u7684\u89c4\u5219\u5efa\u6811\uff0c\u53ef\u4ee5\u5f97\u5230\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"453\" height=\"614\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/04\/tree3.png\" alt=\"\" class=\"wp-image-855\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/04\/tree3.png 453w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/04\/tree3-221x300.png 221w\" sizes=\"(max-width: 453px) 100vw, 453px\" \/><figcaption class=\"wp-element-caption\"><em>E \u21e8 id1 + c * id2\u7684\u8bed\u6cd5\u6811<\/em><\/figcaption><\/figure>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u8bed\u6cd5\u6811\u6700\u540e\u7684\u53f6\u5b50\u8282\u70b9\u4fbf\u662f\u6211\u4eec\u63a8\u5bfc\u540e\u6240\u5f97\u5230\u7684\u53e5\u5b50\u3002<\/p>\n\n\n\n<p>\u5f53\u7136\u901a\u8fc7\u5f52\u7ea6\u4e5f\u80fd\u5f97\u5230\u8bed\u6cd5\u6811\uff0c\u4ece\u53f6\u5b50\u8282\u70b9\u5f00\u59cb\u5efa\u6811\u5373\u53ef\u3002\u6bd4\u8f83\u7b80\u5355\u5c31\u4e0d\u4f5c\u8fc7\u591a\u63cf\u8ff0\u4e86\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>CFG\u8bed\u6cd5\u6811\u7684\u5b9a\u4e49<\/p>\n<cite><em>\u975e\u53f6\u5b50\u8282\u70b9\u53ea\u80fd\u4e3a\u8bed\u6cd5\u53d8\u91cf<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u53c2\u8003\u8bfe\u672c\u4e0a\u7684\u5b9a\u4e49\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06CFG\u8bed\u6cd5\u6811\u7684\u5b9a\u4e49\u603b\u7ed3\u4e3a\uff1a<\/p>\n\n\n\n<ul>\n<li>\u9996\u5148\u6587\u6cd5G\u5f97\u662fCFG\u3002\u5373G\u4e2d\u7684<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">\u4ea7\u751f\u5f0f\u53f3\u90e8\u957f\u5ea6\u5927\u4e8e\u5de6\u90e8<\/mark>\u3002\u5e76\u4e14<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">\u4efb\u610f\u4ea7\u751f\u5f0f\u7684\u5de6\u90e8\u5747\u4e3a\u8bed\u6cd5\u53d8\u91cf<\/mark>\u3002<\/li>\n\n\n\n<li>\u6839\u8282\u70b9+\u975e\u53f6\u5b50\u8282\u70b9\u5747\u4e3a<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">\u5355\u4e2a\u8bed\u6cd5\u53d8\u91cf<\/mark>\n<ul>\n<li>\u5408\u6cd5\u7684\u8282\u70b9\uff1aS\uff0cA\uff0cB<\/li>\n\n\n\n<li>\u975e\u6cd5\u7684\u8282\u70b9\uff1aSA\uff0cASB\uff0cSAB\uff0cSaB<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u53f6\u5b50\u8282\u70b9\u5373\u53ef\u4ee5\u662f\u8bed\u6cd5\u53d8\u91cf\uff0c\u4e5f\u53ef\u4ee5\u662f\u5355\u4e2a\u5b57\u7b26\uff0c\u4e5f\u53ef\u4ee5\u4e3a\u7a7a\u5b57\u7b26\u4e32\u03b5\u3002<\/li>\n\n\n\n<li>\u8bbe\u53f6\u5b50\u8282\u70b9\u4e3ax\uff0c\u5176\u7236\u8282\u70b9\u4e3a\u8bed\u6cd5\u53d8\u91cfA\u3002\u90a3\u4e48\u6587\u6cd5G\u4e2d\u7684\u5e94\u5305\u542b\u8be5\u8bed\u6cd5\u53d8\u91cf\u7684\u4ea7\u751f\u5f0f A\u2192x\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u53ea\u6709\u6ee1\u8db3\u4ee5\u4e0a\u5b9a\u4e49\u7684\u624d\u662fCFG\u8bed\u6cd5\u6811\u3002\u53cd\u8fc7\u6765\u8bf4\uff0c\u5982\u679c\u4e00\u4e2a\u6587\u6cd5\u80fd\u4ea7\u751f\u8bed\u6cd5\u6811\uff0c\u90a3\u5b83\u4e00\u5b9a\u662fCFG\u3002<\/p>\n\n\n\n<p>\u4ece\u8bed\u6cd5\u6811\u4e2d\u8fd8\u884d\u751f\u51fa\u4e86\u7ed3\u679c\u548cA-\u5b50\u6811\u7684\u6982\u5ff5\uff1a<\/p>\n\n\n\n<ul>\n<li>\u7ed3\u679c\uff1a\u8bed\u6cd5\u6811\u7684\u6240\u6709\u53f6\u5b50\u8282\u70b9\uff0c\u4ece\u5de6\u5411\u53f3\u6392\u5e8f\u7ec4\u5408\u6210\u7684\u5b57\u7b26\u4e32\u88ab\u79f0\u4e3a\u7ed3\u679c(yield)\u3002<\/li>\n\n\n\n<li>A-\u5b50\u6811\uff1a\u5bf9\u4e8e\u6587\u6cd5G=\uff08V\uff0cT\uff0cP\uff0cS\uff09\uff0c\u5982\u679c\u8bed\u6cd5\u6811\u7684\u6839\u8282\u70b9\u4e0d\u4e3aS\uff0c\u800c\u4e3a\u5176\u4ed6\u67d0\u4e00\u4e2a\u4efb\u610f\u8bed\u6cd5\u53d8\u91cf\uff0c\u90a3\u4e48\u8be5\u8bed\u6cd5\u53d8\u91cf\u6784\u6210\u7684\u8bed\u6cd5\u6811\u88ab\u79f0\u4e3aA-\u5b50\u6811(A-subtree)\u3002<\/li>\n<\/ul>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>\u77ed\u8bed(phrase)<\/p>\n<cite><em>\u76f4\u63a5\u77ed\u8bed\u4e0e\u8bed\u6cd5\u6811<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u5bf9\u4e8eCFG\u6587\u6cd5G=\uff08V\uff0cT\uff0cP\uff0cS\uff09\u7684\u4e00\u4e2a\u53e5\u578b\u03b3A\u03b2\uff08\u53e5\u578b\u548c\u53e5\u5b50\u7684\u533a\u522b\u4ee5\u524d\u7684\u6587\u7ae0\u63d0\u5230\u8fc7\uff09\uff0c\u5982\u679cS\u53ef\u4ee5\u7ecf\u8fc7\u591a\u6b65\u63a8\u5bfc\u5f97\u5230\u53e5\u578b\u03b3A\u03b2\uff0c\u800cA\u7ecf\u8fc7\u4e00\u6b65\u6216\u591a\u6b65\u63a8\u5bfc\u53ef\u4ee5\u5f97\u5230\u5b57\u7b26\u4e32\u03b1\uff0c\u90a3\u4e48\u03b1\u5c31\u662f\u53e5\u578b\u03b3A\u03b2\u76f8\u5bf9\u4e8e\u53d8\u91cfA\u7684\u77ed\u8bed\u3002<\/p>\n\n\n\n<p>\u8fd8\u662f\u4e0a\u9762\u90a3\u4e2a\u4f8b\u5b50<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>E\u2192 id | c | E + E | E * E<\/strong><\/p>\n\n\n\n<p>\u90a3\u4e48\u5bf9\u4e8e\u53e5\u578b id + c * E\uff0c\u5b83\u7684\u77ed\u8bed\u6709\uff1a<\/p>\n\n\n\n<ul>\n<li>id (E \u21e8 id\uff0cE\u7ecf\u8fc7\u4e00\u6b65\u63a8\u5bfc\u53ef\u4ee5\u5f97\u5230id)<\/li>\n\n\n\n<li>c (E \u21e8 c\uff0cE\u7ecf\u8fc7\u4e00\u6b65\u63a8\u5bfc\u53ef\u4ee5\u5f97\u5230c)<\/li>\n\n\n\n<li>c * E (E \u21e8 c * E\uff0cE\u7ecf\u8fc7\u4e24\u6b65\u63a8\u5bfc\u53ef\u4ee5\u5f97\u5230c * E\uff09<\/li>\n\n\n\n<li>id + c * E \uff08E \u21e8 id + c * E\uff0cE\u7ecf\u8fc7\u591a\u6b65\u63a8\u5bfc\u53ef\u4ee5\u5f97\u5230\u8be5\u53e5\u578b\uff09<\/li>\n<\/ul>\n\n\n\n<p>\u540c\u65f6\uff0c<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">\u8bed\u6cd5\u53d8\u91cf\u7ecf\u8fc7\u4e00\u6b65\u63a8\u5bfc\u4fbf\u53ef\u4ee5\u5f97\u5230\u7684\u77ed\u8bed\u88ab\u79f0\u4e3a\u76f4\u63a5\u77ed\u8bed<\/mark>(immediate phrase)\uff0c\u53c8\u79f0\u7b80\u5355\u77ed\u8bed(simple phrase)\u3002<\/p>\n\n\n\n<p>\u8bf4\u767d\u4e86\uff0c\u5bf9\u4e8eCFG\u6587\u6cd5G\u7684\u53e5\u578b\uff0c\u5982\u679c\u8be5\u53e5\u578b\u4e2d\u6709\u8bed\u6cd5\u53d8\u91cf\uff0c\u90a3\u4e48\u624d\u6709\u77ed\u8bed\u7684\u6982\u5ff5\u3002\u5982\u679c\u8be5\u8bed\u6cd5\u53d8\u91cf\u80fd\u7ecf\u8fc7\u4e00\u6b65\u63a8\u5bfc\u5c31\u80fd\u5f97\u51fa\u67d0\u4e2a\u77ed\u8bed\uff0c\u90a3\u4e48\u8be5\u77ed\u8bed\u5c31\u662f\u8be5\u53e5\u578b\u7684\u76f4\u63a5\u77ed\u8bed\u3002<\/p>\n\n\n\n<p>\u800c\u77ed\u8bed\u4e0e\u6811\u7684\u5173\u7cfb\u6bd4\u8f83\u7b80\u5355\uff0c\u5efa\u8bae\u81ea\u884c\u770b\u4e66\uff0c\u8fd9\u91cc\u53ea\u505a\u6982\u8ff0\uff1a<\/p>\n\n\n\n<p>\u5bf9\u4e8eCFG\u6587\u6cd5G=\uff08V\uff0cT\uff0cP\uff0cS\uff09\u4e2d\u7684\u53e5\u578b\u03b3A\u03b2\uff0c\u4ece\u5f00\u59cb\u7b26\u53f7S\u4e3a\u8d77\u70b9\uff0c\u4ee5\u8be5\u53e5\u578b\u4e3a\u7ec8\u70b9\uff0c\u53ef\u4ee5\u5f97\u5230\u8be5\u53e5\u578b\u7684\u63a8\u5bfc\u8fc7\u7a0b\u3002\u5bf9\u63a8\u5bfc\u8fc7\u7a0b\u9010\u6b65\u5efa\u6811\uff0c\u6700\u540e\u5f97\u5230\u8be5\u53e5\u578b\u7684\u8bed\u6cd5\u6811\u3002\u53ef\u4ee5\u5f97\u5230\u4ee5\u4e0b\u5b9a\u4e49\uff1a<\/p>\n\n\n\n<ul>\n<li>\u8be5\u8bed\u6cd5\u6811\u7684\u7ed3\u679c\u662f\u8be5\u53e5\u578b\u7684\u77ed\u8bed\uff08\u5373\u53e5\u578b\u672c\u8eab\u662f\u5b83\u7684\u77ed\u8bed\uff09<\/li>\n\n\n\n<li>\u53e5\u578b\u7684\u8bed\u6cd5\u6811\u7684\u4efb\u610f\u4e00\u4e2a\u5c42\u6570<strong>\u81f3\u5c11<\/strong>\u4e3a2\u7684A-\u5b50\u6811\u7684\u7ed3\u679c\u662f\u5b83\u7684\u77ed\u8bed\u3002<\/li>\n\n\n\n<li>\u53e5\u578b\u7684\u8bed\u6cd5\u6811\u7684\u4efb\u610f\u4e00\u4e2a\u5c42\u6570\u4e3a2\u7684A-\u5b50\u6811\u7684\u7ed3\u679c\u662f\u5b83\u7684\u77ed\u8bed\u3002<\/li>\n\n\n\n<li>\u53e5\u578b\u7684\u77ed\u8bed\u4e2a\u6570\uff0c\u5c0f\u4e8e\u7b49\u4e8e\u5176\u8bed\u6cd5\u6811\u7684\u4e2d\u95f4\u8282\u70b9\u7684\u4e2a\u6570\u3002\uff08\u5927\u90e8\u5206\u60c5\u51b5\u90fd\u662f\u7b49\u4e8e\uff0c\u53ea\u6709\u5f53\u51fa\u73b0\u4ea7\u751f\u5f0fA\u2192B\u65f6\u624d\u4f1a\u51fa\u73b0\u5c0f\u4e8e\u7684\u60c5\u51b5\uff09\n<ul>\n<li>\u53ef\u4ee5\u81ea\u884c\u6309\u7167\u4e0a\u9762\u90a3\u4e2a\u4f8b\u5b50\uff0c\u753b\u4e0b\uff1a\u6dfb\u52a0\u4ea7\u751f\u5f0fE\u2192A\uff0c\u6c42\u53e5\u578bid + c * A\u7684\u8bed\u6cd5\u6811\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u53e5\u578b\u7684\u7b80\u5355\u77ed\u8bed\u4e2a\u6570\uff0c\u7b49\u4e8e\u5176\u8bed\u6cd5\u6811\u76842\u7ea7A-\u5b50\u6811\u7684\u4e2a\u6570\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u90e8\u5206\u4e0d\u96be\u7406\u89e3\uff0c\u5c31\u4e0d\u753b\u8bed\u6cd5\u6811\u4e86\u3002\u53ef\u4ee5\u81ea\u884c\u753b\u8bed\u6cd5\u6811\u52a0\u6df1\u7406\u89e3\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>\u53e5\u67c4\u4e0e\u5de6\u53f3\u53e5\u578b<\/p>\n<cite><em>\u5b57\u9762\u610f\u601d<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u53e5\u67c4\u4e0e\u5de6\u53f3\u53e5\u578b\u6982\u5ff5\u5f88\u5c11\uff0c\u6211\u4eec\u653e\u4e00\u8d77\u89e3\u91ca\u3002\u5148\u6765\u770b\u770b\u53e5\u67c4\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8eCFG\u6587\u6cd5G\u7684\u53e5\u578b\uff0c\u8be5\u53e5\u578b\u7684\u6700\u5de6\u76f4\u63a5\u77ed\u8bed\u5c31\u79f0\u4e3a\u53e5\u67c4(handle)\u3002<\/p>\n\n\n\n<p>\u6bd4\u5982\u53e5\u578b id + c * E\uff0c\u5b83\u7684\u77ed\u8bed\u4e3a\uff1aid\uff0cc\uff0cc * E\uff0cid + c * E\uff1b\u76f4\u63a5\u77ed\u8bed\u4e3aid\uff0cc\u3002\u800c\u6700\u5de6\u8fb9\u7684\u76f4\u63a5\u77ed\u8bed\u5c31\u662fid\u3002\u6240\u4ee5\u8be5\u53e5\u578b\u7684\u53e5\u67c4\u4e3aid\u3002<\/p>\n\n\n\n<p>\u63a5\u4e0b\u6765\u662f\u5de6\u53f3\u53e5\u578b\u4e0e\u6700\u5de6\/\u6700\u53f3\u63a8\u5bfc\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8eCFG\u6587\u6cd5G\u7684\u53e5\u578b\u03b1\uff0c\u5982\u679c\u5728\u03b1\u7684\u63a8\u5bfc\u8fc7\u7a0b\u4e2d\uff0c\u6bcf\u4e00\u6b65\u90fd\u662f\u5bf9\u5f53\u524d\u53e5\u578b\u7684<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">\u6700\u5de6<strong>\u53d8\u91cf<\/strong>\uff08\u5373\u8bed\u6cd5\u53d8\u91cf\uff09<\/mark>\u8fdb\u884c\u66ff\u6362\uff0c\u5219\u8be5\u63a8\u5bfc\u88ab\u79f0\u4e3a\u6700\u5de6\u63a8\u5bfc(leftmost derivation)\uff0c\u6bcf\u4e00\u6b65\u6240\u5f97\u53e5\u578b\u4e3a\u5de6\u53e5\u578b(left sentential form)\uff0c\u76f8\u5e94\u7684\u5f52\u7ea6\u79f0\u4e3a<strong>\u6700\u53f3\u5f52\u7ea6<\/strong>(rightmost reduction)\u3002<\/p>\n\n\n\n<p>\u53cd\u4e4b\uff0c\u5982\u679c\u5bf9\u6700\u53f3\u53d8\u91cf\u8fdb\u884c\u66ff\u6362\uff0c\u5219\u8be5\u63a8\u5bfc\u88ab\u79f0\u4e3a\u6700\u53f3\u63a8\u5bfc\uff0c\u6240\u5f97\u53e5\u578b\u4e3a\u53f3\u53e5\u578b\uff0c\u76f8\u5e94\u7684\u5f52\u7ea6\u79f0\u4e3a<strong>\u6700\u5de6\u5f52\u7ea6<\/strong>\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u5f00\u5934\u7684\u63d0\u5230\u7684\u4f8b\u5b50\u4fbf\u4e3a\u6700\u5de6\u63a8\u5bfc\u3002\u6bcf\u4e00\u6b65\u6211\u4eec\u90fd\u5bf9\u5f53\u524d\u53e5\u578b\u7684\u6700\u5de6\u8bed\u6cd5\u53d8\u91cf\u8fdb\u884c\u66ff\u6362\u3002<\/p>\n\n\n\n<ul>\n<li><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">E<\/mark> \u21e8 <mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">E + E<\/mark><\/li>\n\n\n\n<li><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">E<\/mark> + E \u21e8<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\"> id<sub>1<\/sub><\/mark>+ E<\/li>\n\n\n\n<li>id<sub>1<\/sub> +<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\"> E<\/mark>\u21e8 id<sub>1<\/sub> +<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\"> E * E<\/mark><\/li>\n\n\n\n<li>id<sub>1<\/sub>  + <mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">E<\/mark> * E\u21e8 id<sub>1<\/sub> +<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\"> c<\/mark> * E<\/li>\n\n\n\n<li>id<sub>1<\/sub> + c * <mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">E<\/mark>\u21e8id<sub>1<\/sub> + c * <mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">id<\/mark><\/li>\n<\/ul>\n\n\n\n<p>\u6700\u53f3\u63a8\u5bfc\u4e5f\u5f88\u597d\u7406\u89e3\uff0c\u5bf9\u5f53\u524d\u53e5\u578b\u7684\u6700\u53f3\u8bed\u6cd5\u53d8\u91cf\u53e5\u578b\u66ff\u6362\u5373\u53ef\u3002\u6bd4\u8f83\u7b80\u5355\u5c31\u4e0d\u4e3e\u4f8b\u4e86\u3002<\/p>\n\n\n\n<p>\u7531\u4e8e\u4ece\u5de6\u5411\u53f3\u5206\u6790\u53e5\u578b\u6bd4\u8f83\u7b26\u5408\u8ba1\u7b97\u673a\u7cfb\u7edf\u5bf9\u5b57\u7b26\u4e32\u7684\u5904\u7406\uff0c\u6240\u6709\u6700\u5de6\u5f52\u7ea6\u4e5f\u88ab\u79f0\u4e3a\u89c4\u8303\u5f52\u7ea6\uff1b\u6700\u53f3\u63a8\u5bfc\u88ab\u79f0\u4e3a\u89c4\u8303\u63a8\u5bfc\u3002\u89c4\u8303\u5f52\u7ea6\uff0c\u89c4\u8303\u63a8\u5bfc\u4ea7\u751f\u7684\u53e5\u578b\u88ab\u79f0\u4e3a\u89c4\u8303\u53e5\u578b(canonical sentential form)\u3002<\/p>\n\n\n\n<p>\u5f53\u7136\uff0c\u5e76\u4e0d\u662f\u6240\u6709\u63a8\u5bfc\u90fd\u53ef\u4ee5\u88ab\u5206\u4e3a\u6700\u5de6\u63a8\u5bfc\u6216\u6700\u53f3\u63a8\u5bfc\u3002\u5177\u4f53\u95ee\u9898\u5177\u4f53\u5206\u6790\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u6cd5\u6811\u7684\u76f8\u5173\u5b9a\u4e49<\/p>\n","protected":false},"author":1,"featured_media":851,"comment_status":"open","ping_status":"closed","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[26,46],"tags":[27],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/785"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=785"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/785\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/851"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}