Breaking Chocolate Bars

Break the given Chocolate Bar with minimum number of breaks.
894 Downloads
Updated 28 Oct 2009

View License

Assume you have a chocolate bar consisting, as usual, of a number of squares arranged in a rectangular pattern. Your task is to split the bar into small squares (always breaking along the lines between the squares) with a minimum number of breaks. How many will it take?

Cite As

Krishna Lalith (2024). Breaking Chocolate Bars (https://www.mathworks.com/matlabcentral/fileexchange/25668-breaking-chocolate-bars), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Strategy & Logic in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0