Technical Report
 

Graph theoretic program complexity measures

Public Deposited

Downloadable Content

Download PDF
https://ir.library.oregonstate.edu/concern/technical_reports/zs25xh88b

Descriptions

Attribute NameValues
Creator
Abstract
  • Recently several simply computed graph theoretic measures of computer program complexity, testing and unstructuredness have been proposed. Most of them are based on a static analysis of the program graph. One of the best known and most widely accepted is the cyclomatic number. Another is the number of knots, or crossings of flow of control arrows in the program text We show that the number of knots is equal to the number of edges in the-overlap graph of the program where each program branch gives rise to an interval. The number of knots is highly dependent on the order of the statements in the program so that equivalent programs could have different values. We show that the two operations of rearranging and replicating program segments can substantially reduce the number of knots and thereby improve the readability and structure of the program. The rearrangement operation is a useful tool in converting "old" Fortran programs into more readable and structured Fortran 77 programs.
Resource Type
Date Issued
Academic Affiliation
Series
Rights Statement
Publisher
Peer Reviewed
Language

Relationships

Parents:

This work has no parents.

Items