This is homework.
The problem: A program has 20% memory accesses, 50% multiplications, and the rest for other functions not related to either. If an overall speedup of 1.2 is desired, how much speedup would be required for both memory accesses and multiplication if both were improved equally.
I think I know how to do this if I'm looking for the speedup in one or the other using Amdahl's law, but I'm not sure how to approach this problem to find the speedup for each if they are improved equally.
If it was just looking for memory accesses, I think I would solve the following equation for x:
1.2 = 1/[(1 - 0.2) + 0.2/x]
Is the key to combine the two percentages and use 0.2 + 0.5 = 0.7
in Amdahl's law?