a-b-street / a-b-street/ltn

Routing supports dead-end u-turns

オープン
#137 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
21
フォーク
7
PR マージ指標
30日以内にマージされた PR はありません

説明

(copied from https://github.com/a-b-street/ltn/pull/119#discussion_r1954042416)

>I do not have any counter-examples and will have to think about how to force one, but this rule looks like it prohibits U-turns at a deadend. I don't think a route would ever choose to go down one, unless maybe there's a situation where it's forced to by a TR... ie:
>
>```
> D
> |
> A--*--B
>```
>
> If the route starts from B, goes to *, there's a TR preventing B->A, then the route goes to D. It needs to u-turn there to make progress. Then southbound, D->A.
>
> I don't think something this weird is likely to happen in practice, so don't block this PR on it. I've made a note to try and construct this test case later and see if it can actually occur; can file a followup issue if you agree it's possible

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

この issue では、ターン制限によって経路が強制される場合に、行き止まりでの U-turn に関係する潜在的な routing のエッジケースについて説明しています。まず routing アルゴリズムのコードを調べます。おそらく、経路探索またはターン制限を扱うモジュールにあります。U-turn または行き止まりに関連する既存のテストを探します。目的は、説明されているシナリオ (B -> * -> D -> U-turn -> A) を再現するテストケースを構築し、現在のアルゴリズムがそれを正しく処理できるか確認することです。グラフ表現とターン制限のロジックを理解することが重要です。

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

評価

技術スタック
rust
領域
backend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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