Skip to content

mos8afa/Coin-Change-Problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸͺ™ Coin Change Problem – Algorithms Comparison

This repository presents a small algorithm study of the classic Coin Change problem, implemented in Python 🐍.

Problem statement:
Given a set of coin denominations and a target amount, determine the
minimum number of coins needed to make that amount.
If it is not possible to form the amount using the given coins, return -1.

The goal of this repo is to compare two different approaches to solving this problem:

  • πŸ§ͺ Naive recursive solution – algorithm1.py
  • βš™οΈ Optimized dynamic-programming solution – algorithm2.py

The code is kept clean and minimal so that the focus stays on the core idea of each algorithm.


πŸ“ Repository Contents

  • algorithm1.py – naive recursive solution
  • algorithm2.py – optimized dynamic-programming solution
  • Coin_Change_Algorithms_Report.pdf – full detailed report, including:
    • formal problem definition and examples
    • pseudocode for both algorithms
    • time and space complexity analysis
    • experimental results, tables, and graphs πŸ“Š
    • discussion and conclusions

πŸ“„ Full Details

This README only gives a high-level overview.
For all explanations, proofs, measurements, and graphs,
please refer to the PDF report:
Coin_Change_Algorithms_Report.pdf βœ…

About

Python implementation and comparison of Coin Change algorithms (naive recursion vs dynamic programming) with a full PDF report and graphs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages