00:01
Hello students, let's analyze the running time of the given function that is for function of this the first one is for the function of phi of n.
00:11
So when the outer loops over here you can see the while loop here in this it that is the i it becomes an a greater than or equal to the n to the power of 2 into the log 3 of n whereas the inner loop as long as the j is greater than the n in each iteration of the inner loop of j is divided by 7.
00:35
So it increments the i it increments the i in such a way in a such in each iteration for the outer loop.
00:43
So as of this it runs for the this first from the line number 3 to this here it runs for the runs for the 2 root of n it runs for the root of n iteration becomes the increment of i that is for the ceiling of flooring of the root of n in each iteration.
01:06
Whereas from this from in a while loop so for in a while loop the inner loop it has a constant time complexity.
01:14
So around the time complexity of the this function is determined by the its outer loop and like because of the inner loop number of the iteration depends on the n and j so it is an asymptotic notation.
01:31
So it is an asymptotic notation.
01:39
So similarly as this is for the function so where therefore we can say the time complexity for this it will be as the theta of it will be the theta of root of n into n to the power of 2 into log 3 log to the base of 3 n by 7...