SIAM Journal on Discrete Mathematics
SFCS '80 Proceedings of the 21st Annual Symposium on Foundations of Computer Science
Hi-index | 0.89 |
A k-ranking of a graph is a labeling of the vertices with positive integers 1,2,...,k so that every path connecting two vertices with the same label contains a vertex of larger label. An optimal ranking is one in which k is minimized. Let P"n be a path with n vertices. A greedy algorithm can be used to successively label each vertex with the smallest possible label that preserves the ranking property. We seek to show that when a greedy algorithm is used to label the vertices successively from left to right, we obtain an optimal ranking. A greedy algorithm of this type was given by Bodlaender et al. in 1998 [1] which generates an optimal k-ranking of P"n. In this paper we investigate two generalizations of rankings. We first consider bounded (k,s)-rankings in which the number of times a label can be used is bounded by a predetermined integer s. We then consider k"t-rankings where any path connecting two vertices with the same label contains t vertices with larger labels. We show for both generalizations that when G is a path, the analogous greedy algorithms generate optimal k-rankings. We then proceed to quantify the minimum number of labels that can be used in these rankings. We define the bounded rank number (G)r,s to be the smallest number of labels that can be used in a (k,s)-ranking and show for n=2, (P"n)r,s=@?((n-(2^i-1))/s)@?+i where i=@?log"2(s)@?+1. We define the k"t-rank number, (G)rt to be the smallest number of labels that can be used in a k"t-ranking. We present a recursive formula that gives the k"t-rank numbers for paths, showing (P"j)rt=n for all a"n"-"1