数論・組み合わせ・その他のアルゴリズム系ライブラリのドキュメント改善 #182
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
10個のアルゴリズムライブラリに包括的なドキュメントと実用的な使用例を追加しました。
改善対象ライブラリ
数論・組み合わせ系
ext_gcd
: 拡張ユークリッド互除法の詳細説明、乗法逆元計算・中国剰余定理での使用例を追加factorials
: クレートレベルドキュメント、組み合わせ論での使用パターン、競技プログラミングでの典型的な応用例を追加Union-Find・グラフアルゴリズム系
union_find
: Kruskal法での最小全域木、グラフの連結性判定での実用例を追加detect_cycle
: 無向・有向グラフでのサイクル検出の詳細説明、DAG判定での応用例を追加strongly_connected_components
: 包括的なクレートレベルドキュメント、2-SATでの使用例を含む詳細説明を追加その他のアルゴリズム系
cumulative_sum_2d
: 二次元領域クエリでの使用パターン、imos法との組み合わせ例を追加sliding_window
: モノトニックデックアルゴリズムの詳細説明、RMQでの応用例を追加auxiliary_tree
: auxiliary treeの概念説明、LCAとの組み合わせ、木上クエリでの使用例を追加arithmetic_series
: 等差数列和の数学的応用例、競技プログラミングでの実用パターンを追加next_permutation
: 順列生成での詳細説明、全探索パターンでの使用例を追加主な改善内容
ドキュメント品質向上
一貫性の確保
mod_int
、dijkstra
等)のスタイルに合わせた日本語での説明追加された実用例
すべてのdoctestが正常に動作することを確認済みです。これらの改善により、競技プログラミングでの実用性が大幅に向上します。
This pull request was created as a result of the following prompt from Copilot chat.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.