Why can a computer take minutes to run a couple lines of code, yet can run complex things like games so quickly?

745 views

Why can a computer take minutes to run a couple lines of code, yet can run complex things like games so quickly?

In: Technology

10 Answers

Anonymous 0 Comments

If a computer is taking minutes to run a couple of lines of code, than either of those lines of code are incredibly damn complex in terms of what they actually require the computer to do, or the computer is running a bunch of other stuff in the background at the same time that is slowing it down.

Not all lines of code are going to be equally complex just like not all word problems in math are going to be equally complex. It takes about as much characters to ask someone to find out what seven taken away away from three and twenty as it does to ask for the square root of three billion and two hundred and sixty-five. A computer or a person would have a much harder time with the latter than the former.

You are viewing 1 out of 10 answers, click here to view all answers.