Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#167 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp, postgresql, sql
Ambito
backend, databases

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
C++
Stelle
1.4k
Fork
397
Merge medio
2g 2h
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pgRouting/pgrouting

Tutte le issue di pgRouting/pgrouting

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.