Factoradic

Factoradic

In combinatorics, factoradic is a specially constructed number system. Factoradics provide a lexicographical index for permutations, so they have potential application to computer security. The idea of the factoradic is closely linked to that of the Lehmer code. An article by James D. McCaffrey documents the factoradic index for permutations with supporting code written in C#, acknowledging Peter Cameron as having made the original suggestion. The origins of the term 'factoradic' are obscure.

Definition

Factoradic is a factorial-based mixed radix numeral system: the "i"-th digit, counting from right, is to be multiplied by "i"!

The leftmost factoradic digit 0, 1, or 2 is chosen as the first permutation digit from the ordered list (0,1,2) and is removed from the list. Think of this new list as zero indexed and each successive digit dictates which of the remaining elements is to be chosen. If the second factoradic digit is "0" then the first element of the list is selected for the second permutation digit which and is then removed from the list. Similarly if the second factoradic digit is "1", the second is selected and then removed. The final factoradic digit is always "0", and since the list now contains only one element it is selected as the last permutation digit.

The process may become clearer with a longer example. For example, here is howthe digits in the factoradic 46054413020100 (equal to 298210) pick out the digits in the 2982nd permutation of (0,1,2,3,4,5,6) — (4,0,6,2,1,3,5). 46054413020100 → (4,0,6,2,1,3,5) factoradic: 46 05 44 13 02 01 00
| | | | |
(0,1,2,3,4,5,6) -> (0,1,2,3,5,6) -> (1,2,3,5,6) -> (1,2,3,5) -> (1,3,5) -> (3,5) -> (5)
| | | | |
permutation:(4, 0, 6, 2, 1, 3, 5)

Of course the natural index for the group direct product of two
permutation groups is just the factoradics for the two groups joinedusing concatenation. concatenated decimal factoradics permutation pair 010 020100020100 ((0,1,2),(0,1,2)) 110 020100021100 ((0,1,2),(0,2,1)) ... 510 020100221100 ((0,1,2),(2,1,0)) 610 021100020100 ((0,2,1),(0,1,2)) 710 021100021100 ((0,2,1),(0,2,1)) ... 2210 121100220100 ((1,2,0),(2,0,1)) ... 3410 221100220100 ((2,1,0),(2,0,1)) 3510 221100221100 ((2,1,0),(2,1,0))

References

* Donald Knuth. "The Art of Computer Programming", Volume 2: "Seminumerical Algorithms", Third Edition. Addison-Wesley, 1997. ISBN 0-201-89684-2. Pages 65–66.
* James McCaffrey, [http://msdn2.microsoft.com/en-us/library/aa302371.aspx "Using Permutations in .NET for Improved Systems Security"] , MSDN.

ee also

* Combinadic
* Factorial

External links

* [http://www.numdam.org/item?id=BSMF_1888__16__176_0 Laisant, C.- A., Sur la numération factorielle, application aux permutations. Bulletin de la Société Mathématique de France, 16 (1888), p. 176-183] (in French)
* [http://www.dmtcs.org/volumes/abstracts/pdfpapers/dm040203.pdf "A permutation representation that knows what 'Eulerian' means", by Roberto Mantaci and Fanja Rakotondrajao. (PDF)] Description and references for Lehmer codes
* [http://www-ang.kfunigraz.ac.at/~fripert/fga/k1lehm.html A Lehmer code calculator] Note that their permutation digits start from 1, so mentally reduce all permutation digits by one to get results equivalent to the ones on this page.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Combinadic — In mathematics, a combinadic is an ordered integer partition, or composition. Combinadics provide a lexicographical index for combinations. Applications for combinadics include software testing, sampling, quality control, and the analysis of… …   Wikipedia

  • James D. McCaffrey — For the American actor, see James McCaffrey .James D. McCaffrey is a software engineer and author known for his contributions to the fields of mathematical combinatorics and software test automation. McCaffrey published the first descriptions… …   Wikipedia

  • Code de Lehmer — Pour les articles homonymes, voir Lehmer. Sommaire 1 Définition 2 Décodage 2.1 Un algorithme …   Wikipédia en Français

  • List of combinatorics topics — This is a list of combinatorics topics.A few decades ago it might have been said that combinatorics is little more than a way to classify poorly understood problems, and some standard remedies. Great progress has been made since 1960.This page is …   Wikipedia

  • List of mathematics articles (F) — NOTOC F F₄ F algebra F coalgebra F distribution F divergence Fσ set F space F test F theory F. and M. Riesz theorem F1 Score Faà di Bruno s formula Face (geometry) Face configuration Face diagonal Facet (mathematics) Facetting… …   Wikipedia

  • List of University of California, Irvine people — This page lists noted individuals associated with the University of California, Irvine. AlumniThe following are noted alumni and students of the University of California, Irvine. When the information is known and available, degree and year are… …   Wikipedia

  • Factorádico — Saltar a navegación, búsqueda En combinatoria, factorádico (del inglés factoradic ) es un sistema numérico especialmente construido. El sistema factorádico proporciona un índice lexicografico para permutaciones por lo que tiene potencial… …   Wikipedia Español

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”