On-Line Algorithms for Vertex-Rankings of Graphs
Muntasir Raihan Rahman, Md. Ehtesamul Haque, Maeenul Islam, Md. Abul Kashem · 2007
A vertex-ranking of a graph G is a labeling of the vertices of G such that every path between two vertices with the same label γ contains a vertex with label λ > γ. In any on-line vertex-ranking algorithm, the vertices arrive one at a time in any order and only the local information in the vertices of the induced subgraph G[{ν1.....νi}] is available when the algorithm must choose a rank for νi. The best known online algorithm for vertex-ranking a tree takes O(𝓃3) time, where 𝓃 is the number of vertices in the tree. In this paper we present an O(𝓃2) time on-line algorithm for ranking the vertices of a tree. We also derive an upper bound on the number of ranks used by the algorithm for an important sub-class of trees, namely complete t-ary trees. Finally we provide an on-line vertex ranking algorithm for simple graphs by extending the on-line tree ranking algorithm.