ploting run time of a algorithm
Mostrar comentarios más antiguos
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
Respuestas (1)
Walter Roberson
el 26 de Abr. de 2014
0 votos
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 comentarios
Sagar Damle
el 26 de Abr. de 2014
Is there any use of 'tic' and 'toc'?
Marben
el 26 de Abr. de 2014
Marben
el 28 de Abr. de 2014
Jan
el 28 de Abr. de 2014
@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.
Categorías
Más información sobre Call C++ from MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!