Analysis of Algorithms


What about the Average Case?


Download 1.1 Mb.
bet2/3
Sana06.10.2023
Hajmi1.1 Mb.
#1693201
1   2   3
Bog'liq
pdf-1

What about the Average Case?

  • Idea:
    • Assume that each of the n! permutations of A is equally likely.
    • Compute the average over all possible different inputs of length N.
  • Difficult to compute!
  • In this course we focus on Worst Case Analysis!

See TimeComplexity Spreadsheet

  • Analysis of Algorithms

What is “goodness”?

  • Measure wall clock time
  • Count operations
  • Estimate Computational Complexity
  • Analysis of Algorithms
  • How can we quantify it?
  • Correctness
  • Minimum use of “time” + “space”

Asymptotic Analysis

  • Analysis of Algorithms
  • Uses a high-level description of the algorithm instead of an implementation
  • Allows us to evaluate the speed of an algorithm independent of the hardware/software environment
  • Estimate the growth rate of T(n)
  • A back of the envelope calculation!!!

The idea

  • Analysis of Algorithms

Growth Rate of Running Time

  • Analysis of Algorithms

Download 1.1 Mb.

Do'stlaringiz bilan baham:
1   2   3




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling