the scenario likes this:
There is an algorithm called alg1, and another algorithm called alg2.
And there is an entry function called solve, how can I pass alg1 to solve then I can use alg1 to compute, and pass alg2 to compute with alg2?
solve(a, b, alg1) #return the results computed with alg1
solve(a, b, alg2) #return the results computed with alg2
Do I need to write the algorithms as functions?