A program may be modeled as a directed graph on n " nodes, " where the nodes are instructions, or data items, or contiguous groups of these. This paper discusses the problem of partitioning such sets of nodes into pages to minimize the number of transitions between pages during execution of the program.The node's are assumed to have a given ordering which may not be changed. We require that nodes on any page must be contiguous, so the only degree of freedom is in selecting "break points" between the pages.We show that if the expected number of transitions between each node of the program graph and its successors is known, then there is an algorithm for selecting the optima break points. The algorithm requires an execution time which grows linearly with the number of nodes in almost all cases.
[1]
Feller William,et al.
An Introduction To Probability Theory And Its Applications
,
1950
.
[2]
A. Schurmann,et al.
The Application of Graphs to the Analysis of Distribution in Loops in a Program
,
1964,
Inf. Control..
[3]
F. H. Dearnley,et al.
Automatic segmentation of programs for a two-level store computer
,
1964,
Comput. J..
[4]
Tad B. Pinkerton,et al.
Program behavior and control in virtual storage computer systems
,
1968
.
[5]
Alfs Berztiss.
A Note on Segmentation of Computer Programs
,
1968,
Inf. Control..
[6]
Jaroslav Král.
One way of estimating frequencies of jumps in a program
,
1968,
CACM.