2
votes
Rank in a Convex Combination
By duality, this problem is equivalent to the halfplane range query problem.
For the worst-case complexity, there is a known space-time tradeoff of [1]:
$O(n^2/\log^2 n)$ data structure size and $O(\...
1
vote
Floyd's Cycle Detection Algorithm Proof In Laymen
Assume there is a cycle of length r, which is entered after m steps. Once you enter the cycle, you stay in the cycle. After either m steps, or after 1 step if m = r, both tortoise and hare are in the ...
1
vote
Floyd's Cycle Detection Algorithm Proof In Laymen
1. Detecting cycle using Floyd's cycle detection algorithm - for this we need answer to the question: what's the guarantee that the hare and the tortoise will meet?
2. Detecting the starting point of ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
algorithms × 10616graphs × 2061
algorithm-analysis × 920
optimization × 823
time-complexity × 729
data-structures × 699
complexity-theory × 618
sorting × 510
dynamic-programming × 497
computational-geometry × 433
shortest-path × 395
search-algorithms × 386
trees × 307
arrays × 296
runtime-analysis × 295
strings × 265
combinatorics × 243
greedy-algorithms × 228
approximation × 218
asymptotics × 209
reference-request × 209
graph-traversal × 189
np-complete × 185
randomized-algorithms × 180
correctness-proof × 173