Use Bently-Ottmann algorithm for LineString's IsSimple

Abierto
#150 3 comentarios 0 reacciones 0 asignados Ver en GitHub

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

algorithm performance

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de peterstace/simplefeatures

Todos los issues de peterstace/simplefeatures

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.