Locality metrics and program physical structures

Authors
Citation
K. Zhang et N. Gorla, Locality metrics and program physical structures, J SYST SOFT, 54(2), 2000, pp. 159-166
Citations number
12
Categorie Soggetti
Computer Science & Engineering
Journal title
JOURNAL OF SYSTEMS AND SOFTWARE
ISSN journal
01641212 → ACNP
Volume
54
Issue
2
Year of publication
2000
Pages
159 - 166
Database
ISI
SICI code
0164-1212(20001015)54:2<159:LMAPPS>2.0.ZU;2-L
Abstract
Years of programming experience has convinced us that the physical structur e of a program, such as the locations of the program's components, their ca lls, and the depth of nested calls, is important in determining how effecti ve and efficient the program can be debugged and maintained. This paper int roduces a new class of physical metrics, known as locality metric, that mea sures the relative positions of components in a program listing and reveals useful attributes that may affect programmer productivity. The placement o f the components can be determined by a simple algorithm that is of polynom ial time complexity. The paper compares the performance of the algorithm wi th that of an exhaustive search approach and also reports various character istics of the locality metric based on the collected statistical data. The performance shows the feasibility of the algorithm and closeness of its out put to the optimal result found by the exhaustive approach. (C) 2000 Elsevi er Science Inc. All rights reserved.