Abstract
The popular single-factor complexity measure cannot comprehensively reflect program complexity and the existing hybrid complexity measure cannot express the interactive behaviors of programs. To treat these problems, in this paper, we propose a complexity measure based on program slicing (CMBPS). CMPBS not only can evaluate factors which affect program complexity such as the length of the program, control flow, data flow and data types of output variables, but also can give expression of the interactive relation between programs. And we also prove that CMBPS satisfies all of Weyuker properties. Compared with the popular complexity measures, CMBPS is a well-structured complexity measure.
Similar content being viewed by others
References
Oman P, Hagemeister J. Construction and testing of polynomials predicting software maintainability [J]. Journal of System and Software, 1994, 24(3): 251–266.
Kanellopoulos Y, Heitlager I, Tjortjis C, et al. Interpretation of source codes clusters in terms of the ISO/IEC-9126 maintainability characteristics [C]// Proceedings of 12th European Conference on Software Maintenance and Reengineering. Athens: IEEE Press, 2008: 63–72.
Sommerville, I. Software Engineering (6th ed) [M]. New York: Addison-Wesley Publisher, 2001.
Harrison W, Magel K, Kluczny R, et al. Applying software complexity metrics to program maintenance [J]. IEEE Computer, 1982, 15(9): 65–79.
Halstead M. Elements of Software Science [M]. New York: Elsevier Publisher, 1977.
McCabe T J. A complexity measure [J]. IEEE Transactions on Software Engineering, 1976, SE-2(4): 308–320.
Oviedo E I. Control flow, data flow and program complexity [C]// Proceedings of COMPSAC 80. Chicago: IEEE Press, 1980: 146–152.
Basili V R, Turner A J. Iterative enhancement: A practical technique for software development [J]. IEEE Transactions on Software Engineering, 1975, SE-1(4): 390–396.
Henry S, Kafura D. Software structure metrics based on information flow [J]. IEEE Transactions on Software Engineering, 1981, SE-7(5): 510–518.
Misra S. A complexity measure based on cognitive weights [J]. International Journal of Theoretical and Applied Computer Sciences, 2006, 1(1): 1–7.
Hanser W J. Measurement of program complexity by the pair (cyclomatic number, operator count) [J]. ACM SIGPLAN Notices, 1978, 13(3): 29–33.
Weyuker E. Evaluating software complexity measure [J]. IEEE Transaction on Software Complexity Measure, 1988, 14(9): 1357–1365.
Kushwaha D S, Misra A K. Robustness analysis of cognitive information complexity measure using Weyuker properties [J]. ACM Sigsoft Software Engineering Notes, 2006, 31(1): 1–6.
Misra S, Misra A K. Evaluating cognitive complexity measure with Weyuker properties [C]// Proceedings of the 3rd IEEE International Conference on Cognitive Informatics (ICCI’04). Victoria: IEEE Press, 2004: 1–6.
Chiemeke S C, Oladipupo A O. Theoretical approaches in software complexity metrics [J]. African Journal of Science and Technology (AJST ) Science and Engineering Series, 2001, 2(2): 101–107.
Sharma A, Kushwaha D S. Complexity measure based on requirement engineering document and its validation [C]// Proceedings of Int’l Conference on Computer & Communication Technology_ICCCT’10. Allahabad: IEEE Press, 2010: 608–615.
Korel B, Rilling J. Program slicing in understanding of large programs [C]// Proceedings of 6th International Workshop on Program Comprehension. Ischia: IEEE Press, 1998: 145–152.
Tao H W, Chen Y X. A quantitative relation model between trustworthy attributes [C]// Proceedings of Quantitative Logic and Soft Computing. Xi’an: World Scientific Press, 2012: 197–204.
Weiser M. Program slicing [J]. IEEE Transaction on Software Engineering, 1984, 10(4): 352–357.
Munson J C. Software Engineering Measurement [M]. Boca Raton: Auerbach Publisher, 2003.
Author information
Authors and Affiliations
Corresponding author
Additional information
Foundation item: Supported by the National High Technology Research and Development Program of China (863 Program) (2009AA01220) and the National Natural Science Foundation of China (91118007)
Biography: TAO Hongwei, male, Lecturer, research direction: software trustworthiness measurement and cryptography.
Rights and permissions
About this article
Cite this article
Tao, H., Chen, Y. Complexity measure based on program slicing and its validation. Wuhan Univ. J. Nat. Sci. 19, 512–518 (2014). https://doi.org/10.1007/s11859-014-1046-9
Received:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11859-014-1046-9