How would an AI understand grids?

OK, now I think an AI must view grids in a different way to computers.

For example a computer would represent a grid like this:

cells = [[1,2,3],[4,5,6],[7,8,9]] = [row1,row2,row3]


That is a grid is 3 rows of 3 cells.

But... that's not how a human sees it. A human sees a grid as made of 3 rows and 3 collumns somehow intersecting.

If an AI is built on some mathematical logic like set theory, it's like a set of rows which in turn is a set of cells.

So what would be a way to represent a grid in a computer that is more "human". And doesn't favor either rows or columns? Or is there some mathematical or programmatical description of a grid that treats rows and columns as equivalent?

• If I understand you correclty, you are wondering if there is a way of describing a 2-dimensional surface without choosing which dimension is the first to be indexed? So you don't want to pick (x, y) vs (y, x) but have some other way of defining position in a grid? – Neil Slater Sep 21 '19 at 7:47