Answered step by step
Verified Expert Solution
Link Copied!

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 1.
The goal of the activity is to enable students to discuss the concept of growth rate, and growth order/asymptotic order, recall the definition of big O notation and evaluate the asymptotic order of seven growth functions.
Task 1 Which statements are correct about these following seven runtime functions :
T(N)=999
T(N)= log2N
T(N)= N
T(N)= N +999
T(N)=5* N
T(N)= N * log2N
T(N)= N2
Hints:
1) The order of a function describes how the function scales as the input(s) increases to infinite. Seven typical functions are in an increasing order:
asymptotic_order.jpg.png
2) 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, (T1(2N)/T1(N))/(2N/N)=(T2(2N)/T2(N))/(2N/N) when T1=5N and T2= N
or
(T3(2N)-T3(N))/(2N/N)=(T2(2N)-T2(N))/(2N/N) when T3= N+999 and T2= N
or plot/tabulate it
O(1) O(logN) O(N) O(Nlog N) O( N2)
N Alg. A T(N)=999 Alg. B T(N)=log2N Alg. C T(N)=N Alg. D T(N)=N+999 Alg. E T(N)=5*N Alg. F T(N)=Nlog2N Alg. G T(N)=N2
1000099913.287712100001099950000132877.12381E+08
2000099914.2877122000020999100000285754.24764E+08
4000099915.2877124000040999200000611508.49521.6E+09
8000099916.28771280000809994000001303016.996.4E+09
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 T(N)= N, T(N)= N +999, and T(N)=5* N grow at the same scale.
With the input size N increasing, the growth rate of T(N)=999 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:
T(N)=999= O(1)(The growth function is constant)
T(N)= log2N = O(logN)(The growth function is logarithmic)
T(N)= N = O(N)(The growth function is linear)
T(N)= N+999= O(N)
T(N)=5*N= O(N)
T(N)=5*N +999= O(N)
All these N+999, N,5*N,5*N +999 belong to the same group of growth functions which asymptotic order is linear, according to input size N.
T(N)= N log2N = O(N logN)(The growth function is log-linear)
T(N)= N2= O(N2)(The growth function is quadratic)
The asymptotic order of the growth functions: the group functions represented by O(N2) have higher growth order than O(N logN), O(N logN) is larger than O(N), O(N) is larger than O(logN), and O(logN) is larger than O(1).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 19th International Conference Dexa 2008 Turin Italy September 2008 Proceedings Lncs 5181

Authors: Sourav S. Bhowmick ,Josef Kung ,Roland Wagner

2008th Edition

3540856536, 978-3540856535

More Books

Students also viewed these Databases questions

Question

defne the leading theory of senescence.

Answered: 1 week ago

Question

Describe new developments in the design of pay structures. page 475

Answered: 1 week ago