Abstract

We give a simple and efficient algorithm for adaptively counting inversions in a sequence of nn integers. Our algorithm runs in O(n+nlg⁡(Inv/n))O(n + n \sqrt{\lg{(Inv/n)}}) time in the word-RAM model of computation, where InvInv is the number of inversions.

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.