Approximating the "magic" tree rotation: P or NP?
Importado el
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 .)
-
An "online" doesn't and thus is slower (). The ratio of such an algorithm is of utmost interest.
-
The offline cost varies with the instance ( to ).
-
Actually computing it may be NP-complete.
-
For the general problem (queries may repeat) it is NP-complete. (Demaine)
-
For a permutation query (each item in the set is queried exactly once, an interesting subproblem) at least an algorithm is known, so at least it can't get worse than NP. (Seidel)
-
Speculation : The subproblem is NP-complete too, but even an approximation is in P and can be found in near time. (Demaine, everyone else)
-
A very good algorithm is "Greedy Future", which at least can implemented to run in time, but it is still open whether holds for each instance. (My Master thesis :-)
-
No online algorithm is actually known. The attained 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 , and I won't go into details) for a good approximation.
-
Let be an permutation of as above, be a binary string of length and its permutation under . Define a cost of any given some : For each adjacent pair of s in add to . For each adjacent pair of s in add to . Given , find the cheapest .
-
Since a "diamond of death" (pattern ) costs at least for any , can have cost (just repeat that pattern).
-
Nevertheless, for a random tends to be extremely low. (At least for small , that may change...)
-
Task : Given , find the with lowest cost . Solutions where the numbers of s and s are about equal will be preferred. (Such a , as said, with some fudgery applied, can be used as a very good approximation).
Question: Is 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
Fuentes y estado original
- MathOverflow Estado en la fuente : unanswered at collection
Última actividad en la pregunta :
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)