Can you please eloborate preparation of search matrix from input lines?
Here is the answer:
Re: Use the skip value and transform the given text as a matrix. The transformed matrix is written in colum major order. Number of rows in the matrix will be equal to the skip value.
For example consider text "THESE COURSES ARE FREE" And the skip value to be 5. Then the transformed matrix will be:
TCEF
HOSR
EUAE
SRRE
ESE
In this the first column of the transformed matrix is made of the first five letters - THESE, and the next column has the next five alpha characters.
Hi Leela, I am a little confused with the meaning of "skip value". From your inital explanation of the problem, I understood it to be the no. of columns in every row, but from the example you just gave, does it mean the no. of rows in every column?
skip value is used to generate the random letter matrix. skip value doesn't represent the number of columns, it represents the number of characters (rows) for every column. See the below response for more clarification.
from rseshu...
Can you please eloborate preparation of search matrix from input lines?
Here is the answer:
Re: Use the skip value and transform the given text as a matrix. The transformed matrix is written in colum major order. Number of rows in the matrix will be equal to the skip value.
For example consider text "THESE COURSES ARE FREE" And the skip value to be 5. Then the transformed matrix will be:
In this the first column of the transformed matrix is made of the first five letters - THESE, and the next column has the next five alpha characters.
I guess this make the solution clear.
Meaning of "skip value"
Hi Leela, I am a little confused with the meaning of "skip value". From your inital explanation of the problem, I understood it to be the no. of columns in every row, but from the example you just gave, does it mean the no. of rows in every column?
Re: Meaning of "skip value"
skip value is used to generate the random letter matrix. skip value doesn't represent the number of columns, it represents the number of characters (rows) for every column. See the below response for more clarification.
Thank you Leela, you
Thank you Leela, you clarified my doubt.
Post new comment