{"id":1038,"date":"2021-12-24T22:04:18","date_gmt":"2021-12-24T14:04:18","guid":{"rendered":"https:\/\/blog.cauchyschwarz.com\/?p=1038"},"modified":"2021-12-24T22:16:34","modified_gmt":"2021-12-24T14:16:34","slug":"%e6%95%b0%e6%8d%ae%e7%bb%93%e6%9e%84%e4%b8%8e%e7%ae%97%e6%b3%95%e5%88%86%e6%9e%90c%e8%af%ad%e8%a8%80%e6%8f%8f%e8%bf%b0-algorithm-alnalysis","status":"publish","type":"post","link":"https:\/\/blog.cauchyschwarz.com\/?p=1038","title":{"rendered":"\u6570\u636e\u7ed3\u6784\u4e0e\u7b97\u6cd5\u5206\u6790C++\u8bed\u8a00\u63cf\u8ff0 Algorithm Alnalysis"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e0ad98dc271\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e0ad98dc271\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=1038\/#%E6%B8%90%E8%BF%91%E8%A1%A8%E7%A4%BA%E6%B3%95\" >\u6e10\u8fd1\u8868\u793a\u6cd5<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=1038\/#%E6%B8%90%E8%BF%91%E4%B8%8A%E7%95%8C\" >\u6e10\u8fd1\u4e0a\u754c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=1038\/#%E6%B8%90%E8%BF%91%E4%B8%8B%E7%95%8C\" >\u6e10\u8fd1\u4e0b\u754c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=1038\/#%E6%B8%90%E8%BF%91%E7%B4%A7%E7%A1%AE%E7%95%8C\" >\u6e10\u8fd1\u7d27\u786e\u754c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=1038\/#%E9%9D%9E%E6%B8%90%E8%BF%91%E7%B4%A7%E7%A1%AE%E4%B8%8A%E7%95%8C\" >\u975e\u6e10\u8fd1\u7d27\u786e\u4e0a\u754c<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%B8%90%E8%BF%91%E8%A1%A8%E7%A4%BA%E6%B3%95\"><\/span><a href=\"https:\/\/blog.csdn.net\/so_geili\/article\/details\/53353593\" data-type=\"URL\" data-id=\"https:\/\/blog.csdn.net\/so_geili\/article\/details\/53353593\">\u6e10\u8fd1\u8868\u793a\u6cd5<\/a><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%B8%90%E8%BF%91%E4%B8%8A%E7%95%8C\"><\/span>\u6e10\u8fd1\u4e0a\u754c<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\\( T(N) = O(f(N)) \\) if there are positive constants \\( c \\) and \\( n_0 \\) such that \\( T(N) \\leq cf(N) \\) when \\( N \\geq n_0 \\) \u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%B8%90%E8%BF%91%E4%B8%8B%E7%95%8C\"><\/span>\u6e10\u8fd1\u4e0b\u754c<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\\( T(N)= \\Omega (g(N)) \\) if there are positive constants \\( c \\) and \\( n_0 \\) such that \\( T(N) \\geq cg(N) \\) when \\( N \\geq n_0 \\)\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%B8%90%E8%BF%91%E7%B4%A7%E7%A1%AE%E7%95%8C\"><\/span>\u6e10\u8fd1\u7d27\u786e\u754c<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\\(T(N)=\\Theta (h(N)) \\) if and only if \\( T(N) = O(h(N)) \\) and \\( T(N) = \\Omega (h(N)) \\)\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%9D%9E%E6%B8%90%E8%BF%91%E7%B4%A7%E7%A1%AE%E4%B8%8A%E7%95%8C\"><\/span>\u975e\u6e10\u8fd1\u7d27\u786e\u4e0a\u754c<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\\(T(N)=o(p(N)) \\) if \\( T(N) = O(p(N)) \\) and \\( T(N) \\neq \\Theta (p(N)) \\)\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6e10\u8fd1\u8868\u793a\u6cd5 \u6e10\u8fd1\u4e0a\u754c \\( T(N) = O(f(N)) \\) if there are positive constants \\( c \\) and \\( n_0 \\) such that \\( T&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,6],"tags":[26,9],"class_list":["post-1038","post","type-post","status-publish","format-standard","hentry","category-10","category-6","tag-algorithm","tag-9"],"_links":{"self":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts\/1038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1038"}],"version-history":[{"count":4,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts\/1038\/revisions"}],"predecessor-version":[{"id":1043,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts\/1038\/revisions\/1043"}],"wp:attachment":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}