GO-V.ORG
As seen in

Marzullo's algorithm

Marzullo's algorithm, invented by Keith Marzullo for his Ph.D.[src] dissertation in 1984, is an agreement algorithm used to select sources for estimating accurate time from a number of noisy time sources.[src] A refined version of it, renamed the "intersection algorithm", forms part of the modern Network Time Protocol.[src] Marzullo's algorithm is also used to compute the relaxed intersection of n boxes (or more generally n subsets of R n ), as required by several robust set estimation methods.[src]

Marzullo's algorithm, invented by Keith Marzullo for his Ph.D.[src] dissertation in 1984, is an agreement algorithm used to select sources for estimating accurate time from a number of noisy time sources.[src] A refined version of it, renamed the "intersection algorithm", forms part of the modern Network Time Protocol.[src] Marzullo's algorithm is also used to compute the relaxed intersection of n boxes (or more generally n subsets of R n ), as required by several robust set estimation methods.[src] ==Purpose== Marzullo's algorithm is efficient in terms of time for producing an optimal value from a set of estimates with confidence intervals where the actual value may be outside the confidence interval for some sources.[src] In this case the best estimate is taken to be the smallest interval consistent with the largest number of sources.[src] If we have the estimates 10 ± 2, 12 ± 1 and 11 ± 1 then these intervals are [8,12], [11,13] and [10,12] which intersect to form [11,12] or 11.5 ± 0.5 as consistent with all three values.[src] If instead the ranges are [8,12], [11,13] and [14,15] then there is no interval consistent with all these values but [11,12] is consistent with the largest number of sources — namely, two of them.[src] Finally, if the ranges are [8,9], [8,12] and [10,12] then both the intervals [8,9] and [10,12] are consistent with the largest number of sources.[src] This procedure determines an interval.[src] If the desired result is a best value from that interval then a naive approach would be to take the center of the interval as the value, which is what was specified in the original Marzullo algorithm.[src] A more sophisticated approach would recognize that this could be throwing away useful information from the confidence intervals of the sources and that a probabilistic model of the sources could return a value other than the center.[src] Note that the computed value is probably better described as "optimistic" rather than "optimal".[src] For example, consider three intervals [10,12], [11, 13] and [11.99,13].[src] The algorithm described below computes [11.99, 12] or 11.995 ± 0.005 which is a very precise value.[src] If we suspect that one of the estimates might be incorrect, then at least two of the estimates must be correct.[src] Under this condition, the best estimate is [11,13] since this is the largest interval that always intersects at least two estimates.[src] The algorithm described below is easily parameterized with the maximum number of incorrect estimates.[src] ==Method== Marzullo's algorithm begins by preparing a table of the sources, sorting it and then searching (efficiently) for the intersections of intervals.[src] For each source there is a range [c−r,c+r] defined by c ± r.[src] For each range the table will have two tuples of the form .[src] One tuple will represent the beginning of the range, marked with type −1 as and the other will represent the end with type +1 as .[src] The description of the algorithm uses the following variables: best (largest number of overlapping intervals found), cnt (current number of overlapping intervals), beststart and bestend (the beginning and end of best interval found so far), i (an index), and the table of tuples.[src] Build the table of tuples.[src] Sort the table by the offset.[src] (If two tuples with the same offset but opposite types exist, indicating that one interval ends just as another begins, then a method of deciding which comes first is necessary.[src] Such an occurrence can be considered an overlap with no duration, which can be found by the algorithm by putting type −1 before type +1.[src] If such pathological overlaps are considered objectionable they can be avoided by putting type +1 before −1 in this case.) [initialize] best=0 cnt=0 [loop] go through each tuple in the table in ascending order [current number of overlapping intervals] cnt=cnt−type[i] if cnt>best then best=cnt beststart=offset[i] bestend=offset[i+1] commentary: the next tuple, at [i+1], will either be an end of an interval (type=+1) in which case it ends this best interval, or it will be a beginning of an interval (type=−1) and in the next step will replace best.[src] ambiguity: unspecified is what to do if best=cnt.[src] This is a condition of a tie for greatest overlap.[src] The decision can either be made to take the smaller of bestend−beststart and offset[i+1]−offset[i] or just take an arbitrary one of the two equally good entries.[src] This decision is relevant only when type[i+1]=+1.[src] [end loop] return [beststart,bestend] as optimal interval.[src] The number of false sources (ones which do not overlap the optimal interval returned) is the number of sources minus the value of best.[src] ==Efficiency== Marzullo's algorithm is efficient in both space and time.[src] The asymptotic space usage is O(n), where n is the number of sources.[src] In considering the asymptotic time requirement the algorithm can be considered to consist of building the table, sorting it and searching it.[src] Sorting can be done in O(n log n) time, and this dominates the building and searching phases which can be performed in linear time.[src] Therefore, the time efficiency of Marzullo's algorithm is O(n log n).[src] Once the table has been built and sorted it is possible to update the interval for one source (when new information is received) in linear time.[src] Therefore, updating data for one source and finding the best interval can be done in O(n) time.[src]

45 sentences · 45 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Marzullo's algorithm." encyclopegia.org, 2024, https://encyclopegia.org/wiki/marzullo-s-algorithm. Accessed 04 December 2026.

Chicago

"Marzullo's algorithm." encyclopegia.org. Accessed December 4, 2026. https://encyclopegia.org/wiki/marzullo-s-algorithm.

APA

encyclopegia.org. (2024). Marzullo's algorithm. Retrieved December 4, 2026, from https://encyclopegia.org/wiki/marzullo-s-algorithm

Accessed December 4, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1262253269 · 0.5 · snapshot enwiki-001262253269

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.