Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

StackOverflow Point

StackOverflow Point Navigation

  • Web Stories
  • Badges
  • Tags
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Web Stories
  • Badges
  • Tags
Home/ Questions/Q 1298
Alex Hales
  • 0
Alex HalesTeacher
Asked: May 30, 20222022-05-30T12:13:25+00:00 2022-05-30T12:13:25+00:00

algorithms – Accounting and potential methods in amortized analysis

  • 0

[ad_1]

I am still trying to improve the understanding of amortized analysis by students (as in a previous question). In many textbooks such as the CLRS, three methods are presented: aggregate, accounting, and potential. My question concerns the links and differences between accounting and potential method, and was actually inspired by questions from my students.

In the accounting method, one has to define a money cost for each operation, and show that at each step, the account contains enough money to pay for the actual cost of the operation. Otherwise stated, one needs to show that the account always has a nonnegative amount of money. To formally prove the nonnegativity of the account, a possibility that I like to present to my student is to relate the amount of money on the account with some quantity in the problem: For instance, for the amortized analysis of a binary counter, one can prove that the money on the account is always twice the number of 1 in the counter at each step.

My question: “My” proof technique makes the accounting method very close (almost identical) to the potential method. The money on the account defines more or less a potential function. From a pedagogical perspective (which is what I am interested in, of course), what is the best solution?

  • Present both methods as completely distinct, and maybe avoid “my” proof technique;
  • Present both methods separately and show that they are two ways of presenting the same idea;
  • Present the potential method, and then the accounting method as a way to define a potential function;
  • Something else…

[ad_2]

  • 0 0 Answers
  • 10 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report
Leave an answer

Leave an answer
Cancel reply

Browse

Sidebar

Ask A Question

Related Questions

  • xcode - Can you build dynamic libraries for iOS and ...

    • 0 Answers
  • bash - How to check if a process id (PID) ...

    • 5379 Answers
  • database - Oracle: Changing VARCHAR2 column to CLOB

    • 1169 Answers
  • What's the difference between HEAD, working tree and index, in ...

    • 1111 Answers
  • Amazon EC2 Free tier - how many instances can I ...

    • 0 Answers

Stats

  • Questions : 43k

Subscribe

Login

Forgot Password?

Footer

Follow

© 2022 Stackoverflow Point. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.