- #1
Sahil_John
- 7
- 1
A 4×3 matrix which has all elements empty, now I select any two consecutive elements until all elements are selected. I assign an index number (1 to 12) to the matrix element, in one row there are only 1,2,3 elements and 3 & 4 are not consecutive.
for example, if I select index 1 & 2 of the matrix, I get the first pattern. if I select 2 & 3 of the matrix, I get the second pattern, likewise 4 & 5, and so on. So, for the first-time selection of 2 consecutive elements, there is an 8 pattern (as shown in first_PIC).
Now, I have 8 patterns in which the first pattern has 1 & 2 index elements are fixed. now from this first pattern again I select 2 consecutive elements, I get 6 patterns (9 to 14 as shown in first_PIC). This process is repeated until all the possible patterns are created.
In the figure, I created manually 80 patterns for two consecutive elements but if I increase the size of the matrix, I cannot compute the number of patterns manually. I need an analytical formula for finding the total number of patterns. I attached a figure for the explanation. If anything you need to know let me know. Can anyone help me? Thank you
for example, if I select index 1 & 2 of the matrix, I get the first pattern. if I select 2 & 3 of the matrix, I get the second pattern, likewise 4 & 5, and so on. So, for the first-time selection of 2 consecutive elements, there is an 8 pattern (as shown in first_PIC).
Now, I have 8 patterns in which the first pattern has 1 & 2 index elements are fixed. now from this first pattern again I select 2 consecutive elements, I get 6 patterns (9 to 14 as shown in first_PIC). This process is repeated until all the possible patterns are created.
In the figure, I created manually 80 patterns for two consecutive elements but if I increase the size of the matrix, I cannot compute the number of patterns manually. I need an analytical formula for finding the total number of patterns. I attached a figure for the explanation. If anything you need to know let me know. Can anyone help me? Thank you