Preview

Algorithms

Satisfactory Essays
Open Document
Open Document
324 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Algorithms
In computer science, the analysis of algorithms is the determination of the amount of resources (such as time and storage) necessary to execute them. Most algorithms are designed to work with inputs of arbitrary length. Usually, the efficiency or running time of an algorithm is stated as a function relating the input length to the number of steps (time complexity) or storage locations (space complexity).

Algorithm analysis is an important part of a broader computational complexity theory, which provides theoretical estimates for the resources needed by any algorithm which solves a given computational problem. These estimates provide an insight into reasonable directions of search for efficient algorithms.

In theoretical analysis of algorithms it is common to estimate their complexity in the asymptotic sense, i.e., to estimate the complexity function for arbitrarily large input. Big O notation, Big-omega notation and Big-theta notation are used to this end. For instance, binary search is said to run in a number of steps proportional to the logarithm of the length of the list being searched, or in O(log(n)), colloquially "in logarithmic time". Usually asymptotic estimates are used because different implementations of the same algorithm may differ in efficiency. However the efficiencies of any two "reasonable" implementations of a given algorithm are related by a constant multiplicative factor called a hidden constant.

Exact (not asymptotic) measures of efficiency can sometimes be computed but they usually require certain assumptions concerning the particular implementation of the algorithm, called model of computation. A model of computation may be defined in terms of an abstract computer, e.g., Turing machine, and/or by postulating that certain operations are executed in unit time. For example, if the sorted list to which we apply binary search has n elements, and we can guarantee that each lookup of an element in the list can be done in unit time, then at

You May Also Find These Documents Helpful

  • Good Essays

    Pt2520 Unit 3 Metrics

    • 544 Words
    • 3 Pages

    In large software products, a measure is a number of functions used. Some studies showed that some programmer uses the same number of functions to solve given a problem. Another important part of the software is data processed. To understand the psychological complexity of software understanding the amount of data processed by the software is important. VARS is the count of all user defined is the variables used during program development. The average number of variables is the sum of the count of live variables divided by executable statement count. The span defines how many times the variable is used. Based on modules sharing data there are two software measurement types Fan-in which gives the number of modules pass data either indirectly or directly. Whereas Fan-out gives the number of modules to which data passed indirectly or directly. There also another measure which is called as decision count which gives the number of decision statement used in the program. Paths are also used to count the number of different ways the program can be…

    • 544 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Java Chapter 2 Quiz

    • 2047 Words
    • 9 Pages

    6. A(n) ____ is a value that is written into the code of a program.…

    • 2047 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    Computation and Reasoning

    • 1205 Words
    • 5 Pages

    Therefore consider the Actor -- Leading Role, Actress -- Leading Role, Best Picture and Directing in the years of 1973 and 1987.…

    • 1205 Words
    • 5 Pages
    Good Essays
  • Good Essays

    big o notation

    • 939 Words
    • 4 Pages

    Consider an algorithm having the given value as N, If N is the no of times or statements to be executed they are needed to be executed no of times as in sorting. The greater the value of N in the algorithm the slower the algorithm will take to execute with efficiency, the algorithm will definitely execute but will take larger amount of time compared to other algorithms having the same code with the smaller value of N. If even there is a loop function or two loop functions involved in an algorithm it is going to take a larger amount of time. This comparison can be also called as the Growth Rates of the value N in an algorithm. The N value in the algorithm can be of any mathematical expression depending on the mathematical expression the Growth Rates vary.…

    • 939 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Algorithm analysis is an important part of a broader computational complexity theory, which provides theoretical estimates for the resources needed by any algorithm which solves a given computational problem. These estimates provide an insight into reasonable directions of search for efficient algorithms.…

    • 564 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    * Alfred V, Aho J, Horroroft, Jeffrey DU (2002). Data Structures and Algorithms (India: Pearson Education Asia).…

    • 2162 Words
    • 9 Pages
    Powerful Essays
  • Better Essays

    The formal method of expressing the upper bound of an algorithm’s running time (worst case)…

    • 1429 Words
    • 6 Pages
    Better Essays
  • Powerful Essays

    Systems-on-a-chip (SOC) are comprised of a collection of pre-designed and preverified cores and user defined logic (UDL). As the complexity of systems-on-a-chip continues to increase, the difficulty and cost of testing such chips is increasing rapidly.…

    • 13186 Words
    • 53 Pages
    Powerful Essays
  • Powerful Essays

    Acknowledgements : Ahmad Abdullah, Pronoy Sikdar, Anshul Kamra, Sugam Agrawal & Students of DAA course 2006-07, Data Structures & Algorithms 2006-07.…

    • 3413 Words
    • 14 Pages
    Powerful Essays
  • Satisfactory Essays

    Our goal is to be able to compare algorithms and determine which is the most “efficient”. When we calculate the efficiency of an algorithm, we are essentially trying to quantify how computer resources are required. And the two most important computer resources are time and memory. Usually this is referred to as the computational complexity of the algorithm, and Time complexity is an analysis of the amount of time required to solve a problem of a particular size, while the Space complexity is an analysis of the amount of memory required. For the most part, we take computational complexity to mean Time complexity .…

    • 933 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lecture Note-Mcmc

    • 274 Words
    • 2 Pages

    If you think about an algorithm it terms of the sort of random exploration of the spaces to focus on the…

    • 274 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Introduction: Need of high speed computing – increase the speed of computers – history of…

    • 885 Words
    • 4 Pages
    Satisfactory Essays
  • Better Essays

    3. Goodrich, Michael T., and Roberto Tamassia. Algorithm design: foundations, analysis, and Internet examples. New York: Wiley, 2002. Print.…

    • 1510 Words
    • 7 Pages
    Better Essays
  • Best Essays

    Cosmic

    • 2232 Words
    • 9 Pages

    Software sizing is an activity in software engineering that is used to estimate the size of a software application or component in order to be able to implement other software project management activities (such as estimating or tracking). Size is an inherent characteristic of a piece of software just like weight is an inherent characteristic of a tangible material. Software sizing is different from software effort estimation. Sizing estimates the probable size of a piece of software while effort estimation predicts the effort needed to build it. The relationship between the size of software and the effort required to produce it is productivity.…

    • 2232 Words
    • 9 Pages
    Best Essays
  • Powerful Essays

    THE EFFICIENCY OF SOCIAL MEDIA AS A LEARNING TOOL FOR URDANETA CITY UNIVERSITY – COLLEGE OF COMPUTER STUDIES…

    • 9935 Words
    • 40 Pages
    Powerful Essays