Skip to content

Resolve open issues: new algorithms, bug fix, tests#2719

Merged
keon merged 1 commit intomainfrom
fix/resolve-open-issues
Feb 17, 2026
Merged

Resolve open issues: new algorithms, bug fix, tests#2719
keon merged 1 commit intomainfrom
fix/resolve-open-issues

Conversation

@keon
Copy link
Owner

@keon keon commented Feb 17, 2026

Summary

Resolves all actionable open issues by adding new algorithms, fixing a bug, and enabling previously-commented-out tests.

Issues resolved

Issue Title Resolution
#256 strip_url_params3 bug Uncommented tests — bug was Python 3.5 dict ordering; works in 3.7+
#565 Dijkstra with priority queue Added dijkstra_heapq.py — O((V+E) log V) heap-based implementation
#908 Goldbach's conjecture Added goldbach.py — decompose even numbers into prime pairs
#829 Binary tree views Added binary_tree_views.py — left, right, top, and bottom views
#651 Square root decomposition Added sqrt_decomposition.py — O(√n) range sum queries with O(1) updates
#383 Multiple solutions protocol Closed — naming conventions already standardised across the repo

New files

  • algorithms/graph/dijkstra_heapq.py
  • algorithms/math/goldbach.py
  • algorithms/tree/binary_tree_views.py
  • algorithms/data_structures/sqrt_decomposition.py
  • tests/test_issue_fixes.py (32 new tests)

Test plan

  • All 520 tests pass (python -m pytest tests/ -x -q)
  • Ruff linter passes clean (ruff check .)
  • Each new algorithm has comprehensive tests in tests/test_issue_fixes.py
  • strip_url_params tests uncommented and passing in tests/test_string.py
  • All __init__.py exports updated
  • README updated with entries for all new algorithms + sqrt decomposition in data structures table

🤖 Generated with Claude Code

- Fix #256: uncomment strip_url_params tests (bug was Python 3.5 era dict
  ordering; works correctly in Python 3.7+)
- Fix #565: add heap-optimised Dijkstra in O((V+E) log V) using heapq
- Fix #908: add Goldbach's conjecture prime decomposition
- Fix #829: add binary tree views (left, right, top, bottom)
- Fix #651: add sqrt decomposition data structure for O(√n) range queries
- Close #383: naming conventions already standardised across the repo

Adds 32 new tests (520 total) and README entries for all additions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant