Optimal inversion counting on int arrays

前端 未结 3 776
难免孤独
难免孤独 2021-02-08 23:30

Today I was looking the latest exam of the local informatics olympiad and I found a interesting problem. Briefly, it asks to, given an integer array, count how many inversions i

3条回答
  •  南旧
    南旧 (楼主)
    2021-02-09 00:09

    The best result in the literature is an O(n √(log n)) algorithm due to Chan and Patrascu. No idea about the constant.

提交回复
热议问题