How to find complexity of a expression


Problem:

Question- What is the complexity of the given code segments:

[the number of times the statement x = x + 1 is executed.]

i = n

While (i >= 1 ){

x = x + 1

i = i/2

}

 

Please show the complexity of the described code.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: How to find complexity of a expression
Reference No:- TGS0892857

Expected delivery within 24 Hours