You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need a method to order songs optimally in order to minimize empty space in pages and avoid spreading songs on multiple pages. Similar to the rod cutting problem but not exactly the same.
The text was updated successfully, but these errors were encountered:
defget_fits(song_list, page_len):
fits=# all song combinations that fit in page_lengrps=# [(f, song_list \ f) for f in fits]returngroups# Build tree with each g in groups as a leaf of song_list, then we can use the tree to find the best fit
Need a method to order songs optimally in order to minimize empty space in pages and avoid spreading songs on multiple pages. Similar to the rod cutting problem but not exactly the same.
The text was updated successfully, but these errors were encountered: