Abstract
We give an efficient encoding and decoding scheme for computing a compact representation of a graph in one of unordered reduced trees, cographs and series-parallel graphs. The unordered reduced trees are rooted trees in which (i) the ordering of children of each vertex does not matter, and (ii) no vertex has exactly one child. This is one of basic models frequently used in many areas. Our algorithm computes a bit string of length 2ℓ – 1 for a given unordered reduced tree with ℓ ≥ 1 leaves in O(ℓ) time, whereas a known folklore algorithm computes a bit string of length 2n – 2 for an ordered tree with n vertices. Note that in an unordered reduced tree, ℓ ≤ n < 2ℓ holds. To the best of our knowledge this is the first of such a compact representation for unordered reduced trees. From the theoretical point of view, the length of the representation gives us an upper bound of the number of unordered reduced trees with ℓ leaves. Precisely, the number of unordered reduced trees with ℓ leaves is at most 22ℓ–2 for ℓ ≥ 1. Moreover, the encoding and decoding can be done in linear time. Therefore, from the practical point of view, our representation is also useful to store a lot of unordered reduced trees efficiently. We also apply the scheme for computing a compact representation to cographs and series-parallel graphs. We show that each of cographs with n vertices has a compact representation in 2n – 1 bits, and the number of cographs with n vertices is at most 22n–1. The resulting number is close to the number of cographs with n vertices obtained by the enumeration for small n that approximates Cdn/n3/2, where C = 0.4126⋯ and d = 3.5608⋯. Series-parallel graphs are well-investigated in the context of the graphs of bounded treewidth. We give a method to represent a series-parallel graph with m edges in ⌈2.5285m – 2⌉ bits. Hence the number of series-parallel graphs with m edges is at most 2⌈2.5285m–2⌉. As far as the authors know, this is the first non-trivial result about the number of series-parallel graphs. The encoding and decoding of the cographs and series-parallel graphs also can be done in linear time.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.