Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #17693, comment 36, 60: mention motivation asymptoic expansions …
Browse files Browse the repository at this point in the history
…in merge method
  • Loading branch information
dkrenn committed Sep 28, 2015
1 parent f1e9f9e commit ae0cad9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sage/data_structures/mutable_poset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3173,6 +3173,13 @@ def merge(self, key=None, reverse=False):
depth first iteration, i.e., once ``can_merge`` fails,
the successors/predecessors are no longer tested.
.. NOTE::
The motivation for such a merge behavior comes from
asymptotic expansions: `O(n^3)` is merges with, for
example, `3n^2` or `O(n)` to `O(n^3)` (as `n` tends to
`\infty`; see :wikipedia:`Big_O_notation`)
EXAMPLES::
sage: from sage.data_structures.mutable_poset import MutablePoset as MP
Expand Down

0 comments on commit ae0cad9

Please sign in to comment.