Measuring the Programming Complexity of C and C++ using Halstead Metrics

Computer algorithm is the core of computer science and important prerequisite of computer science professionals. However, its hard and abstract nature makes it difficult to understand. Pedagogical issues in learning of algorithms are generally resolved through elaborating the algorithms with their i...

Full description

Bibliographic Details
Main Author: Muhammad Shumail naveed
Format: Article
Language:English
Published: University of Sindh 2022-04-01
Series:University of Sindh Journal of Information and Communication Technology
Subjects:
Online Access:https://sujo.usindh.edu.pk/index.php/USJICT/article/view/4073
Description
Summary:Computer algorithm is the core of computer science and important prerequisite of computer science professionals. However, its hard and abstract nature makes it difficult to understand. Pedagogical issues in learning of algorithms are generally resolved through elaborating the algorithms with their implementation in some programming language. As there are many programming languages, the selection of appropriate programming language for effective implementation of algorithms remains a challenging issue. In this article, common algorithms of data structures are measured by analyzing their implementation in C and C++ through Halstead complexity metrics. The statistical tests identified that as compare to C++ the less effort, time and bugs are involved in C for the implementation of algorithms, whereas C++ involves less difficulty during the implementation of algorithms. The work stated in this article provide a novel aspect to relate and evaluate other programming languages.
ISSN:2521-5582
2523-1235