교차 사이클릭 복잡도: 그래프 기반 프로그램 복잡도를 위한 2 차원 측정
The cross cyclomatic complexity: a bi-dimensional measure for program complexity on graphs
The cross cyclomatic complexity: a bi-dimensional measure for program complexity on graphs
@misc{tremblay2020the,
title = {The cross cyclomatic complexity: a bi-dimensional measure for program complexity on graphs},
author = {Hugo Tremblay and Fabio Petrillo},
year = {2020},
eprint = {2003.00399},
archivePrefix = {arXiv},
primaryClass = {cs.SE},
url = {https://arxiv.org/abs/2003.00399}
}
Tremblay, H., & Petrillo, F. (2020). The cross cyclomatic complexity: a bi-dimensional measure for program complexity on graphs [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2003.00399
TREMBLAY H, PETRILLO F. The cross cyclomatic complexity: a bi-dimensional measure for program complexity on graphs[EB/OL]. (2020-03-01)[2026-11-29]. https://arxiv.org/abs/2003.00399.
초록
소프트웨어 설계에서 복잡도를 줄이고 제어하는 것은 필수적인 실천입니다. 사이클로믹 복잡도 (CC) 는 40 년 이상 적용되어 온 가장 인기 있는 소프트웨어 지표 중 하나입니다. CC 는 프로그램의 분기 수를 강조하는 흥미로운 지표이기는 하지만, 소프트웨어의 복잡도를 표현하기에 명확히 충분하지 않습니다. 본 논문에서는 제어 흐름 그래프를 사용하여 프로그램의 복잡도를 특징짓기 위해 사이클로믹 복잡도와 최소 가중치 사이클 기저의 가중치를 카르테시안 평면상의 쌍으로 결합한 새로운 2 차원 복잡도 측정인 교차 사이클로믹 복잡도 (CCC) 를 소개합니다. 우리의 공설은 프로그램 복잡도를 표현하는 새로운 장소를 여는 것이며, 그 함의와 기회를 논의합니다.
Reduce and control complexity is an essential practice in software design. Cyclomatic complexity (CC) is one of the most popular software metrics, applied for more than 40 years. Despite CC is an interesting metric to highlight the number of branches in a program, it clearly not sufficient to represent the complexity in a piece of software. In this paper, we introduce the cross cyclomatic complexity (CCC), a new bi-dimensional complexity measure on graphs that combines the cyclomatic complexity and the weight of a minimum-weight cycle basis in as pair on the Cartesian plan to characterize program complexity using control flow graphs. Our postulates open a new venue to represent program complexity, and we discuss its implications and opportunities.