Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.03 KB

README.md

File metadata and controls

31 lines (19 loc) · 1.03 KB

AmortizedAnalysis


Live Demo

This repository contains the source code for Amortized Analysis project consisting of :
  • Javascript src code
  • Jupyter Notebook
  • Python Files

  • Amortized analysis is a method of analyzing the costs associated with a data structure that averages the worst operations out over time. Often, a data structure has one particularly costly operation, but it doesn't get performed very often. That data structure shouldn't be labeled a costly structure just because that one operation, that is seldom performed, is costly.

    There are three types of amortized analysis:

  • aggregate analysis :
  • Averaging the time complexity.
    

  • accounting method :
  • Credit - Debit.
    

  • potential method :
  • Work done is proprtional to the Potential Energy.
    

    Author::Gaurav Sharma

    Feel free to star this repo & I would love to collaborate! Just create a PR!