Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Activity 1 . The goal of the activity is to enable students to discuss the concept of growth rate, and growth order / asymptotic order,
Activity
The goal of the activity is to enable students to discuss the concept of growth rate, and growth orderasymptotic order, recall the definition of big O notation and evaluate the asymptotic order of seven growth functions.
Task Which statements are correct about these following seven runtime functions :
TN
TN logN
TN N
TN N
TN N
TN N logN
TN N
Hints:
The order of a function describes how the function scales as the inputs increases to infinite. Seven typical functions are in an increasing order:
asymptoticorder.jpgpng
If the growth rates of two functions are the same, these two functions belong to the same time complexity group, denoted as in the big O notation:
For example, TNTNNNTNTNNN when TN and T N
or
TNTNNNTNTNNN when T N and T N
or plottabulate it
O OlogN ON ONlog N O N
N Alg. A TN Alg. B TNlogN Alg. C TNN Alg. D TNN Alg. E TNN Alg. F TNNlogN Alg. G TNN
E
E
E
E
Group of answer choices
With the input size N increasing, all these runtime functions grows.
With the input size N increasing, some of these runtime functions grow at the same rate.
With the input size N increasing, some of these runtime functions grow at the different rates.
With the input size N increasing, runtime functions TN N TN N and TN N grow at the same scale.
With the input size N increasing, the growth rate of TN is constant.
Based on the scalability of growth rates of all these functions, we could use big O notation to categorize or classify these functions:
TN OThe growth function is constant
TN logN OlogNThe growth function is logarithmic
TN N ONThe growth function is linear
TN N ON
TNN ON
TNN ON
All these N NNN belong to the same group of growth functions which asymptotic order is linear, according to input size N
TN N logN ON logNThe growth function is loglinear
TN N ONThe growth function is quadratic
The asymptotic order of the growth functions: the group functions represented by ON have higher growth order than ON logN ON logN is larger than ON ON is larger than OlogN and OlogN is larger than O
Step 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