Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I NEED SOLUTION PLEASE WITH EXPLANINIG Example 1: (Algorithms Analysis) For an O(24) algorithm, a friend tells you that it took 17 seconds to run
I NEED SOLUTION PLEASE WITH EXPLANINIG
Example 1: (Algorithms Analysis) For an O(24) algorithm, a friend tells you that it took 17 seconds to run on her data set on a (2") algorithm. You run the same program, on the same machine, and your data set with n= 7 takes 68 seconds. What size was her data set? Solution: Let running time of the algorithm on an input of size nbe T(n). Then T(n)=C(2") for some constant C For data set with n=7, it gives T(7)=C (27 68 = C (128) C = 68/128 = 17/32 Now, to find the size of data set for our friend, we again use the same formulaStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started