摘要:Complexity metric is used to estimate various parameters such as software development cost, amount of time needed for implementation and effort required in understanding the software. In this paper, different software complexity models are critically studied and compared. For application, heap sort algorithm is considered. The programs are written in three object oriented languages: C++, C# and Java. Software complexity for each program is found using the four popular Line of Code (LOC), McCabe Cyclomatic Complexity Metric, Halstead Metric and Cognitive model (Improved Cognitive Complexity Metric (ICCM)). The results are compared, according to Halstead Program Difficulty and ICCM, program in C++ has complexity higher than that of program in Java and program in Java has complexity higher than that of program in C#.
关键词:Software Complexity Metric; Line of Code; Cyclomatic Number; Halstead metric; Cognitive Complexity; Heap sort algorithm