Design then code in Java (or C or C++) an algorithm that can find the optimal execution of these three programs on these two available computers.

review article on Selenium
September 7, 2020
legal and contractual issues
September 7, 2020

Design then code in Java (or C or C++) an algorithm that can find the optimal execution of these three programs on these two available computers.

We need to execute in an optimal manner (in the fastest time) 3 programs on two available computers; we assume that these three programs have different sizes expressed in machine code instructions and the two computers have also different computing capacities expressed in machines code instructions per second.
1.Design then code in Java (or C or C++) an algorithm that can find the optimal execution of these three programs on these two available computers.
2.Generalize your algorithm such that it can find the optimal execution of N programs on M available computers where (M
<n).