Elements to the CASA complexity score:
(1) number of diagnostic boxes in the entire algorithm
(2) number of non-diagnostic (state, action, other) boxes in the entire algorithm
(3) qualities of each loop
(3a) number of diagnostic boxes in the loop
(3b) number of non-diagnostic boxes in the loop
CASA complexity score =
= (2 * (number of diagnostic boxes)) + (number of non-diagnostic boxes) + SUM(points for each loop)
points for each loop =
= (2 * (number of diagnostic boxes in the loop)) + (number of non-diagnostic boxes)
where:
• It appears that the diagnostic box that "starts" a loop is counted twice since it also "ends" it.
The higher the CASA complexity score, the greater its complexity.