Nesting Algo: Find Formula for List & Target (520)

In summary, a Nesting Algorithm is a tool used to find a formula that can be applied to a list of numbers in order to match a given target number. It works by combining numbers in the list using mathematical operations until a match is found or all combinations have been exhausted. The advantages of using a Nesting Algorithm include time and effort savings, as well as gaining insight into data patterns. However, limitations may arise with large or complex lists, and the algorithm may not always find the most efficient formula. To optimize performance, more efficient mathematical operations, limited combinations, and pruning techniques can be used, along with advanced techniques like parallel processing.
  • #1
Arkamis17
1
0
Hey guys,

I'm searching a formula for this kind of situation :

We have a list of values (33,60,50,15,100) and a target (520). We want to know how many times each value can go in the target (close to) with those specifications :

- Maximum 2 different value at the time
- Minimum use of valuesI'm pretty sure, there is a formula out there that respond to our situation.
P.S.: Forgive my English speaking, it's not my primary language.
 
Mathematics news on Phys.org
  • #2
Your description of what you are looking for is very unclear. Give an example of what you are trying to describe.
 
  • Like
Likes platetheduke

FAQ: Nesting Algo: Find Formula for List & Target (520)

What is the purpose of a Nesting Algorithm?

A Nesting Algorithm is used to find a formula that can be applied to a list of numbers in order to match a given target number. This can be helpful in data analysis and problem-solving tasks.

How does a Nesting Algorithm work?

A Nesting Algorithm typically starts by taking the first number in the list and using it as the base number. It then combines this base number with other numbers in the list using mathematical operations such as addition, subtraction, multiplication, or division to create a new number. This new number is then compared to the target number to see if it matches. If it does not match, the algorithm repeats the process with a different combination of numbers until a match is found or all combinations have been exhausted.

What are the advantages of using a Nesting Algorithm?

A Nesting Algorithm can quickly find a formula for a given list and target number, which can save time and effort in solving problems or analyzing data. It can also provide insight into patterns and relationships within the data.

Are there any limitations to using a Nesting Algorithm?

One limitation of a Nesting Algorithm is that it may not always find a formula that matches the target number, especially if the list of numbers is large or complex. In some cases, there may be multiple formulas that match the target number, so the algorithm may not necessarily find the most efficient one.

How can a Nesting Algorithm be optimized for better performance?

There are several ways to optimize a Nesting Algorithm, including using more efficient mathematical operations, limiting the number of combinations to check, and implementing pruning techniques to eliminate redundant or unnecessary combinations. Additionally, using parallel processing or other advanced techniques can also improve the performance of the algorithm.

Similar threads

  • Sticky
Replies
0
Views
2K
Replies
5
Views
2K
Replies
15
Views
2K
Replies
3
Views
2K
Back
Top