Ir al contenido
m·amathatlas
ExplorarAcerca deProblemas abiertosAutores citadosMi bibliotecaFeedback
Iniciar sesión
FRENES
Cargando vistas…Solo vistas recientes, en todos los idiomas. El historial de Vercel no está disponible para esta página. Las visitas repetidas en la misma pestaña se agrupan durante 30 minutos.
CompartirLinkedInXFacebookWhatsApp
← Todos los problemas abiertos
Pregunta sin respuesta

Are there fast rank and unrank algorithms for integer vectors under the action of a permutation group?

Combinatoria

Importado el 28 de noviembre de 2026

El foro clasificaba esta pregunta como sin respuesta en la fecha de recopilación. Esto no certifica un problema abierto de investigación; consulta las respuestas y el historial de la fuente.

Los enunciados y resúmenes están en inglés. Los conceptos de apoyo y los artículos de Wikipedia disponibles en español ayudan a comprenderlos. La fuente conserva la formulación completa y el debate.

Enunciado del problema (inglés)

We are distributing mmm indistinguishable balls in kkk numbered boxes S={1,2,…,k}S=\{1,2,\ldots,k\}S={1,2,…,k}. A distribution is a tuple of nonnegative integers a=(a1,…,ak)a=(a_1,\ldots,a_k)a=(a1​,…,ak​) whose sum is mmm. We also have a permutation group GGG acting on SSS, and two distributions a,ba,ba,b are considered equivalent, if there is a permutation g∈Gg \in Gg∈G such that bi=ag(i)b_i = a_{g(i)}bi​=ag(i)​ for all i=1,…,ki=1,\ldots,ki=1,…,k. Denote the set of the equivalence classes by VVV. An equivalence class can be represented by some canonical element of it, for example the distribution that comes first in reverse lexical order.

Question: Are there known fast rank and unrank algorithms for VVV?

A rank function is a bijection r:V→{1,…,∣V∣}r : V \to \{1,\ldots,\lvert V\rvert\}r:V→{1,…,∣V∣}, and its inverse uuu is an unrank function. So the unranking u(i)u(i)u(i) gives "the iiith member", in some linear order, and the ranking tells the index of a given member.

By "fast" I mean clearly faster than iterating the distributions in a linear order until a match is found. Let's say a "fast" unranking u(i)u(i)u(i) takes time O(∣V∣α)O(\lvert V \rvert^\alpha)O(∣V∣α), where α\alphaα is a constant, 0≤α<10 \le \alpha < 10≤α<1. The naive iteration takes time Ω(∣V∣)\Omega(\lvert V \rvert)Ω(∣V∣) when accessing the last element (i=∣V∣i = \lvert V \rverti=∣V∣).

Some observations and related problems

  • The counting problem is well understood: ∣V∣\lvert V \rvert∣V∣ can be efficiently calculated using the cycle index theorem, a.k.a. Pólya counting (see e.g. this blog post)

  • The iterating problem is also well understood: there are nice algorithms for going through VVV in some linear order, see e.g. Borie (2013). This algorithm is implemented in SageMath, class IntegerVectorsModPermutationGroup.

  • For some groups GGG the ranking and unranking are well understood.

  • If GGG is trivial, then we have simply the ranking/unranking problem of nonnegative integer vectors having a fixed sum, and its solutions are well known.

  • If G=SkG=S_kG=Sk​, then the ball distributions are partitions of the integer mmm. The answers to MO question "Computing the lexicographic indices of integer partition" describe a general unranking method that seems applicable: basically, consider values for a1a_1a1​, and solve the counting problem for the remaining boxes with the remaining balls; then compare the count to your index, and either increment a1a_1a1​, or fix it and solve the remaining boxes recursively.

However, even in some relatively simple special cases, like GGG containing swaps of some boxes (and fixing some other boxes), or the boxes arranged as a necklace (cyclic permutations) or a bracelet (cyclic permutations + reflection), I could not find a known algorithm. In special cases one can of course cook up a solution, but I'm wondering if the general case is solved somewhere. I would also like to hear of any interesting special cases that have been already solved, perhaps even implemented somewhere.

As mentioned, SageMath's IntegerVectorsModPermutationGroup is good for iterating; but it has simply the "default" rank and unrank functions that iterate until match. In fact even its cardinality function works by iterating: if we have k=8k=8k=8 boxes with no symmetry (GGG is trivial), and m=20m=20m=20 balls, it takes something like 20 seconds to calculate ∣V∣=888030\lvert V \rvert = 888030∣V∣=888030. (Of course, by stars and bars, it is (20+8−120)\binom{20+8-1}{20}(2020+8−1​).)

My motivation for the question is that this is needed as a subroutine in my work with some classes of graphs (basically, I would like to find the iiith way of adding some indistinguishable vertices at some locations in the graph, where the symmetry of the graph makes some solutions equivalent).

Update (2.1.2024): While wading through literature, I found the following opinion by Kopparty, Kumar and Saks 2016 (boldface mine):

However, it seems that not all combinatorial counting arguments lead to efficient indexing algorithms. A prime example of this situation is when we have a finite group acting on a finite set, and the set we want to index is the set of orbits of the action. The associated counting problem can be solved using the Burnside counting lemma, and there seems to be no general way to use this to get an efficient indexing algorithm.

This somewhat dims my hopes of finding an existing efficient algorithm for the general case. Hence I would be interested even in solved special cases. (Kopparty et al. discuss the unranking of necklaces, which have circular symmetry.)

References

Borie, Nicolas, Generation modulo the action of a permutation group, Proceedings of the 25th international conference on formal power series and algebraic combinatorics, FPSAC 2013, Paris, France, June 24–28, 2013. Nancy: The Association. Discrete Mathematics & Theoretical Computer Science (DMTCS). Discrete Mathematics and Theoretical Computer Science. Proceedings, 767-778, electronic only (2013). ZBL1294.05183.

Kopparty, Swastik; Kumar, Mrinal; Saks, Michael, Efficient indexing of necklaces and irreducible polynomials over finite fields, Theory Comput. 12, Paper No. 7, 27 p. (2016). ZBL1373.11080.

Enunciado y contexto adaptados de MathOverflow · Jukka Kohonen

CC BY-SA 4.0 · Formato adaptado; fórmulas matemáticas conservadas · Historial de la fuente

Conceptos para comprender

Cardinal y numerabilidad
Un cardinal mide el tamaño de un conjunto. Un conjunto infinito numerable puede enumerarse con los enteros; uno no numerable es mayor. Los símbolos ℵ₀, ℵ₁, … distinguen tamaños infinitos.
Número primo
Un entero mayor que 1 cuyos únicos divisores positivos son 1 y él mismo. Por ejemplo: 2, 3, 5 y 7.
Grafo
Un conjunto de vértices conectados por aristas. El grado cuenta las aristas incidentes en un vértice; el enunciado precisa si hay orientación o aristas múltiples.
Grupo / grupo abeliano
Un conjunto con una operación asociativa, un elemento neutro y un inverso para cada elemento. Es abeliano si intercambiar el orden de dos elementos no cambia su producto.

Temas : co.combinatorics · permutations · bijective-combinatorics

Autores indicados por la fuente : Jukka Kohonen

Fuentes y estado original

  • MathOverflow Estado en la fuente : unanswered at collection

Última actividad en la pregunta : 2 de enero de 2024

Cobertura, fuentes y método

Este contador mide las fichas importadas, incluidas variantes distintas. No cuenta todas las preguntas matemáticas abiertas del mundo. Una ficha puede pertenecer a varias áreas y fuentes.

El repertorio no es exhaustivo ni se actualiza en tiempo real. « Abierto según la fuente » describe la clasificación observada al importar; no se ha verificado independientemente cada ficha importada. Las 32 fichas explicadas se revisaron por separado.

Formal Conjectures: se conservan solo enunciados « research open » sin prueba formal indicada; se comprueba su etiqueta en una versión concreta del repositorio. Las variantes siguen separadas. Un « sorry » no basta para establecer que el problema sigue abierto.

Erdős: se excluyen problemas resueltos, independientes o con una solución Lean, incluidos los « open (Lean) ». Se fusionan las coincidencias exactas con los enunciados principales de Formal Conjectures.

Open Problem Garden: se contrasta el índice abierto con el de resueltos; se excluyen spam, copias identificadas y algunos estados obsoletos. Los enunciados y sus definiciones se atribuyen a las páginas originales; se conservan las fórmulas y el contenido sigue bajo la GFDL. Se agrupan los duplicados reconocidos, sin resolver todas las equivalencias matemáticas.

OEIS: extracción directa de comentarios y fórmulas conjeturales, una ficha por sucesión, excluyendo resoluciones mencionadas. MathOverflow y Math Stack Exchange: preguntas clasificadas sin respuesta por su API, excluyendo publicaciones cerradas y categorías ajenas a la investigación. Se distinguen de los problemas señalados como abiertos. La colección es parcial y fechada; cada ficha atribuye autores y licencia.

Las exclusiones documentadas tienen en cuenta anuncios recientes y estados contradictorios. Una variante más fuerte o un caso particular puede seguir abierto tras resolverse otro enunciado.

Atribución: The Formal Conjectures Authors; teorth/erdosproblems y sus colaboradores; Open Problem Garden y sus colaboradores. Cada fuente conserva su licencia.

  • Formal Conjectures · 1924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18.857 · CC BY-SA 4.0
  • MathOverflow · 19.035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Comunicar un avance o una corrección
mathatlas

Un atlas independiente para comprender, leer y cuestionar la investigación.

Los artículos presentan resultados anunciados en distintas fases de verificación.
NewsletterDar mi opiniónAcerca de Datos y privacidad
Created by Sonny Mupfuni