What would be the next cell in a 5*5 matrix that should be displayed after (1,5) for spiral traversing animation? (2,4) (2,5) (3,5) (1,6)
Answers
Answered by
3
Answer:
(1,5), (2,5), (3,5), (5,5), (4,5)
Step-by-step explanation:
Answered by
1
Answer:
The next cell in a 5*5 matrix that should be displayed after (1,5) will be (2,5) i.e. 16 17 18 19 6
Step-by-step explanation:
A spiral traversing animation matrix is formed by placing the numbers 1,2,3....N² in a spiral clockwise manner.
Here N = 5
=> N² = 25
So we have to arrange the numbers 1,2,3.....25 in the matrix like this:
[M]₅ₓ₅ = 1 2 3 4 5
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9
Hence we can see the next cell in a 5*5 matrix that should be displayed after (1,5) will be (2,5) i.e. 16 17 18 19 6
Similar questions