{"id":1086,"date":"2017-02-20T14:05:44","date_gmt":"2017-02-20T06:05:44","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1086"},"modified":"2017-02-20T14:05:44","modified_gmt":"2017-02-20T06:05:44","slug":"100%e4%ba%bf%e4%b8%aa%e6%95%b0%e5%ad%97%e7%9a%84%e5%a4%a7%e6%96%87%e4%bb%b6%e5%a6%82%e4%bd%95%e5%bf%ab%e9%80%9f%e6%89%be%e5%87%ba%e6%9c%80%e5%b0%8f%e7%9a%84%e5%80%bc%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1086","title":{"rendered":"100\u4ebf\u4e2a\u6570\u5b57\u7684\u5927\u6587\u4ef6\u5982\u4f55\u5feb\u901f\u627e\u51fa\u6700\u5c0f\u7684\u503c\uff1f"},"content":{"rendered":"<p>\n\t\u53c8\u5230\u4e86\u4e00\u5e74\u4e00\u5ea6\u7684\u9762\u8bd5\u5b63\uff0c\u6700\u8fd1\u6709\u7f51\u53cb\u7ed9\u51fa\u4e00\u9053\u9ad8\u7ea7java\u5de5\u7a0b\u5e08\u7684\u9762\u8bd5\u9898\u3002100\u4ebf\u4e2a\u6570\u5b57\u7684\u5927\u6587\u4ef6\u5982\u4f55\u5feb\u901f\u627e\u51fa\u6700\u5c0f\u7684\u503c\uff1f\u6211\u8fd9\u91cc\u7ed9\u51fa\u4e00\u4e9b\u601d\u8def\uff0c\u63d0\u4f9b\u53c2\u8003\uff01\n<\/p>\n<p>\n\t\u8fd9\u9053\u9898\u6211\u4eec\u9996\u5148\u60f3\u5230\u7684\u662f\u4f7f\u7528\u5916\u90e8\u6392\u5e8f\u7684\u65b9\u5f0f\uff0c\u7531\u4e8e\u5185\u5b58\u7684\u539f\u56e0\uff0c\u5185\u90e8\u6392\u5e8f\u80af\u5b9a\u4e0d\u88ab\u5141\u8bb8\uff0c\u6216\u8005\u4e0d\u662f\u6700\u4f73\u9009\u62e9\uff01\n<\/p>\n<h2>\n\t\u5916\u90e8\u6392\u5e8f<br \/>\n<\/h2>\n<p>\n\t\u5185\u5b58\u6781\u5c11\u7684\u60c5\u51b5\u4e0b\uff0c\u5229\u7528\u5206\u6cbb\u7b56\u7565\uff0c\u5229\u7528\u5916\u5b58\u4fdd\u5b58\u4e2d\u95f4\u7ed3\u679c\uff0c\u518d\u7528\u591a\u8def\u5f52\u5e76\u6765\u6392\u5e8f\u3002\n<\/p>\n<h2>\n\tmap-reduce\u7684\u5ae1\u7cfb<br \/>\n<\/h2>\n<p>\n\t<img decoding=\"async\" alt=\"map-reduce\" src=\"http:\/\/img.bbs.csdn.net\/upload\/201702\/20\/1487569909_613616.png\" style=\"width: 651px;height: 375px\" \/>\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u5927\u6587\u4ef6\u6392\u5e8f\" src=\"http:\/\/img.bbs.csdn.net\/upload\/201702\/20\/1487569951_568314.png\" style=\"width: 719px;height: 423px\" \/>\n<\/p>\n<h2>\n\t\u5206\u5272\u5927\u6587\u4ef6<br \/>\n<\/h2>\n<p>\n\t\u5185\u5b58\u4e2d\u7ef4\u62a4\u4e00\u4e2a\u6781\u5c0f\u7684\u6838\u5fc3\u7f13\u51b2\u533amemBuffer\uff0c\u5c06\u5927\u6587\u4ef6bigdata\u6309\u884c\u8bfb\u5165\uff0c\u641c\u96c6\u5230memBuffer\u6ee1\u6216\u8005\u5927\u6587\u4ef6\u8bfb\u5b8c\u65f6\uff0c\u5bf9memBuffer\u4e2d\u7684\u6570\u636e\u8c03\u7528\u5185\u6392\u8fdb\u884c\u6392\u5e8f\uff0c\u6392\u5e8f\u540e\u5c06\u6709\u5e8f\u7ed3\u679c\u5199\u5165\u78c1\u76d8\u6587\u4ef6bigdata.xxx.part.sorted.<br \/>\n\t\u5faa\u73af\u5229\u7528memBuffer\u76f4\u5230\u5927\u6587\u4ef6\u5904\u7406\u5b8c\u6bd5\uff0c\u5f97\u5230n\u4e2a\u6709\u5e8f\u7684\u78c1\u76d8\u6587\u4ef6\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u5927\u6587\u4ef6\u6392\u5e8f\u5206\u5272\" src=\"http:\/\/img.bbs.csdn.net\/upload\/201702\/20\/1487570362_187378.png\" style=\"width: 676px;height: 286px\" \/>\n<\/p>\n<h2>\n\t\u5408\u5e76\u591a\u4e2a\u6392\u5e8f\u7ed3\u679c<br \/>\n<\/h2>\n<p>\n\t\u73b0\u5728\u6709\u4e86n\u4e2a\u6709\u5e8f\u7684\u5c0f\u6587\u4ef6\uff0c\u600e\u4e48\u5408\u5e76\u62101\u4e2a\u6709\u5e8f\u7684\u5927\u6587\u4ef6\uff1f<br \/>\n\t\u628a\u6240\u6709\u5c0f\u6587\u4ef6\u8bfb\u5165\u5185\u5b58\uff0c\u7136\u540e\u5185\u6392\uff1f<br \/>\n\t\u5229\u7528\u5982\u4e0b\u539f\u7406\u8fdb\u884c\u5f52\u5e76\u6392\u5e8f\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u591a\u6392\u5e8f\u7ed3\u679c\u5408\u5e76\" src=\"http:\/\/img.bbs.csdn.net\/upload\/201702\/20\/1487570476_10987.png\" style=\"width: 694px;height: 333px\" \/>\n<\/p>\n<p>\n\t\u6211\u4eec\u4e3e\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff1a\n<\/p>\n<blockquote>\n<p>\n\t\t\u6587\u4ef61\uff1a<strong>3<\/strong>,6,9<br \/>\n\t\t\u6587\u4ef62\uff1a<strong>2<\/strong>,4,8<br \/>\n\t\t\u6587\u4ef63\uff1a<strong>1<\/strong>,5,7\n\t<\/p>\n<p>\n\t\t\u7b2c\u4e00\u56de\u5408\uff1a<br \/>\n\t\t\u6587\u4ef61\u7684\u6700\u5c0f\u503c\uff1a3 , \u6392\u5728\u6587\u4ef61\u7684\u7b2c1\u884c<br \/>\n\t\t\u6587\u4ef62\u7684\u6700\u5c0f\u503c\uff1a2\uff0c\u6392\u5728\u6587\u4ef62\u7684\u7b2c1\u884c<br \/>\n\t\t\u6587\u4ef63\u7684\u6700\u5c0f\u503c\uff1a1\uff0c\u6392\u5728\u6587\u4ef63\u7684\u7b2c1\u884c<br \/>\n\t\t\u90a3\u4e48\uff0c\u8fd93\u4e2a\u6587\u4ef6\u4e2d\u7684\u6700\u5c0f\u503c\u662f\uff1amin(1,2,3) = 1<br \/>\n\t\t\u4e5f\u5c31\u662f\u8bf4\uff0c\u6700\u7ec8\u5927\u6587\u4ef6\u7684\u5f53\u524d\u6700\u5c0f\u503c\uff0c\u662f\u6587\u4ef61\u30012\u30013\u7684\u5f53\u524d\u6700\u5c0f\u503c\u7684\u6700\u5c0f\u503c\uff0c\u7ed5\u4e48\uff1f<br \/>\n\t\t\u4e0a\u9762\u62ff\u51fa\u4e86\u6700\u5c0f\u503c1\uff0c\u5199\u5165\u5927\u6587\u4ef6.\n\t<\/p>\n<\/blockquote>\n<blockquote>\n<p>\n\t\t\u7b2c\u4e8c\u56de\u5408\uff1a<br \/>\n\t\t\u6587\u4ef61\u7684\u6700\u5c0f\u503c\uff1a3 , \u6392\u5728\u6587\u4ef61\u7684\u7b2c1\u884c<br \/>\n\t\t\u6587\u4ef62\u7684\u6700\u5c0f\u503c\uff1a2\uff0c\u6392\u5728\u6587\u4ef62\u7684\u7b2c1\u884c<br \/>\n\t\t\u6587\u4ef63\u7684\u6700\u5c0f\u503c\uff1a5\uff0c\u6392\u5728\u6587\u4ef63\u7684\u7b2c2\u884c<br \/>\n\t\t\u90a3\u4e48\uff0c\u8fd93\u4e2a\u6587\u4ef6\u4e2d\u7684\u6700\u5c0f\u503c\u662f\uff1amin(5,2,3) = 2<br \/>\n\t\t\u5c062\u5199\u5165\u5927\u6587\u4ef6.\n\t<\/p>\n<\/blockquote>\n<p>\n\t<strong>\u4e5f\u5c31\u662f\u8bf4\uff0c\u6700\u5c0f\u503c\u5c5e\u4e8e\u54ea\u4e2a\u6587\u4ef6\uff0c\u90a3\u4e48\u5c31\u4ece\u54ea\u4e2a\u6587\u4ef6\u5f53\u4e2d\u53d6\u4e0b\u4e00\u884c\u6570\u636e.<\/strong>\uff08\u56e0\u4e3a\u5c0f\u6587\u4ef6\u5185\u90e8\u6709\u5e8f\uff0c\u4e0b\u4e00\u884c\u6570\u636e\u4ee3\u8868\u4e86\u5b83\u5f53\u524d\u7684\u6700\u5c0f\u503c\uff09\n<\/p>\n<p>\n\t\u6700\u7ec8\u7684\u6392\u5e8f\u7ed3\u679c\n<\/p>\n<pre class=\"brush:plain;\">\r\nless bigdata.sorted.text\r\n...\r\n9999966\r\n9999967\r\n9999968\r\n9999969\r\n9999970\r\n9999971\r\n9999972\r\n9999973\r\n9999974\r\n9999975\r\n9999976\r\n9999977\r\n9999978\r\n...\r\n<\/pre>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1086\">100\u4ebf\u4e2a\u6570\u5b57\u7684\u5927\u6587\u4ef6\u5982\u4f55\u5feb\u901f\u627e\u51fa\u6700\u5c0f\u7684\u503c\uff1f<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u53c8\u5230\u4e86\u4e00\u5e74\u4e00\u5ea6\u7684\u9762\u8bd5\u5b63\uff0c\u6700\u8fd1\u6709\u7f51\u53cb\u7ed9\u51fa\u4e00\u9053\u9ad8\u7ea7java\u5de5\u7a0b\u5e08\u7684\u9762\u8bd5\u9898\u3002100\u4ebf\u4e2a\u6570\u5b57\u7684\u5927\u6587\u4ef6\u5982\u4f55\u5feb\u901f\u627e\u51fa\u6700\u5c0f\u7684 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[69,822,823,791,821],"class_list":["post-1086","post","type-post","status-publish","format-standard","hentry","category-java","tag-java","tag-822","tag-823","tag-791","tag-821"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1086"}],"version-history":[{"count":2,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1086\/revisions"}],"predecessor-version":[{"id":1088,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1086\/revisions\/1088"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}