Programmatically obtaining Big-O efficiency of code

后端 未结 18 1339

I wonder whether there is any automatic way of determining (at least roughly) the Big-O time complexity of a given function?

If I graphed an O(n) function vs. an O(n

18条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-27 16:28

    I guess this isn't possible in a fully automatic way since the type and structure of the input differs a lot between functions.

提交回复
热议问题