Completed

Find Optimal combination between 150 numbers , range between 3 and 12, that sum 25 - Please use Delphi

Published on the July 19, 2016 in IT & Programming

About this project

Open

1 ) Create a function that receive an array of 150 integers - ranged between 3 and 13

The program will process all the combination that sum 25.

2) With these combinations , process all the combinations to fit 3 slots, as described by some examples:

Scenario 1:

SetNum {1,3,6,7} - Sum 25 - Slot 1 -
SetNum {4,5,9}  - Sum 25 - Slot 2 -  {Please note that the item coundn't be duplicated}

Scenario 2:

SetNum {1,4,6,7} - Sum 25 - Slot 1
SetNum {5,8,9}  - Sum 25 - Slot 2
SetNum {2,10, 11} - Sum 25 - Slot 3
SetNum {12,17} - Sum 25 - Slot 1

Rules to optimal result:

Sets with 2 Nums=  1000 points
Sets with 5 Nums=  2000 points
Nums Not used = - 200 points
Sets with 3 or 4 Nums = 500 points.

The best solution is the highest point.

Please use Delphi and OOP

Category IT & Programming
Subcategory Desktop apps
What is the scope of the project? Create a new app
Is this a project or a position? Project
I currently have I have specifications
Required availability As needed
Experience in this type of projects Yes (I have managed this kind of project before)
Required platforms Windows

Delivery term: Not specified

Skills needed