Get the latest tech news

Not all graphs are trees


It's pretty easy to imagine how to represent relational algebra expressions as a tree—they are already structurally rooted trees where each operator has its...

April 29, 2024 It's pretty easy to imagine how to represent relational algebra expressions as a tree—they are already structurally rooted trees where each operator has its inputs as children. And then the language can provide an explicit "fixpoint" operator that takes an initial state and the lambda to iterate to close the loop for us: If we want the full flexibility of graph construction, we can go all the way to how something like Datalog works, where we simply write out each edge explicitly.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Graphs

Graphs

Photo of trees

trees

Related news:

News photo

Modal is a matrioshka language based on pattern-matching to rewrite trees

News photo

Exploring batch caching of trees

News photo

Writer’s latest models can generate text from images, including charts and graphs