Asking help from smart math people (Yet Again)
Go to solution
Solved by Dash Lambda,
20 minutes ago, wasab said:So algorithm, in words would look like this:
For every book, cost(i) = cost of placing this book and all the ones before on the shelf + the costs of all the bottom shelves(by recursively calling itself), assuming they are not greater than the width of the bookshelf of course. if cost is less than the current cost(i), replace that as the optimal solution..... right?
Yep, that's about right.
(Sorry I took so long to reply.)
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now