Top-nodes Algorithm - Performance

Performance

The advantage of this algorithm is that the time to register a new resource reservation depends only on the calendar size (it does not depend on the total number of reservations).

Let "n" be the number of elementary periods in the calendar.

The maximal number of "top-nodes" for a given reservation is 2.log n.

  • to check if an amount of resource is available during a specific period of time : O(log n)
  • to reserve an amount of resource for a specific period of time : O(log n)
  • to delete a previous reservation : O(log n)
  • to move the calendar forward : O(log n + M.log n)

where M is the number of reservations that are active during the added calendar periods.

(M = 0 if reservations are not allowed after the end of the calendar.)

Read more about this topic:  Top-nodes Algorithm

Famous quotes containing the word performance:

    The honor my country shall never be stained by an apology from me for the statement of truth and the performance of duty; nor can I give any explanation of my official acts except such as is due to integrity and justice and consistent with the principles on which our institutions have been framed.
    Andrew Jackson (1767–1845)

    The child to be concerned about is the one who is actively unhappy, [in school].... In the long run, a child’s emotional development has a far greater impact on his life than his school performance or the curriculum’s richness, so it is wise to do everything possible to change a situation in which a child is suffering excessively.
    Dorothy H. Cohen (20th century)

    True balance requires assigning realistic performance expectations to each of our roles. True balance requires us to acknowledge that our performance in some areas is more important than in others. True balance demands that we determine what accomplishments give us honest satisfaction as well as what failures cause us intolerable grief.
    Melinda M. Marshall (20th century)