Get the latest tech news

SQL, Homomorphisms and Constraint Satisfaction Problems


Database queries are a pretty surprisingly powerful tool that can solve seemingly intractable problems.

The SELECT fields are bits that aren’t being existentially bound and therefore hidden, aka free variables. As a subcase of this capability, if the database is holding an edge table and attributes, then a query is a graph homomorphism solver. A class of CSP problems is allowing the connecvtivity graph to vary, while keeping the target (the types of constraints fixed).

Get the Android app

Or read this on Hacker News

Read more on:

Photo of SQL

SQL

Photo of homomorphisms

homomorphisms

Related news:

News photo

SQL style guide by Simon Holywell

News photo

Sampling with SQL

News photo

The Prompt() Function: Use the Power of LLMs with SQL