An Algorithm is a set of steps that defines how a task must perform to produce expected results. An algorithm can be represented in many ways. A computer program is a formal representation of an algorithm. There are many ways of programming a single problem. Thus, many different algorithms can be developed to solve the same problem. However, all algorithms are not equal. A non-technical friend has asked whether some algorithms are better than others. Discuss what makes one algorithm better than another.© BrainMass Inc. brainmass.com October 10, 2019, 12:15 am ad1c9bdddf
There are a few factors that can be used to compare different algorithms. The two most common factors are those of time and space. The time factor indicates how long the algorithm will take to run. Consider two common sorting algorithms: bubble sort, quick sort. Both algorithms will ...
This solution provides a high-level, basic discussion of how algorithms can be compared.