On Assigning Prefix Free Codes to the Vertices of a Graph

Abstract

For a graph G on n vertices, with positive integer weights w1,...,wnw_1, . . . , w_n assigned to the n vertices such that, for every clique K of G, \[ \sum_{i \in K}{\frac{1}{2^{w_i}}} \leq 1 \], the problem we are interested in is to assign binary codes C1,...,CnC_1, . . . , C_n to the vertices such that CiC_i has wiw_i (or a function of wiw_i) bits in it and, for every edge \{i, j\}, CiC_i and CjC_j are not prefixes of each other.We call this the Graph Prefix Free Code Assignment Problem. We relate this new problem to the problem of designing adversaries for comparison based sorting algorithms. We show that the decision version of this problem is as hard as graph colouring and then present results on the existence of these codes for prefect graphs and its subclasses

    Similar works