Blogs tagged 'Computer Science'

  • Real Loop Running Times

    by Paul Hornsey
    Paul Hornsey

    We all see CPU clock speeds advertised such as 3.4GHz and get amazed at how much a processor can do each second.  It's only when trying to solve problems with values such as 1014 that you realise that looping that many times is not going to finish while you have a cup of tea.  This blog puts some real run times to a simple loop.

  • Two's Complement Signed Integers

    by Paul Hornsey
    Paul Hornsey

    Have you ever wondered why integer ranges have a larger negative than positive range? Why the extra one on the negative range and not the positive? The answer is that most modern processors like integers to be in a format known as 2’s Complement Signed Integers. So what is this and why are they used?