Article view

Developing New Locality Results for the Prüfer Code using a Remarkable Linear-Time Decoding Algorithm

By Tim Paulden, David K. Smith

Article information

Publication
Published 9 August 2007
Institutions at publication
University of Exeter
8 Citations OpenAlex, 3 December 2026 FULL LIST: Citations
6 Countries with citations Where the citing authors were FULL LIST: Countries with citations
Usage Phase 3: not collected yet

Abstract

The Prüfer Code is a bijection between the $n^{n-2}$ trees on the vertex set $[1,n]$ and the $n^{n-2}$ strings in the set $[1,n]^{n-2}$ (known as Prüfer strings of order $n$). Efficient linear-time algorithms for decoding (i.e., converting string to tree) and encoding (i.e., converting tree to string) are well-known. In this paper, we examine an improved decoding algorithm (due to Cho et al.) that scans the elements of the Prüfer string in reverse order, rather than in the usual forward direction. We show that the algorithm runs in linear time without requiring additional data strutures or sorting routines, and is an 'online' algorithm — every time a new string element is read, the algorithm can correctly output an additional tree edge without any knowledge of the future composition of the string. This new decoding algorithm allows us to derive results concerning the 'locality' properties of the Prüfer Code (i.e., the effect of making small changes to a Prüfer string on the structure of the corresponding tree). First, we show that mutating the $\mu$th element of a Prüfer string (of any order) causes at most $\mu + 1$ edge-changes in the corresponding tree. We also show that randomly mutating the first element of a random Prüfer string of order $n$ causes two edge-changes in the corresponding tree with probability $2(n-3)/n(n-1)$, and one edge-change otherwise. Then, based on computer-aided enumerations, we make three conjectures concerning the locality properties of the Prüfer Code, including a formula for the probability that a random mutation to the $\mu$th element of a random Prüfer string of order $n$ causes exactly one edge-change in the corresponding tree. We show that if this formula is correct, then the probability that a random mutation to a random Prüfer string of order $n$ causes exactly one edge-change in the corresponding tree is asymptotically equal to one-third, as $n$ tends to infinity.

Citations per year

Citations per year
YearCitations
2017 1
2018 3
2019 1
2020 1
2021 1
2022 0
2023 0
2024 0
2025 0
2026 0

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

The newest works citing this article
Citing workYearPublished in
Calculating Worst-Case Response Time Bounds for OpenMP Programs with Loop Structures 2021 IEEE Real-Time Systems Symposium (RTSS)
Prufer Coding: A Vectorization Method for Undirected Labeled Graph 2020 IEEE Access
PRÜFER-KARAGÜL ALGORİTMASI: GEZGİN SATICI PROBLEMİ İÇİN YENİ BİR YAKLAŞIM 2019 Mehmet Akif Ersoy Üniversitesi İktisadi ve İdari Bilimler Fakültesi Dergisi
A Model for Wireless-Access Network Topology and a PSO-Based Approach for Its Optimization 2018 Studies in computational intelligence
Is Prüfer Code Encoding Always a Bad Idea? 2018 Studies in computational intelligence
Nature-Inspired? Optimization in the Era of IoT: Particle Swarm Optimization (PSO) Applied to Indoor-Distributed Antenna Systems (I-DAS) 2018 Springer eBooks
Using branching-property preserving Pruefer Code to encode solutions for Particle Swarm Optimization 2017 Annals of Computer Science and Information Systems
On the Locality of the Prüfer Code 2009 The Electronic Journal of Combinatorics

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • Changes the map only; the tables list the figures.
  • USAGE Phase 3
Authors by country
CountryAuthors
United Kingdom2
Citations from 6 countries
Citations by the country of the citing authors
CountryCitations
Spain4
United Arab Emirates4
China2
United States2
Hong Kong1
Turkey1

Where the authors of the works citing these were, from the citing works OpenAlex lists. A citation whose authors were in several countries counts in each.