Results 1 to 4 of 4

Math Help - Random probs that are math related

  1. #1
    Junior Member
    Joined
    Aug 2007
    Posts
    45

    Random probs that are math related

    Hi guys, I have 2 computer programming problems but it is math related so please help out if you can thanks!.

    1.Sometimes software optimization can dramatically improve the performance of a computer system. Assume that a CPU can perform a multiplication operation in 10ns, and a subtraction operation in 1ns. How long will it take for the CPU to calculate the result of d = a x b - a x c?
    Could you optimize the equation so that it will take less time?

    I know the first part will take 21ns, but is there a way to manipulate the equation to make it perform the equation less than 21ns? Ive tried but nothing comes up.



    2. Moore's law, which is attributed to Intel co founder Gordon Moore, states that computing power doubles every 18 months for the same price. An unrelated observation is that floating point instructions are executed 100 times faster in hardware than via emulation. Using Moor's law as a guide, how long will it take for computing power to improve to the point that floating point instructions are emulated as quickly as their hardware counterparts?

    Is what I did right?
    2^x=100
    x * ln(2) = ln(100)
    x = ln(100) / ln(2)

    from that x = 6.6438, so it has to double 6.6438 times, which if multiplied by 1.5 years(18 months) is 9.96578 years or 119.589411 months.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Super Member
    earboth's Avatar
    Joined
    Jan 2006
    From
    Germany
    Posts
    5,830
    Thanks
    123
    Quote Originally Posted by ff4930 View Post
    Hi guys, I have 2 computer programming problems but it is math related so please help out if you can thanks!.

    1.Sometimes software optimization can dramatically improve the performance of a computer system. Assume that a CPU can perform a multiplication operation in 10ns, and a subtraction operation in 1ns. How long will it take for the CPU to calculate the result of d = a x b - a x c?
    Could you optimize the equation so that it will take less time?

    I know the first part will take 21ns, but is there a way to manipulate the equation to make it perform the equation less than 21ns? Ive tried but nothing comes up.

    ...
    Hello,

    factor this sum:

    d = a \times b - a \times c = \underbrace{a \times \underbrace{(b-c)}_{1~s} }_{10~s}. In total you need 11 seconds.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Junior Member
    Joined
    Aug 2007
    Posts
    45
    Thanks!!,
    Does anyone know the equation for the 2nd problem is correct?
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by ff4930 View Post


    2. Moore's law, which is attributed to Intel co founder Gordon Moore, states that computing power doubles every 18 months for the same price. An unrelated observation is that floating point instructions are executed 100 times faster in hardware than via emulation. Using Moor's law as a guide, how long will it take for computing power to improve to the point that floating point instructions are emulated as quickly as their hardware counterparts?
    Since the speed of the emulation is proportional to the speed of hardware
    without a change in hardware architecture emulation will never be as fast
    as hardware.

    The only way out is if the emulation can be parallelised by a factor of 100
    and the hardware floating point not improved in any way.

    RonL
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 0
    Last Post: April 12th 2011, 01:57 PM
  2. Need Help on Neuro-related Math!
    Posted in the Math Topics Forum
    Replies: 2
    Last Post: April 10th 2011, 06:54 PM
  3. Another problem related to random walk...
    Posted in the Advanced Statistics Forum
    Replies: 0
    Last Post: September 19th 2009, 03:24 PM
  4. random variable related
    Posted in the Advanced Statistics Forum
    Replies: 4
    Last Post: September 18th 2008, 01:45 PM
  5. Probability Related Questions (Math/Biology)
    Posted in the Statistics Forum
    Replies: 2
    Last Post: October 22nd 2007, 07:34 PM

Search Tags


/mathhelpforum @mathhelpforum