I am solving a system of 6 linear equations containing six unknowns using mathematica. It is taking too much time and still running after 3 hours. can I estimate the approximate running time? Is there any method to minimize the running time of a programme?
If your program is already running, there is no way to estimate when it will finish.
If you need to estimate the running time for a function which takes inputs of different sizes, start with small inputs for which the function finishes fast. Measure the time using
AbsoluteTiming. Increase the size of the input, measure the time again. Obtain a few data points this way. Try to guess the complexity of the algorithm form the result and extrapolate to larger inputs.
How to minimize the running time of a program? This is answered here in great detail: