Journal of Engineering and Applied Sciences

Year: 2008
Volume: 3
Issue: 4
Page No. 368 - 372

An Exploratory Study of Software Complexity Measures of Merge Sort Algorithm

Authors : S.O. Olabiyisi and O.A. Bello

Abstract: Programmers find it difficult to gauge the code complexity of an application, which makes the concept difficult to understand. The McCabe metric and Halstead`s software science are two common code complexity measures. The McCabe metric determines code complexity based on the number of control paths created by the code. While this information supplies only a portion of the complex picture, it provides an easy-to-compute, high-level measure of a program`s complexity. The McCabe metric is often used for testing. Halstead bases his approach on the mathematical relationships among the number of variables, the complexity of the code and the type of programming language statements. In this study, the 2 software complexity measures are applied to Merge sort algorithm. The intention is to study what kind of new information about the algorithm the complexity measures are able to give and to study which software complexity measures are the most useful ones in algorithm comparison. The results explicitly show that Merge sort has the least Halstead’s Volume, Program Difficulty and Program Effort when programmed in Assembly language and has the least cyclomatic number when programmed in Visual BASIC.

How to cite this article:

S.O. Olabiyisi and O.A. Bello , 2008. An Exploratory Study of Software Complexity Measures of Merge Sort Algorithm. Journal of Engineering and Applied Sciences, 3: 368-372.

Design and power by Medwell Web Development Team. © Medwell Publishing 2024 All Rights Reserved