Jarian
|
061a3bdeb3
|
fix: replace greedy episode matcher with DP-based optimal assignment
- Replace greedy _precise_duration_match with O(n*m) DP for minimum-cost
duration matching, ensuring globally optimal file-to-episode assignment
- Fix _dp_match_episodes: remove buggy new_cost2 transition that could
double-assign episodes, fix backtracking logic
- Add _fallback_sequential helper for clean sequential fallback path
- All 8 mock episodes now match with 0-min duration difference,
disc ordering preserved (D1=[1-3], D2=[4-6], D3=[7-8])
|
2026-07-05 17:27:59 +00:00 |
|