{"id":59,"date":"2008-03-08T15:37:46","date_gmt":"2008-03-08T19:37:46","guid":{"rendered":"http:\/\/www.prglab.com\/blog\/p\/59"},"modified":"2008-03-14T22:34:09","modified_gmt":"2008-03-15T02:34:09","slug":"sap-abap-%e6%80%a7%e8%83%bd%e4%bc%98%e5%8c%96%e6%8a%80%e5%b7%a7-%e4%bd%bf%e7%94%a8%e4%ba%8c%e5%88%86%e6%9f%a5%e6%89%be%e9%80%89%e9%a1%b9","status":"publish","type":"post","link":"https:\/\/www.prglab.com\/blog\/p\/59","title":{"rendered":"SAP ABAP \u6027\u80fd\u4f18\u5316\u6280\u5de7 &#8212; \u4f7f\u7528\u4e8c\u5206\u67e5\u627e(Binary Search)\u9009\u9879"},"content":{"rendered":"<p><font face=\"Arial\">\t\t\t<\/font><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-US\"><font face=\"Arial\"><font size=\"2\">READ\u547d\u4ee4\u4f7f\u7528\u987a\u5e8f\u67e5\u627e\u6570\u636e\u8868\uff0c\u8fd9\u4f1a\u964d\u4f4e\u5904\u7406\u901f\u5ea6\u3002\u53d6\u800c\u4ee3\u4e4b\uff0c\u4f7f\u7528binary search\u7684\u9644\u52a0\u547d\u4ee4\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e8c\u5206\u67e5\u627e\u7b97\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u52a0\u5feb\u5185\u8868\u67e5\u627e\u901f\u5ea6\u3002 \u5728\u4f7f\u7528binary search\u4e4b\u524d<font color=\"#ff0000\"><strong>\u5fc5\u987b<\/strong><\/font>\u9996\u5148\u5c06\u5185\u8868<font color=\"#ff0000\"><strong>\u6392\u5e8f<\/strong><\/font>\uff0c\u5426\u5219\u6709\u53ef\u80fd\u627e\u4e0d\u5230\u8bb0\u5f55\uff0c\u56e0\u4e3a\u4e8c\u5206\u67e5\u627e\u53cd\u590d\u5c06\u67e5\u627e\u533a\u95f4\u5bf9\u534a\u5212\u5206\uff0c\u5982\u679c\u8981\u67e5\u627e\u7684\u503c\u5c0f\u4e8e\u67e5\u627e\u533a\u95f4\u7684\u4e2d\u95f4\u4f4d\u7f6e\u7684\u6570\u636e\u9879\u503c\uff0c\u5219\u67e5\u627e\u533a\u95f4\u5c06\u7f29\u5c0f\u5230\u524d\u534a\u4e2a\u533a\u95f4\uff0c\u5426\u5219\u67e5\u627e\u5c06\u5c40\u9650\u4e8e\u540e\u534a\u533a\u95f4\u3002\u8981\u4e86\u89e3\u66f4\u591a\u7684\u5173\u4e8e\u4e8c\u5206\u67e5\u627e\u7b97\u6cd5\u4ecb\u7ecd\uff0c\u8bf7\u70b9\u51fb<a href=\"http:\/\/student.zjzk.cn\/course_ware\/data_structure\/web\/chazhao\/chazhao9.2.2.1.htm\" target=\"_blank\">\u8fd9\u91cc<\/a>\u3002<\/font><\/font><\/span><\/p>\n<p><font face=\"Arial\">\t\t\t<\/font><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-US\"><font face=\"Arial\"><font size=\"2\">\u4e0d\u63a8\u8350\u4f7f\u7528\uff1a<\/font><\/font><\/span><\/p>\n<p><font face=\"Arial\">\t\t\t<\/font><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-US\"><font face=\"Arial\"><font size=\"2\">    <font color=\"#000080\">Read table int_fligh with key  airln = \u2018LF\u2019.<\/font><\/font><\/font><\/span><\/p>\n<p><font face=\"Arial\">\t\t\t<\/font> <font face=\"Arial\">\t\t\t<\/font><\/p>\n<p><font face=\"Arial\">\t\t\t<\/font><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-US\"><font face=\"Arial\"><font size=\"2\"> \u63a8\u8350\u4f7f\u7528\uff1a<\/font><\/font><\/span><\/p>\n<p><span lang=\"EN-US\"><font face=\"Arial\"><font size=\"2\"><font color=\"#000080\"> SORT int_fligh by airln.<br \/>\nRead table int_fligh with key  airln = \u2018LF\u2019 binary search.<\/font><\/font><\/font><\/span><\/p>\n<hr \/>\n<p> <center><font size=\"2\"><a href=\"http:\/\/www.prglab.com\/blog\/p\/53\">\u8fd4\u56de\u6587\u7ae0\u76ee\u5f55<\/a><\/font><\/center><\/p>\n","protected":false},"excerpt":{"rendered":"<p>READ\u547d\u4ee4\u4f7f\u7528\u987a\u5e8f\u67e5\u627e\u6570\u636e\u8868\uff0c\u8fd9\u4f1a\u964d\u4f4e\u5904\u7406\u901f\u5ea6\u3002\u53d6\u800c\u4ee3\u4e4b\uff0c\u4f7f\u7528binary search\u7684\u9644\u52a0\u547d\u4ee4\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e8c\u5206\u67e5\u627e\u7b97\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u52a0\u5feb\u5185\u8868\u67e5\u627e\u901f\u5ea6\u3002 \u5728\u4f7f\u7528binary search\u4e4b\u524d\u5fc5\u987b\u9996\u5148\u5c06\u5185\u8868\u6392\u5e8f\uff0c\u5426\u5219\u6709\u53ef\u80fd\u627e\u4e0d\u5230\u8bb0\u5f55\uff0c\u56e0\u4e3a\u4e8c\u5206\u67e5\u627e\u53cd\u590d\u5c06\u67e5\u627e\u533a\u95f4\u5bf9\u534a\u5212\u5206\uff0c\u5982\u679c\u8981\u67e5\u627e\u7684\u503c\u5c0f\u4e8e\u67e5\u627e\u533a\u95f4\u7684\u4e2d\u95f4\u4f4d\u7f6e\u7684\u6570\u636e\u9879\u503c\uff0c\u5219\u67e5\u627e\u533a\u95f4\u5c06\u7f29\u5c0f\u5230\u524d\u534a\u4e2a\u533a\u95f4\uff0c\u5426\u5219\u67e5\u627e\u5c06\u5c40\u9650\u4e8e\u540e\u534a\u533a\u95f4\u3002\u8981\u4e86\u89e3\u66f4\u591a\u7684\u5173\u4e8e\u4e8c\u5206\u67e5\u627e\u7b97\u6cd5\u4ecb\u7ecd\uff0c\u8bf7\u70b9\u51fb\u8fd9\u91cc\u3002 \u4e0d\u63a8\u8350\u4f7f\u7528\uff1a Read table int_fligh with key airln = \u2018LF\u2019. \u63a8\u8350\u4f7f\u7528\uff1a SORT int_fligh by airln. Read table int_fligh with key airln = \u2018LF\u2019 binary search. \u8fd4\u56de\u6587\u7ae0\u76ee\u5f55<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/posts\/59"}],"collection":[{"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":0,"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prglab.com\/blog\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}