You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there might be value in consolidating the logic for the leader selections, purely for readability and encapsulation (reducing surface for possible bugs).
Def of done
provide an extendable leader selection, that in addition memorizes the rng and has a slice of extensions, where each extension is its own leader selection
we already have a binarySearchStrictlyBigger method that can be copied and extended to work on the extension and find the leader-selection, whose range contains the requested view
in documentation of binarySearchStrictlyBigger replace "non-decreasing" by "monotonically increasing" (for every indices i,j with i<j we must have arr[i] ≤ arr[j])
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
PR comment suggesting dynamic leader extension
Def of done
provide an
extendable leader selection
, that in addition memorizes the rng and has a slice ofextensions
, where each extension is its own leader selectionbinarySearchStrictlyBigger
method that can be copied and extended to work on the extension and find the leader-selection, whose range contains the requested viewin documentation ofbinarySearchStrictlyBigger
replace "non-decreasing" by "monotonically increasing" (for every indices i,j with i<j we must have arr[i] ≤ arr[j])The text was updated successfully, but these errors were encountered: