필터 지우기
필터 지우기

How to calculate the computational complexity

조회 수: 62 (최근 30일)
Muhammad Ali Qadar
Muhammad Ali Qadar 2013년 11월 30일
댓글: Ge Shi 2020년 8월 14일
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
VELAMMAL SHIVSHANKAR
VELAMMAL SHIVSHANKAR 2020년 2월 18일
편집: VELAMMAL SHIVSHANKAR 2020년 2월 18일
Hello
https://in.mathworks.com/matlabcentral/fileexchange/43707-computational-complexity
Refer This Link. It may help you!!

댓글을 달려면 로그인하십시오.

채택된 답변

Muhammad Ali Qadar
Muhammad Ali Qadar 2014년 4월 8일
tic
....//code
toc
  댓글 수: 3
Dan Po
Dan Po 2016년 10월 23일
lol
Ge Shi
Ge Shi 2020년 8월 14일
It can only help you get the time consumption for running the code.

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Walter Roberson
Walter Roberson 2013년 12월 3일
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
Muhammad Ali Qadar
Muhammad Ali Qadar 2013년 12월 4일
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 2013년 12월 4일
See also any of the foundational books by Aho and Ullman, including http://infolab.stanford.edu/~ullman/focs/ch03.pdf

댓글을 달려면 로그인하십시오.


Sean
Sean 2014년 3월 25일
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
Walter Roberson
Walter Roberson 2014년 3월 25일
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.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by