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

Approximating the "magic" tree rotation: P or NP?

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)

Background. (tl;dr, skippable)

  • "Dynamic" binary search trees are well researched.

  • The "magic" rotation algorithm (="offline") knows the query sequence beforehand and thus uses a minimum of (costly) tree rotations. (Call the cost C1C1C1.)

  • An "online" doesn't and thus is slower (C2C2C2). The ratio r=C2/C1r=C2/C1r=C2/C1 of such an algorithm is of utmost interest.

  • The offline cost varies with the instance (O(n)O(n)O(n) to O(nlog⁡n)O(n\log n)O(nlogn)).

  • Actually computing it may be NP-complete.

  • For the general problem (queries may repeat) it is NP-complete. (Demaine)

  • For a permutation query Π\PiΠ (each item in the set {1…n}\{1\dots n\}{1…n} is queried exactly once, an interesting subproblem) at least an O(4n)O(4^n)O(4n) algorithm is known, so at least it can't get worse than NP. (Seidel)

  • Speculation S\mathfrak SS: The subproblem is NP-complete too, but even an r=O(1)r=O(1)r=O(1) approximation is in P and can be found in near O(n)O(n)O(n) time. (Demaine, everyone else)

  • A very good algorithm is "Greedy Future", which at least can implemented to run in O(n2)O(n^2)O(n2) time, r≥26/17r\ge 26/17r≥26/17 but it is still open whether r=O(1)r=O(1)r=O(1) holds for each instance. (My Master thesis :-)

  • No r=O(1)r=O(1)r=O(1) online algorithm is actually known. The attained O(log⁡log⁡log⁡n)O(\log\log\log n)O(logloglogn) should be good enough for anyone, though :-)

I now present a heuristic, which is the basis (there are a number of snags, so a positive answer won't necessarily solve S\mathfrak SS, and I won't go into details) for a good approximation.

  • Let Π\PiΠ be an permutation of {1…n}\{1\dots n\}{1…n} as above, BBB be a binary string of length nnn and B′=Π(B)B'=\Pi(B)B′=Π(B) its permutation under BBB. Define a cost CCC of any BBB given some Π\PiΠ: For each adjacent pair of 000s in BBB add 111 to CCC. For each adjacent pair of 111s in B′B'B′ add 111 to CCC. Given PPP, find the cheapest PPP.

  • Since a "diamond of death" (pattern 0213∈P0213\in P0213∈P) costs at least 111 for any BBB, BBB can have cost O(n)O(n)O(n) (just repeat that pattern).

  • Nevertheless, for a random PPP CCC tends to be extremely low. (At least for small nnn, that may change...)

  • Task T\mathfrak TT: Given Π\PiΠ, find the BBB with lowest cost CCC. Solutions where the numbers of 000s and 111s are about equal will be preferred. (Such a BBB, as said, with some fudgery applied, can be used as a very good approximation).

Question: Is T\mathfrak TT NP-complete? (Meaning more or less: Do you offhandedly see a reduction scheme?)

Enunciado y contexto adaptados de MathOverflow · Hauke Reddmann

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

Temas : co.combinatorics · binary-tree

Autores indicados por la fuente : Hauke Reddmann

Fuentes y estado original

  • MathOverflow Estado en la fuente : unanswered at collection

Última actividad en la pregunta : 30 de marzo de 2022

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