The Encoding of Natural Numbers as Nested Parentheses Strings with Associated Probability Distributions

Abstract

We provide an efficient encoding of the natural numbers 0,1,2,3,... as strings of nested parentheses (),(()),(()()),((())),..., or considered inversely, an efficient enumeration of such strings. The technique is based on the recursive definition of the Catalan numbers. The probability distributions arising from this encoding are explored. Applications of this encoding to prefix-free data encoding and recursive function theory are briefly considered.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…