Question: 1 . ( 1 0 points ) What is the run time of the following questions? Express your answer using big - O , little

1.
(10 points) What is the run time of the following questions? Express your answer using big-O, little-o,
\Theta , and .[ ch -3]
(a)
G a u s s e s
S umm a ti o n
S e ri e s
1( n )
s =0
FOR i =1 t o n
FOR j =1 t o n
s = s + i
RETURN s
(b)
G a u s s e s
S umm a ti o n
S e ri e s
2( n )
s =0
FOR i =1 t o n
s = s + i
RETURN s

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!