Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Adding support for non continuous number ranges, and Symmetric distances to the current traveling salesman problem

Đang mở
#167 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cpp, postgresql, sql
Lĩnh vực
backend, databases

Hướng nghiên cứu

The issue references a gist (dapotts/atspmat.sql) with SQL functions for extending the traveling salesman problem (TSP) support. Start by examining the existing pgr_tsp implementation in the pgRouting codebase, likely in the src/tsp directory. Understand how distance matrices are currently handled. The new functions need to integrate with the existing API, support non-continuous node IDs, and handle asymmetric costs. Check the gist for the proposed SQL function signatures and logic. Testing will involve creating a distance matrix and verifying the new functions produce correct TSP routes.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Functionality Request TSP

The files in the gist dapotts / atspmat.sql add support for

  1. Non continuous number ranges in the pgr_tsp. Usage is select seq,id from pgr_mktspret('select source,target,cost from edge5' ,xx); where xx is any node, which does have to be in the range 1-N
  2. A function for checking if your distance matrix is valid pgr_checktsparray, takes an distance matrix and check that there are enough values, only zeros are in the leading diagnonal, The value i,j is the same as j,i
  3. A method for resolving the Asymmetric salesman problem. Process a a distance matrix where the cost of A-B is not the same as B-A
Ngôn ngữ chính
C++
Star
1.4k
Fork
397
Merge trung bình
2 ngày 2 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pgRouting/pgrouting

Tất cả issue của pgRouting/pgrouting

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.