untime, new input size. You'll fill in the expected new runtime. Refer to Runtime Rules of Thumb to gure out the answers. OriginaI

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter6: Using Arrays
Section: Chapter Questions
Problem 2CP
icon
Related questions
Question
1. In each row, four items are given: function to which runtime is proportional, original input size, original
runtime, new input size. You'll fill in the expected new runtime. Refer to Runtime Rules of Thumb to
figure out the answers.
Original
Runtime
Original
Runtime
New Input Size
New Runtime in ms
proportional to input size
in ms
logn
1,000
4
1,000,000
nlogn
20
4
400
n
1,000,000
2,000,000
4
n
3,000,000
9,000,000
4
3,000,000
4
6,000,000
1000
4
4000
20
4
180
12,000
4
36,000
1
1,000
4.
1,000,000
2
100
4
101
n!
100
4.
101
n"
100
101
4,
Transcribed Image Text:1. In each row, four items are given: function to which runtime is proportional, original input size, original runtime, new input size. You'll fill in the expected new runtime. Refer to Runtime Rules of Thumb to figure out the answers. Original Runtime Original Runtime New Input Size New Runtime in ms proportional to input size in ms logn 1,000 4 1,000,000 nlogn 20 4 400 n 1,000,000 2,000,000 4 n 3,000,000 9,000,000 4 3,000,000 4 6,000,000 1000 4 4000 20 4 180 12,000 4 36,000 1 1,000 4. 1,000,000 2 100 4 101 n! 100 4. 101 n" 100 101 4,
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,