Ranking and Unranking of Hereditarily Finite Functions and Permutations
| dc.creator | Tarau, Paul | |
| dc.date | 2008-08-05 | |
| dc.date.accessioned | 2026-07-07T09:54:42Z | |
| dc.date.available | 2026-07-07T09:54:42Z | |
| dc.description | Prolog's ability to return multiple answers on backtracking provides an elegant mechanism to derive reversible encodings of combinatorial objects as Natural Numbers i.e. {\em ranking} and {\em unranking} functions. Starting from a generalization of Ackerman's encoding of Hereditarily Finite Sets with Urelements and a novel tupling/untupling operation, we derive encodings for Finite Functions and use them as building blocks for an executable theory of {\em Hereditarily Finite Functions}. The more difficult problem of {\em ranking} and {\em unranking} {\em Hereditarily Finite Permutations} is then tackled using Lehmer codes and factoradics. The paper is organized as a self-contained literate Prolog program available at \url{http://logic.csci.unt.edu/tarau/research/2008/pHFF.zip} | |
| dc.description | unpublished draft | |
| dc.identifier | https://arxiv.org/abs/0808.0554 | |
| dc.identifier | http://arxiv.org/abs/0808.0554 | |
| dc.identifier.uri | http://salesiana.dossiersoluciones.com/handle/123456789/166416 | |
| dc.subject | Logic in Computer Science | |
| dc.subject | Mathematical Software | |
| dc.title | Ranking and Unranking of Hereditarily Finite Functions and Permutations | |
| dc.type | text |