Search for Science Fair Projects

1000 Science Fair Projects with Complete Instructions

Applied Mathematics Science Fair Project

Coin Change Combinations and Fast Algorithms

Hard
Coin Change Combinations and Fast Algorithms | Science Fair Projects | STEM Projects
How many different ways can you make change for a dollar using five types of coins? The answer is 292. For ten thousand dollars the number explodes to over 666 quadrillion. You write a computer program that tests every possible combination of pennies, nickels, dimes, quarters, and half-dollars. This brute-force approach works but runs very slowly. So you search for patterns in the results. You find that the five-coin problem connects to simpler four-coin and three-coin problems. A new program based on these patterns runs over 26,000 times faster. It solves the ten-thousand-dollar problem in less than an hour.

Hypothesis

The hypothesis is that there are a finite number of ways to make change for a given amount of money using the five U.S. coins.

Method & Materials

You will write a computer program to determine the number of ways to make change for various amounts of money using the five U.S. coins. You will then search for patterns in the numbers of solutions and use them to create a new, faster program.
You will need a computer, a Fortran program, and the five U.S. coins.

MEL Mathhands-on math experiment kits delivered monthly — makes abstract concepts tangible. (Affiliate link)

See whats included

Results

The results of this project showed that there is a finite number of ways to make change for a given amount of money using the five U.S. coins. An efficient algorithm was found that determined the number of solutions for the original 5 coin problem by relating it to the simpler 4 coin problem, and then to the even simpler 3 coin problem. For $5.00, the new program ran over 26,000 times faster than the original program and even faster for larger amounts.

Why do this project?

This science project is interesting and unique because it uses a computer program to solve a mathematical problem. It also shows how patterns in the data can be used to create a faster program.

Also Consider

Experiment variations to consider include testing different amounts of money and using different coins.

Full project details

Additional information and source material for this project are available below.
Share this Science Project:

Related Science Fair Project Ideas

Earnings Data and Stock Price Prediction
Score 108 stocks with a math-based rating system and test whether the equations can beat the market over five years.
Hard
Rubik's Cube Disorder and Repeated Move Sequences
Simulate a Rubik's Cube on a computer and discover that its scramble pattern follows a polynomial equation as you repeat the same moves.
Hard
Buying vs. Renting at Different Incomes
Model four income levels against real housing prices to discover whether buying or renting builds more wealth over 30 years.
Hard
Share this Science Project: