Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#167 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp, postgresql, sql
領域
backend, databases

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
C++
スター
1.4k
フォーク
397
平均マージ
2日 2時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pgRouting/pgrouting のほかの issue

pgRouting/pgrouting の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。