6 ms·
I'm sure you've stumbled upon graphs that are not trees, which can be represented with tables.
by stabbles 22d ago
I'm sure you've stumbled upon graphs that are not trees, which can be represented with tables.
- kqr 22d agoBut on the other hand table are represented with trees![1] [1]: https://en.wikipedia.org/wiki/B-tree#B-tree_usage_in_databases https://en.wikipedia.org/wiki/B-tree#B-tree_usage_in_databas...
- xelxebar 22d agoAnd those trees are usually represented as tables via an array of structs or similar. IMHO, the architecture of memory and memory access should push us more towards tables as a default data structure than trees.
- account42 22d agoEverything can be a tree with a single node that stores a blob of the data in whatever format you want.
- xelxebar 22d agoAs long as there are no self loops, then you can represent a graph with a set of spanning trees that cover the edges. This is particularly efficient when using a depth or parent vector tree representation and is seen in HPC applications.