python - Is there a tool to automatically calculate Big-O complexity for a function -


this question has answer here:

while studying algorithms , data structures manually evaluate bigo complexity script. there way, let button in python ide or package, calculate bigo given function or program?

update:

let's have

def print_first_element(a):     print a[0] 

why can't write analyzer me ok access array (list) index , o(1), or

def print_all_element_of_list(a):     in a:         print 

ok have full scan complexity o(n)

and forth

unfortunately, infeasible. see halting problem.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -