Abstract

The fragile complexity of a comparison-based algorithm is f(n)f(n) if each input element participates in O(f(n))O(f(n)) comparisons. In this paper, we explore the fragile complexity of algorithms adaptive to various restrictions on the input, i.e., algorithms with a fragile complexity parameterized by a quantity other than the input size n. We show that searching for the predecessor in a sorted array has fragile complexity Θ(log⁡k)Θ(\log k), where kk is the rank of the query element, both in a randomized and a deterministic setting. For predecessor searches, we also show how to optimally reduce the amortized fragile complexity of the elements in the array. We also prove the following results: Selecting the kk-th smallest element has expected fragile complexity O(log⁡log⁡k)O(\log \log k) for the element selected. Deterministically finding the minimum element has fragile complexity Θ(log⁡(Inv))Θ(\log(Inv)) and Θ(log⁡(Runs))Θ(\log(Runs)), where InvInv is the number of inversions in a sequence and RunsRuns is the number of increasing runs in a sequence. Deterministically finding the median has fragile complexity O(log⁡(Runs)+log⁡log⁡n)O(\log(Runs) + \log \log n) and Θ(log⁡(Inv))Θ(\log(Inv)). Deterministic sorting has fragile complexity Θ(log⁡(Inv))Θ(\log(Inv)) but it has fragile complexity Θ(log⁡n)Θ(\log n) regardless of the number of runs.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.