How to calculate the computational complexity

120 visualizaciones (últimos 30 días)
Muhammad Ali Qadar
Muhammad Ali Qadar el 30 de Nov. de 2013
Comentada: Ge Shi el 14 de Ag. de 2020
hi,
I am segmenting images using region growing, Otsu methods, Fuzzy c mean methods, I wondering that how can i calculate the computational complexity of these methods? and how I can categorize in terms of performance using computational complexity? I have seen many links talking about complexity like O(n), O(n^2) Whats the difference and How I can know the complexity for my above listed methods.
Please Suggest !
  1 comentario
VELAMMAL SHIVSHANKAR
VELAMMAL SHIVSHANKAR el 18 de Feb. de 2020
Editada: VELAMMAL SHIVSHANKAR el 18 de Feb. de 2020
Hello
https://in.mathworks.com/matlabcentral/fileexchange/43707-computational-complexity
Refer This Link. It may help you!!

Iniciar sesión para comentar.

Respuesta aceptada

Muhammad Ali Qadar
Muhammad Ali Qadar el 8 de Abr. de 2014
tic
....//code
toc
  3 comentarios
Dan Po
Dan Po el 23 de Oct. de 2016
lol
Ge Shi
Ge Shi el 14 de Ag. de 2020
It can only help you get the time consumption for running the code.

Iniciar sesión para comentar.

Más respuestas (2)

Walter Roberson
Walter Roberson el 3 de Dic. de 2013
There is no mechanical way to calculate computational complexity.
You should refer to papers for the complexity analysis. See for example http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.219.4060&rep=rep1&type=pdf
  2 comentarios
Muhammad Ali Qadar
Muhammad Ali Qadar el 4 de Dic. de 2013
This paper also dont give any idea how to find the complexity its just telling that this is complexity of approach he is using. if Its a topic of interest why there is no ... consideration of it on internet .. I am searching but can not find any concrete material or example.
Walter Roberson
Walter Roberson el 4 de Dic. de 2013
See also any of the foundational books by Aho and Ullman, including http://infolab.stanford.edu/~ullman/focs/ch03.pdf

Iniciar sesión para comentar.


Sean
Sean el 25 de Mzo. de 2014
I too am interested in calculating the computational complexity of a sequence of code executed in Matlab as I wish to do protyping in Matlab and then transfer it to embedded.
Ideally, the number of floating point operations or mathematical operations would be helpful.
Does Matlab have a feature such as this?
S
  1 comentario
Walter Roberson
Walter Roberson el 25 de Mzo. de 2014
No, it is not possible to calculate in general.
There are some quite simple code sequences that no-one has been able to find the computational complexity of despite many many people trying. See for example the Colatz Conjecture.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by