Recently, I had to fill out a very important application form. I had to add several values together and I ended with EUR 9004.00 as a result. However, I don't find the piece of paper where I had the values written down that I actually added. I only have the total values from which I did not add all.
So I need an algorithm that takes a list of floats as input and tells me the combinations that result in EUR 9004.00. I'm not a computer scientist so I don't know if there is an algorithm that would achieve this or whether this is an incredible task (because the computer would take too long).
I'm looking for a function like this:
def findCombinations(values:list, target_value:float) -> list):
...
Does an algorithm like this exist or do I have to find one myself? Also, is it reasonably possible?