Publication | Open Access
A nesting level complexity measure
62
Citations
8
References
1982
Year
Software MaintenanceComputational Complexity TheoryEngineeringSoftware EngineeringComputational ComplexitySoftware AnalysisCase StatementsComplexityNesting Level ComplexitySoftware ScienceDescriptional ComplexityDiscrete MathematicsCombinatorial OptimizationAbstract ComplexityAbstract InterpretationComputer ScienceSoftware DesignProgram AnalysisAutomated ReasoningSoftware MetricFormal MethodsTime ComplexityProgramming Methodology
Two well-publicized program complexity measures are software science and cyclomatic complexity. Three areas where these measures do not always follow our intuitive notions of complexity are: structured vs unstructured programs, nested vs sequential predicates, and the use of case statements. This paper defines a nesting level complexity measure that punishes unstructuredness, and the nesting of predicates, and rewards the use of case statements. Examples are given where the nesting level complexity agrees with intuitive rankings of program structures where software science, cyclomatic complexity, and their suggested refinements do not.
| Year | Citations | |
|---|---|---|
Page 1
Page 1