coordinate representation

[[concept]]
Coordinate (COO)rdinate Representation

A can become a set of |E| tuples of the form (row index,column index,value). So this matrix becomes the ordered set of these tuples, sorted by row and then column index.

This can be better from a memory perspective, but can still be quite large if we have a few nodes with high degree. A nice solution to this is to use compressed sparse row representation instead.

Example

A=[12026000191426190001407]

can become
(0,0,12),(0,2,26),(1,2,19),(1,3,14),(2,0,26),(2,1,19),(3,1,14),(3,3,7)

Mentions

File
compressed sparse row representation
sparse matrix representation
2025-02-12 graphs lecture 7
2025-02-17 graphs lecture 8
Homework 3