Strzałka, Dominik (2015) A Simple Method for Calculations of the Number of Inversions in Permutation. British Journal of Applied Science & Technology, 9 (3). pp. 313-317. ISSN 22310843
![[thumbnail of Dominik932015BJAST17570.pdf]](http://core.ms4sub.com/style/images/fileicons/text.png)
Dominik932015BJAST17570.pdf - Published Version
Download (508kB)
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.
Item Type: | Article |
---|---|
Subjects: | Digital Academic Press > Multidisciplinary |
Depositing User: | Unnamed user with email support@digiacademicpress.org |
Date Deposited: | 08 Jun 2023 12:37 |
Last Modified: | 13 Sep 2025 03:48 |
URI: | http://core.ms4sub.com/id/eprint/1426 |