Unformatted text preview: You see, I didn’t use the computer clock. I used my own office clock and the ol’ 1-Mississippi, 2-Mississippi method. The results weren’t precise, but they did tend to support that the program runs in Θ(n) time. 50 time (seconds) inputs (number of integers) Program 2 Run Times Time 9 19 30 41 49 10000 20000 30000 40000 50000 As the chart above indicates, the time to run Program 2 was roughly proportional to the number of inputs. It was almost exactly a linear relationship between inputs and run time....
View Full Document
- Spring '09
- Data Structures, Natural number, George Corser