
{"id":15428,"date":"2014-02-10T18:16:26","date_gmt":"2014-02-10T18:16:26","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=15428"},"modified":"2014-02-10T18:16:26","modified_gmt":"2014-02-10T18:16:26","slug":"count-the-primitive-operations-in-your-algorithm-to-find-the-mean-what-is-the-order-of-growth-of-your-mean-algorithm","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2014\/02\/10\/count-the-primitive-operations-in-your-algorithm-to-find-the-mean-what-is-the-order-of-growth-of-your-mean-algorithm\/","title":{"rendered":"Problem 2.3 from SCHAUM\u2019S OUTLINE OF Principles of COMPUTER SCIENCE"},"content":{"rendered":"<pre style=\"width:100%;\">\nCount the primitive operations in your algorithm to find the mean.\nWhat is the order of growth of your mean algorithm?\n\n\n\nsetup 4\nloop 5 * length (length = n, the count of numbers to be averaged)\nreturn 2\n\n\nOrder of growth :  \u0398( n )\n<\/pre>\n<p>related source :  SCHAUM\u2019S OUTLINE OF Principles of COMPUTER SCIENCE<br \/>\nrelated resource : <a style=\"font-family:'Bree Serif', serif;\" href=\"http:\/\/www.cs.nott.ac.uk\/~nza\/G52ADS\/lecture2.pdf\">http:\/\/www.cs.nott.ac.uk\/~nza\/G52ADS\/lecture2.pdf<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Count the primitive operations in your algorithm to find the mean. What is the order of growth of your mean algorithm? setup 4 loop 5 * length (length = n, the count of numbers to be averaged) return 2 Order of growth : \u0398( n ) related source : SCHAUM\u2019S OUTLINE OF Principles of COMPUTER &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2014\/02\/10\/count-the-primitive-operations-in-your-algorithm-to-find-the-mean-what-is-the-order-of-growth-of-your-mean-algorithm\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Problem 2.3 from SCHAUM\u2019S OUTLINE OF Principles of COMPUTER SCIENCE&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[1292],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15428"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=15428"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15428\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=15428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=15428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=15428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}