Potential Method - Definition of Amortized Time

Definition of Amortized Time

In the potential method, a function Φ is chosen that maps states of the data structure to non-negative numbers. If S is a state of the data structure, Φ(S) may be thought of intuitively as an amount of potential energy stored in that state; alternatively, Φ(S) may be thought of as representing the amount of disorder in state S or its distance from an ideal state. The potential value prior to the operation of initializing a data structure is defined to be zero.

Let o be any individual operation within a sequence of operations on some data structure, with Sbefore denoting the state of the data structure prior to operation o and Safter denoting its state after operation o has completed. Then, once Φ has been chosen, the amortized time for operation o is defined to be

where C is a non-negative constant of proportionality (in units of time) that must remain fixed throughout the analysis. That is, the amortized time is defined to be the actual time taken by the operation plus C times the difference in potential caused by the operation.

Read more about this topic:  Potential Method

Famous quotes containing the words definition of, definition and/or time:

    It’s a rare parent who can see his or her child clearly and objectively. At a school board meeting I attended . . . the only definition of a gifted child on which everyone in the audience could agree was “mine.”
    Jane Adams (20th century)

    Although there is no universal agreement as to a definition of life, its biological manifestations are generally considered to be organization, metabolism, growth, irritability, adaptation, and reproduction.
    The Columbia Encyclopedia, Fifth Edition, the first sentence of the article on “life” (based on wording in the First Edition, 1935)

    Alicia Huberman: Look, I’ll make it easy for you. The time has come when you must tell me that you have a wife and two adorable children, and this madness between us can’t go on any longer.
    T.R. Devlin: I bet you’ve heard that line often enough.
    Alicia: Right below the belt every time. Oh that isn’t fair, Dev.
    Devlin: Skip it. We have other things to talk about. We have a job.
    Ben Hecht (1893–1964)