Prikladnaya Diskretnaya Matematika. Supplement
RUS  ENG    JOURNALS   PEOPLE   ORGANISATIONS   CONFERENCES   SEMINARS   VIDEO LIBRARY   PACKAGE AMSBIB  
General information
Latest issue
Archive

Search papers
Search references

RSS
Latest issue
Current issues
Archive issues
What is RSS



Prikl. Diskr. Mat. Suppl.:
Year:
Volume:
Issue:
Page:
Find






Personal entry:
Login:
Password:
Save password
Enter
Forgotten password?
Register


Prikladnaya Diskretnaya Matematika. Supplement, 2017, Issue 10, Pages 145–149
DOI: https://doi.org/10.17223/2226308X/10/57
(Mi pdma331)
 

Mathematical Foundations of Informatics and Programming

Cyclic permutation of elements in one-dimensional array

V. V. Gotsulenko

Institute for Technical Thermal Physics, National Academy of Sciences of Ukraine, Kiev
References:
Abstract: In this paper, we obtain an expression for the smallest number $J(N,K)$ of pairwise permutations of elements in an one-dimensional $N$-element array for resulting in the array being cyclically shifted $k$ positions. An algorithm implementing this $k$-cyclic permutation is also constructed. For an arbitrary integer $i$, $0\le i<N$, let $\omega(i)$ denote the smallest integer for which $f^{(\omega(i))}(i)\ge i$, where $f(i)=i-k$ if $i\ge k$, and $f(i)=N(1+[k/N])-k+i$ otherwise. Then the smallest number $J(N,K)$ equals the cardinality of the set $\{i\colon N>i\ge0\ \&\ g(i)> i\}$, where the map $g\colon\{0,\dots,N-1\}\to\{0,\dots,N-1\}$ is given by the rule $g(i)=f^{(\omega(i))}(i)$ $(0\le i<N)$.
Keywords: one-dimensional array, $k$-cyclic permutation, pairwise permutation of array elements.
Document Type: Article
UDC: 004.021
Language: Russian
Citation: V. V. Gotsulenko, “Cyclic permutation of elements in one-dimensional array”, Prikl. Diskr. Mat. Suppl., 2017, no. 10, 145–149
Citation in format AMSBIB
\Bibitem{Got17}
\by V.~V.~Gotsulenko
\paper Cyclic permutation of elements in one-dimensional array
\jour Prikl. Diskr. Mat. Suppl.
\yr 2017
\issue 10
\pages 145--149
\mathnet{http://mi.mathnet.ru/pdma331}
\crossref{https://doi.org/10.17223/2226308X/10/57}
Linking options:
  • https://www.mathnet.ru/eng/pdma331
  • https://www.mathnet.ru/eng/pdma/y2017/i10/p145
  • Citing articles in Google Scholar: Russian citations, English citations
    Related articles in Google Scholar: Russian articles, English articles
    Prikladnaya Diskretnaya Matematika. Supplement
    Statistics & downloads:
    Abstract page:449
    Full-text PDF :189
    References:33
     
      Contact us:
     Terms of Use  Registration to the website  Logotypes © Steklov Mathematical Institute RAS, 2024