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!

Recommended Answers

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

Jump to Post

All 3 Replies

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

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.