ploting run time of a algorithm
古いコメントを表示
I have written an algorithm. Now i have to show a graph of runtime of that algorithm.How can i plot that graph....Please help
回答 (1 件)
Walter Roberson
2014 年 4 月 26 日
0 投票
Algorithms do not have running times. Algorithms are abstractions, not implementations.
Programs have running times, given sufficient information about the hardware and software configuration and what else is running on the computer.
You can calculate the "big O" computational complexity and you can plot that, but that will not be the same as the running time of an implementation.
5 件のコメント
Sagar Damle
2014 年 4 月 26 日
Is there any use of 'tic' and 'toc'?
Marben
2014 年 4 月 26 日
Marben
2014 年 4 月 28 日
Jan
2014 年 4 月 28 日
@Marben: This lean message does not allow us to guess, what you have tried and which problems you see. If you want some help, post your code, explain what it does and how you want to change its behavior.
Of course it is working, when it is written correctly.
カテゴリ
ヘルプ センター および File Exchange で Call C++ from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!