scispace - formally typeset
Journal ArticleDOI

A Complexity Measure

Reads0
Chats0
TLDR
Several properties of the graph-theoretic complexity are proved which show, for example, that complexity is independent of physical size and complexity depends only on the decision structure of a program.
Abstract
This paper describes a graph-theoretic complexity measure and illustrates how it can be used to manage and control program complexity. The paper first explains how the graph-theory concepts apply and gives an intuitive explanation of the graph concepts in programming terms. The control graphs of several actual Fortran programs are then presented to illustrate the correlation between intuitive complexity and the graph-theoretic complexity. Several properties of the graph-theoretic complexity are then proved which show, for example, that complexity is independent of physical size (adding or subtracting functional statements leaves complexity unchanged) and complexity depends only on the decision structure of a program.

read more

Citations
More filters
Journal ArticleDOI

Generation of components for software renovation factories from context-free grammars

TL;DR: An approach for the generation of components for a software renovation factory is presented, generated from a contex-free grammar definition that recognizes the code that has to be renovated.
Journal ArticleDOI

Software complexity and its impact on software reliability

TL;DR: A software complexity metric is developed that includes both the internal and external complexity of a module that allows analysis of a software system during its development and provides a guide to system decomposition.
Proceedings ArticleDOI

Code Similarities Beyond Copy & Paste

TL;DR: This paper presents the results of a controlled experiment that demonstrates that behaviorally similar code of independent origin is highly unlikely to be syntactically similar, that existing clone detection approaches cannot identify more than 1% of such redundancy.
Journal ArticleDOI

Automatically Identifying Code Features for Software Defect Prediction: Using AST N-grams

TL;DR: In this article, the authors use Abstract Syntax Tree (AST) n-grams to identify features of defective Java code that improve defect prediction performance and use non-parametric testing to determine relationships between AST ngrams and faults in both open source and commercial systems.
Journal ArticleDOI

Reflections on the NASA MDP data sets

TL;DR: The data quality issues present in the NASA metrics data program (MDP) data sets are highlighted, and the problems that can arise when they are used in a binary classification context.
References
More filters
Journal ArticleDOI

Structured Programming with go to Statements

TL;DR: For serious students of structured programming, and also for language designers, Knuth's "Structured Programming with go to Statements" is probably the paper to read.
Journal ArticleDOI

Analysis of structured programs

TL;DR: It is shown that an arbitrary program P is reducible to a D-chart if and only if P does not contain a loop with two distinct exits.
Journal ArticleDOI

A genealogy of control structures

TL;DR: It is argued further that there is insufficient evidence to warrant more than if-then-else, while-do, and their variants and the importance of one-in, one-out control structures as operational abstractions.