Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

As you will realize very soon, a two-dimensional array is nothing more than the

ID: 3556847 • Letter: A

Question

As you will realize very soon, a two-dimensional array is nothing more than the arrangement of a group of variables along a grid. Each variable occupies a specific row and column. On top of this "geometrical" arrangement, two-dimensional array elements obviously share a common name and data type. The elements of the array are only differentiated by two indexes that are included within square brackets. One index identifies the row, the other identifies the column. What type of problems would a two-dimensional array be suitable for? Please make sure that you give all the necessary details as to why a two-dimensional array would be useful in the particular problem you think might benefit from this type of array. What does a row in your two-dimensional array represent? How about a column, what does it represent?

Explanation / Answer

1) The two dimentional array problems are useful in graph problems and also in the matrix type problems and when the data you have to store with two different key values like x,y .

2) In graph both represents all the vertices and in matrix the elments in the respective order

3) for row all the vertices and also in column all the vertices and value 1,0 represents the edge is present or not respectively

4) similar for column

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote