Skip to content
Research Article Open access CC BY 4.0

A Simple Method for Calculations of the Number of Inversions in Permutation

Dominik Strzałka

Current Journal of Applied Science and Technology · pp. 313–317 · Published 21 May 2015

10.9734/BJAST/2015/17570

Abstract

The aim of this paper is to show the recurrence method for obtaining the number of inversions In(k) in input sets with different sizes n, when the information about In-1(k) is given. The proposed method is based on a simple observation that the use of recursive approach gives an elegant way for obtaining those numbers in contradiction to the so far existing approach based on binomial coefficients and pentagonal numbers. The complexity of this method is O(n3). The results of this proposal can be used for interesting exercises in education of maths and also for problem of inversions description in sorting algorithms.

Inversions combinatorics

Cited by 0

No indexed citations yet.

Article metrics

Real usage data collected on this platform.

0

Page views

0

PDF downloads

0

Outbound clicks

0

Citations

Views by country

Approximate, from request IP at view time — not citizenship or institution. Countries with fewer than 5 views are grouped as "Other".

No views recorded yet.

Traffic sources

Referring site, by host.

No traffic recorded yet.

Views and downloads exclude known bots/crawlers. Citations combines this platform's own DOI-resolved index with each external source's own reported total — see Cited by above for individually listed citing works. Last refreshed 0 seconds ago.