A Petri net approach to the evaluation of the complexity of a program

Abstract
The complexity evaluation of a program utilizing the reachability concept of a Petri net (PN) is proposed. A PN representation of a particular program is also given. Three measures of complexity namely (i) cyclomatic number (ii) number of simple paths and (iii) execution time are discussed. Unlike other methods for the determination of number of paths as a complexity measure, the proponed technique does not require matrix multiplication. Only vector additions on the columns of a single matrix is needed. This alleviates the computational effort, and it is simple and easily computerized.

This publication has 6 references indexed in Scilit: