Professional Documents
Culture Documents
Theoretical Analysis of Whale Optimization Algorithm
Theoretical Analysis of Whale Optimization Algorithm
OF
WHALE OPTIMIZATION ALGORITHM
PRESENTED BY
GROUP K
COURSE: DESIGN AND ANALYSIS OF
ALGORITHM
• SHEHU ZARA'U ABDU 13/33440/U/1
• UMAR HUDU MUHAMMAD 13/33444/U/6
• FRANCIS M YUSUF 12/28274/U/1
• A. Y. ABDULAZEEZ 13/34814/U/6
• ABDULLAHI KAFAYAH I. 14/36121D/1
• NASIRU ABDULKADIR MUHAMMAD 14/36295D/6
Whale Optimization Algorithm (WOA) (History and main idea)
Time Complexity
Best Case
Worst Case
References
Whale Optimization Algorithm
(WOA) (History and main idea)
The whale optimization algorithm (WOA)
method.
Assignment
Comparison
Arithmetic
Return from a method
1 return
Time Complexity, Best Case and Worst Case of WOA
• Time Complexity
Initialize the whales population Xi (i = 1, 2, ..., n)
Calculate the fitness of each search agent Comparison = 6n
X*=the best search agent
while (t < maximum number of iterations)
Assignment = 2n + 1
for each search agent Addition =n
Update a, A, C, l, and p
if1 (p<0.5) Return =1
if2 (|A| < 1)
Update the position of the current search agent by the Eq.(2) Total time = c1.6n + c2.(2n + 1) + c3.n + c4.1
else if2 (|A|≥ 1)
Select a random search agent(Xrand)
Where c1,c2,c3 & c4 are the constant time
Update the position of the current search agent by the Eq.(8) required for the operator comparison, assignment
end if2
else if1 (p≥0.5) addition and return respectively.
Update the position of the current search by the Eq.(5)
end if1
end for
Check if any search agent goes beyond the search space and amend it
Calculate the fitness of each search agent
Update X* if there is a better solution
t=t+1
end while
return X*
Answer: O(n)
Why? Because when g(n) = n and
for some c (say c=10000), n0
We satisfy that f(n) ≤ c.g(n), for n ≥ n0. So, O(n)
References
• Levitin, A. (2007). Introduction to the design and analysis of algorithm, 3rd Edition.
Pearson.
• S. Mirjalili, A. Lewis, The Whale Optimization Algorithm. Advances in Engineering
Software, 95, (2016) pp.51–67.