Recent

Author Topic: Permutation of rows and columns of the 2D array  (Read 325 times)

user07022024

  • New Member
  • *
  • Posts: 15
Permutation of rows and columns of the 2D array
« on: December 11, 2025, 02:36:01 am »

Suppose that we have given 1D array C with permutation
and we want to permute rows and colums of 2D array A so that what was row k becomes row C[k]
and what was column C[k] becomes column k

This is part of algorithm presented in the Knuth's book
Extra 2D array not allowed only auxiliary 1D array is accepted








Zvoni

  • Hero Member
  • *****
  • Posts: 3230
Re: Permutation of rows and columns of the 2D array
« Reply #1 on: December 11, 2025, 08:33:20 am »
haven't understood a single a word
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

 

TinyPortal © 2005-2018