This commit is contained in:
Valentin Brandl 2022-04-01 10:31:21 +02:00
parent fefe95cab8
commit 3d49d16d45
2 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ func WeightedCrawlerList(crawlers ...Crawler) []string {
}
return crawlerIds
}
\end{minted}{go}
\end{minted}
This creates a list of crawlers where a crawler can occur more than once, depending on its capabilities.
The set of crawlers \(\{a, b, c\}\) with capabilities \(cap(a) = 3, cap(b) = 2, cap(c) = 1\) would produce \(<a, b, c, a, b, a>\), allocating two and three times the work to crawlers \(b\) and \(a\) respectively.

Binary file not shown.