クロスサイクリック複雑性:グラフ上のプログラム複雑性に対する二次元測定
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)を導入する。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.