Python Forum
Dividing list into subsets
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dividing list into subsets
#4
10 sticks with 20 items is still only a few thousand combinations and takes nearly no time to compute. 20 sticks with 100 items is a different proposition. However, most of the partial solutions repeat over and over again and you could probably leverage that to reduce the calculations needed to find a solution.

If you use a recursive solution remember that Python maxes out at 1000 levels of recursion (I think).
Reply


Messages In This Thread
Dividing list into subsets - by Michael11 - Oct-01-2020, 12:26 PM
RE: Dividing list into subsets - by deanhystad - Oct-01-2020, 09:08 PM
RE: Dividing list into subsets - by Michael11 - Oct-02-2020, 06:43 AM
RE: Dividing list into subsets - by deanhystad - Oct-02-2020, 10:34 PM
RE: Dividing list into subsets - by DPaul - Oct-04-2020, 09:47 AM
RE: Dividing list into subsets - by Michael11 - Oct-04-2020, 10:23 AM
RE: Dividing list into subsets - by DPaul - Oct-04-2020, 05:13 PM
RE: Dividing list into subsets - by Katenn - Oct-04-2020, 06:13 PM
RE: Dividing list into subsets - by DPaul - Oct-05-2020, 06:34 AM
RE: Dividing list into subsets - by deanhystad - Dec-11-2020, 09:51 PM
RE: Dividing list into subsets - by deanhystad - Dec-12-2020, 06:18 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020