231
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
top 5 comments
sorted by: hot top new old
[-] [email protected] 15 points 1 year ago
[-] [email protected] 2 points 1 year ago
[-] [email protected] 3 points 1 year ago

Do I understand this correctly, that the first astronaut's realization is that all data structures are graphs?

If yes, that doesn't make much sense. How is an array a graph?

[-] [email protected] 1 points 1 year ago

One could make the case that we can transform an k size array to a k-vertex-connected graph

Because traversing from one element to any other element is an O(1) operation using index arithmetics.

Same for n dimensional matrices.

[-] [email protected] 2 points 1 year ago

its all category theory

this post was submitted on 10 May 2024
231 points (97.9% liked)

Programmer Humor

36769 readers
395 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS