Content deleted Content added
Mark viking (talk | contribs) Adding local short description: "Algorithm for selecting the best sources for time estimation", overriding Wikidata description "agreement algorithm used to select sources for estimating accurate time from a number of noisy time sources" (Shortdesc helper) |
Remove out of place unused ref that had been copied to the wrong place |
||
(12 intermediate revisions by 12 users not shown) | |||
Line 1:
{{short description|Algorithm for selecting the best sources for time estimation}}
The '''intersection algorithm''' is an
Equipment Corporation, 1989.</ref>
While Marzullo's algorithm will return the smallest interval consistent with the largest number of sources, the returned interval does not necessarily include the center point (calculated offset) of all the sources in the intersection. The
==Method==
Given ''M'' intervals of the form ''c'' ± ''r'' (which means [''c''−''r'',''c''+''r'']), the algorithm seeks to find an interval with ''M''−''f'' sources. The value ''f'' is referred to as the number of falsetickers, those sources which are in error (the actual value is outside the [[confidence band]]). The best estimate is that which assumes the
The intersection algorithm begins by creating a table of tuples <offset, type>. For each interval there are three entries: the lower endpoint, the midpoint and the upper endpoint, labelled with types −1, 0 and +1 respectively. Thus the interval ''c'' ± ''r'' results in the entries <''c''−''r'',−1>, <''c'',0> and <''c''+''r'',+1>. These entries are then sorted by offset.
Variables: This algorithm uses ''f'' as number of false tickers, ''endcount'' and ''midcount'' are integers. ''Lower'' and ''upper'' are values of offsets.
<ol start="0">
<li>[increment number of falsetickers] ''f'' = ''f''+1. If ''f'' ≥ ''M''/2 then terminate and return FAILED, otherwise goto step 1.</li>
</ol>
==References ==
|