Explore BrainMass
Share

Explore BrainMass

    A basic overview of algorithm analysis

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    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
    https://brainmass.com/computer-science/sorting/basic-overview-algorithm-analysis-284625

    Solution Preview

    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 ...

    Solution Summary

    This solution provides a high-level, basic discussion of how algorithms can be compared.

    $2.19