complexity of code

前端 未结 6 1205
借酒劲吻你
借酒劲吻你 2021-01-14 07:33

what is the complexity of a program having only one loop, is it log n? can someone give me some ideas about estimating complexity of codes?

6条回答
  •  无人共我
    2021-01-14 07:53

    You can easily predict the computation time and complexity of your code with some tools such as "trend-prof"(https://pdfs.semanticscholar.org/8616/7f320e230641299754e0fbd860c44f5895f0.pdf)

    For the same purpose on R codes, the GuessCompx library available in Github.

提交回复
热议问题