| | |
Please reply ASAP :( !!
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
![]() |
•
•
Join Date: Aug 2007
Posts: 63
Reputation:
Solved Threads: 0
Dear All,
My question is about Accounting method-in Amortized Analysis
Im studying the "Introduction to Algorithms book",
I finding some problems understanding the idea behind the "Accounting argument " in the Amortized chapter.
i understood the example of the stack and how it goes...but the thing i didnt understand is "SO WHAT I GRAP A PAPER AND ASSIGN AN AMORTIZED COST FOR THE PUSH TO BE 2 AND POP AND MULTIPOP TO BE ZERO"....
operation ................ actual cost............... amortized cost....
PUSH ...........................1...............................2....
POP..............................1...............................0...
MULTIPOP.....................min(k,s)..................... 0....
after all , when i run the code each of the operation will take time...pop and multipop would still costs us some time !...( there is no way they will cost us 0!!!!!)
i dont get the USE behind we overcharge some operations on a PAPER and then do the analysis ! ..i mean the code and the running time would still be the same...because inside the computer i CANNOT charge an operation ! .... please help me understand the concept...because once i do...the "potentiall method " should become easier to grasp too.
thank you in advance
My question is about Accounting method-in Amortized Analysis
Im studying the "Introduction to Algorithms book",
I finding some problems understanding the idea behind the "Accounting argument " in the Amortized chapter.
i understood the example of the stack and how it goes...but the thing i didnt understand is "SO WHAT I GRAP A PAPER AND ASSIGN AN AMORTIZED COST FOR THE PUSH TO BE 2 AND POP AND MULTIPOP TO BE ZERO"....
operation ................ actual cost............... amortized cost....
PUSH ...........................1...............................2....
POP..............................1...............................0...
MULTIPOP.....................min(k,s)..................... 0....
after all , when i run the code each of the operation will take time...pop and multipop would still costs us some time !...( there is no way they will cost us 0!!!!!)
i dont get the USE behind we overcharge some operations on a PAPER and then do the analysis ! ..i mean the code and the running time would still be the same...because inside the computer i CANNOT charge an operation ! .... please help me understand the concept...because once i do...the "potentiall method " should become easier to grasp too.
thank you in advance
![]() |
Similar Threads
- Seeking Talented Graphic Web Deigner (Web Development Job Offers)
- Need help ASAP!! (C++)
- How to Enable/Disable Users thro' C++ or any code (C++)
- Need Help Correcting These errors (PHP)
- Help needed(ASAP) (IT Professionals' Lounge)
- Frame Grabbing from video using Java JMF (Java)
- hidden file folder comes up at logon everytime... (Viruses, Spyware and other Nasties)
- about blank ... (Viruses, Spyware and other Nasties)
- Belkin F5D6020 PCMCIA with Intel AnyPoint Problems (Troubleshooting Dead Machines)
Other Threads in the Computer Science Forum
- Previous Thread: Linked list
- Next Thread: A branch and bround algorithm
| Thread Tools | Search this Thread |
ai algorithm algorithms amazon assignment assignments automata battery bigbrother binary bizarre bletchleypark blogging bomb business cern codebreaker compiler computer computers computerscience computertrackingsoftware connect conversion csc data dataanalysis dataintepretation development dfa dissertation dissertationthesis dissertationtopic ebook energy extensions floatingpoint foreclosure foreclosuresoftware fuel gadgets geeks givemetehcodez government graphics hardware history homeowners homeworkassignment homeworkhelp humor ibm idea ideas internet iphone ipod itcontracts jobs kindle laser laws linkbait lsmeans mainframes mining mobileapplication msaccess nano netbeans news os p2p piracy piratebay principles programming rasterizer research sam-being-cute sas science security sex simulation software spying sql stephenfry study supercomputer sweden technology textfield turing turingtest two'scompliment virus warehouse ww2





