Use Bently-Ottmann algorithm for LineString's IsSimple
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- go
- Área
- performance
Línea de trabajo
Start by locating LineString.IsSimple and its current line sweep status data structure, then add a benchmark using the vertically stacked zigzag input described in the issue. Read the linked Bentley–Ottmann references before changing the algorithm. Done means the benchmark demonstrates improved runtime with the new algorithm.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
We're currently using a line sweep intersection algorithm, but it's not the most efficient. This is because we're just using a slice as the status data structure (which has linear lookup and insert time complexity).
For very particularly constructed inputs, this could result in long runtimes.
Tasks:
- Add a benchmark test to exhibit the bad runtime for specially constructed inputs. This will basically be a linestring that is a zigzag 'stacked' vertically.
- Implement the Bently-Ottmann algorithm for LineString's IsSimple method.
- Confirm using the benchmark the improved result.
Resources:
- Lenguaje dominante
- Go
- Estrellas
- 176
- Forks
- 27
- Merge medio
- 1 d 14 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de peterstace/simplefeatures
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
peterstace/simplefeatures#726 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
peterstace/simplefeatures#725 ·
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
peterstace/simplefeatures#724 ·
-
cleanup
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
peterstace/simplefeatures#722 ·
-
bug
Dificultad 3/5 Medio día Aptitud para principiantes 45/100
peterstace/simplefeatures#721 ·
Todos los issues de peterstace/simplefeatures
Issues similares
-
area: import bug go good first issue priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
fukubie/StockLlama#69 ·
-
Add `rumpty firewall create|rm`Abiertoenhancement help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
cloverworks-hq/rumpty-cli#95 ·
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
pulseaiclub/phi#615 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día