Use Bently-Ottmann algorithm for LineString's IsSimple
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- go
- Lĩnh vực
- performance
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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:
- Ngôn ngữ chính
- Go
- Star
- 176
- Fork
- 27
- Merge trung bình
- 1 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của peterstace/simplefeatures
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
peterstace/simplefeatures#726 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
peterstace/simplefeatures#725 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
peterstace/simplefeatures#724 ·
-
cleanup
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
peterstace/simplefeatures#722 ·
-
bug
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
peterstace/simplefeatures#721 ·
Tất cả issue của peterstace/simplefeatures
Issue tương tự
-
area: import bug go good first issue priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
fukubie/StockLlama#69 ·
-
Add `rumpty firewall create|rm`Đang mởenhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
cloverworks-hq/rumpty-cli#95 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
pulseaiclub/phi#615 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày