how to find order of complexity

조회 수: 1 (최근 30일)
nkumar
nkumar 2013년 11월 4일
댓글: Walter Roberson 2013년 11월 4일
I have 2 algorithms for PSO and GA,now i want to find order of complexity ,i searched in internet but could not find any formula for this,kindly can any one tell how to proceed plz

채택된 답변

Walter Roberson
Walter Roberson 2013년 11월 4일
There is no formula for it. You sometimes need to use mathematical theory to prove upper and lower bounds on the order of an operation, and you may need to do some tricky summations to provide an average order estimate.
In very simple algorithms you can work it out easily, but in algorithms as sophisticated as PSO and GA, you are going to have difficulty. In fact, you will find that for GA at least, the complexity order depends upon the function being minimized (I do not know PSO well enough to know what the stopping criteria are for it.)
  댓글 수: 4
nkumar
nkumar 2013년 11월 4일
extremely sorry walter ,its not ant ,its any ,just need to know how the output will be for any one algorithm which u know very well
Walter Roberson
Walter Roberson 2013년 11월 4일
There is no MATLAB routine that can undertake an order analysis; there is no possible routine that can work on all algorithms.
The matter is therefore not a MATLAB question, and should be investigated through other resources.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Particle Swarm에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by