{"id":154,"date":"2009-09-15T09:31:00","date_gmt":"2009-09-15T17:31:00","guid":{"rendered":"http:\/\/www.robinstewart.com\/blog\/?p=154"},"modified":"2009-09-15T09:31:00","modified_gmt":"2009-09-15T17:31:00","slug":"computers-calculate-really-fast","status":"publish","type":"post","link":"https:\/\/www.robinstewart.com\/blog\/2009\/09\/computers-calculate-really-fast\/","title":{"rendered":"Computers calculate really fast"},"content":{"rendered":"<p>When I teach computer science to fifth graders, the main concept I want them to remember is that computers work by doing calculations incredibly, insanely, mind-bogglingly fast.  To get across the idea of just how fast they work, I tell a story which I thought I&#8217;d share here, too.<\/p>\n<p>Let&#8217;s start by doing a few arithmetic problems.<\/p>\n<p>3 + 7 = ?<\/p>\n<p>5 + 12 = ?<\/p>\n<p>420394 + 59382 = ?<\/p>\n<p>How long did it take to solve those?  The fastest you could conceivably calculate them (especially with big numbers) is about 1 per second.  Now take a modern computer, such as the one sitting in front of you.  How many of these can it calculate in just one second?<\/p>\n<p>The answer is (roughly) a <em>billion<\/em>.  One gigaherz means &#8220;a billion times per second.&#8221; In other words, a standard modern computer can answer a billion arithmetic problems, <em>every second<\/em>.<\/p>\n<p>But just how big is a billion?  That number is so large that it&#8217;s hard to comprehend.  My favorite way to understand it involves paper.  Suppose you had a billion sheets of paper, all in a stack (the normal way they&#8217;re stacked when you buy paper or put it in a printer).  How tall would that stack be, if it had one billion (incredibly thin) pieces of paper?<\/p>\n<p>Of course it depends a little on the thickness of the paper, but the answer is about 100 kilometers, or 60 miles high!  Mt. Everest is less than 6 miles high, so let&#8217;s turn that stack of paper on its side and lay it along a freeway.  To drive past every piece of paper in that stack at 60 mph would still take you a full hour!  Reams and reams, paper after paper after paper.<\/p>\n<p>So it would take you an <em>hour<\/em> just to drive past all those sheets of paper at freeway speeds, yet a computer does that many sheets worth of calculations <em>every second<\/em>!  After many years of programming, I still find this astonishing.  That is an incredible amount of power at your fingertips.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I teach computer science to fifth graders, the main concept I want them to remember is that computers work by doing calculations incredibly, insanely, mind-bogglingly fast. To get across the idea of just how fast they work, I tell a story which I thought I&#8217;d share here, too. Let&#8217;s start by doing a few &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.robinstewart.com\/blog\/2009\/09\/computers-calculate-really-fast\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Computers calculate really fast&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.robinstewart.com\/blog\/wp-json\/wp\/v2\/posts\/154"}],"collection":[{"href":"https:\/\/www.robinstewart.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.robinstewart.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.robinstewart.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.robinstewart.com\/blog\/wp-json\/wp\/v2\/comments?post=154"}],"version-history":[{"count":0,"href":"https:\/\/www.robinstewart.com\/blog\/wp-json\/wp\/v2\/posts\/154\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.robinstewart.com\/blog\/wp-json\/wp\/v2\/media?parent=154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.robinstewart.com\/blog\/wp-json\/wp\/v2\/categories?post=154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.robinstewart.com\/blog\/wp-json\/wp\/v2\/tags?post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}