This is a project I worked on last year. It is an algorithm to to show the best way to cut small pieces of paper out of a larger piece. I wrote the algorithm in C# then used System.Drawing.Imaging to to demo its output on an ASP.NET page.
The project is also available as an iPad/iPhone app, named Smart Cutter.
Here were the project's requirements:
BigSheetWidth, BigSheetHeight, SmallSheetWidth, SmallSheetHeight
Output: A graphical representation of the most efficient paper setup.
This algorithm is for a printing estimator program, and its objective is to show the best way to cut small pieces of paper out of a larger piece. BigSheetWidth x BigSheetHeight are the dimensions of the bigger sheet of paper. For example 24x36 inches (all sizes in this application are in inches)
SmallSheetWidth x SmallSheetHeight are the dimensions of the smaller piece of paper which we intend to cut out of the bigger piece above. For example 8.5x11 (Normal A4 paper)
So the output on input such as above should be a graphical representation and also a number representing the total small sheets you can get out of the big sheet (the most efficient method)
Output: There can be at most 8 sheets of 8.5x11 cut out of a 24x36 paper.
There can be at most 8 sheets of 8.5x11 cut out of a 28x40 paper.
There can be at most 10 sheets of 8.5x11 cut out of a 28x40 paper.
If you are interested in purchasing the algorithm, just send me a note here, and I'll be glad to send it over.
Algorithm #105 Demo