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
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
Sagar Damle 2014년 4월 26일
Is there any use of 'tic' and 'toc'?
Marben
Marben 2014년 4월 26일
tic and toc gives the running time but i want to plot that running time...
Jan
Jan 2014년 4월 27일
편집: Jan 2014년 4월 27일
@Marben: So why don't you use the output of toc for plotting? Did you try it? All you need is the plot command.
Marben
Marben 2014년 4월 28일
Its not working sir....
Jan
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에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2014년 4월 26일

댓글:

Jan
2014년 4월 28일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by