0

I am a computer science student and i have to do a miniproject using only c.my project title is "to estimate time complexity of a given algorithm/program code.please tell me how can i initiate that i tried counter,line count it couldn't help,i have to submit my project at the first week of december.I seriously needed your help.thank you all in advance!

Edited by Pooja_2

2
Contributors
3
Replies
9
Views
4 Years
Discussion Span
Last Post by Pooja_2
0

you can solve it easly run code with different input n=10 n=20 n=30 n= 50 n=60
and calculate the time requirded to output the result.
if not n1=n2=n3=n4 runtime is 1
and so on

0

thanks akrab for considering it!but would you please elaborate it.i didn't get you sorry!

0

thanks akrab for considering it!but would you please elaborate it.i didn't get you sorry!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.