Algorithm to find the best combination of items under certain constraints

前端 未结 7 1590
长情又很酷
长情又很酷 2021-01-06 14:22

I\'ll try to explain the problem in the math language.
Assume I have a set of items X = {x_1, x_2, ..., x_n}. Each item of X belongs to one of

7条回答
  •  天涯浪人
    2021-01-06 14:53

    I don't got the answer because you asked very abstract question but I will give you an idea.

    Try think multiThreading. For instance you can create a thread pool with a limited number of threads. Then find a recursion solution and start new task for each loop when you are diving inside.

    I am saying as you be able to split this problem to many small task as better your algorithm will be.

    Think problematically not mathematically!

提交回复
热议问题