Search results for query: *

  1. P

    Timing an Algorithm

    Thanks so much. The stopwatch class works with the elapsedticks property. One question though. Any Idea why it would take almost four times as many ticks to execute the function that I wrote, the first time it is executed, compared to the second, third, fourth etc....? Here is my code...
  2. P

    Timing an Algorithm

    So heres the Deal. I was just messing around and trying to implement a simple recursive function that calculates N! (n factorial). I was also going to write one that does it iteratively and I was going to time the two to figure out which was faster (No BIG O notation here). I have the function...
Back
Top