How cs25b1074-stack/aiwp_project works
This is a debt-repayment planner that compares search strategies for paying down a loan and credit-card balance. Users enter income, savings, balances, and rates; the planner models monthly interest and repayment choices, searches for repayment paths, then reports interest, duration, and explored states. The CLI comparison is implemented in compare_all.py, while the Streamlit app has its own in-file solver and presents comparisons and repayment schedules. Individual algorithm scripts are standalone implementations, not modules called by the comparison runner. The UI wiring is only partly shown in the excerpts.
Main entry points: main.py CLI Launcher · compare_all.py CLI Comparison · streamlit_app.py Streamlit Application
Components 13
Entry Points
- CLI Launcher
main.py - CLI Comparison
compare_all.py
Search Implementations
- Web Search Solver
streamlit_app.py - A* Search
astar_debt.py - UCS Search
ucs_debt.py - BFS Search
bfs_debt.py - DFS Search
dfs_debt.py - Greedy Search
greedy_debt.py - BFS Variant
bfs_search.py - Search Template
starter.py
Results and Visualization
- Streamlit Application
streamlit_app.py - Comparison and Plans
streamlit_app.py
Other components
- Planner User
Connections 8
- Planner User → CLI Launcher: selects mode
README.md - CLI Launcher → CLI Comparison: imports for CLI
main.py - CLI Launcher → Streamlit Application: launches UI
main.py - Planner User → Streamlit Application: enters debt inputs
README.md - Streamlit Application → Web Search Solver: runs comparison
streamlit_app.py - Web Search Solver → Comparison and Plans: provides paths and metrics
streamlit_app.py - Planner User → CLI Comparison: enters debt inputs
compare_all.py - CLI Comparison → Comparison and Plans: prints algorithm comparison
compare_all.py