Study on Conjunctive Queries Accepted at the ACM Symposium on Theory of Computing

May, 2021.- The article “When is Approximate Counting for Conjunctive Queries Tractable?”, by Marcelo Arenas, academic at U. Católica and IMFD director; Luis Alberto Croquevielle, master’s graduate from U. Católica and IMFD; Rajesh Jayaram, PhD student at Carnegie Mellon University, and Cristian Riveros, academic at U. Católica and IMFD researcher was accepted at the 53rd ACM Symposium on Theory of Computing 2021, which will be held virtually in June of this year. In this research work, solutions are proposed for certain types of queries in database systems, conjunctive queries or “conjunctive queries”, which form the most widely used and studied class of queries in this type of system.
The ACM Symposium on Theory of Computing (STOC) is the most important international conference in the field of theoretical computer science.

Regarding the research, Marcelo Arenas explains: “Database development usually involves trying to obtain complete and precise answers to queries. If, for example, we wanted a database to give us the list of students in a course, we need it to deliver the complete list, not 90% of the information”. But when there are large volumes of information, the idea of calculating complete answers starts to lose meaning.

“For example, if I search for the list of people on Wikipedia, it gives many results, so it might be a better alternative to view the first 10 people, the next 10, and so on. Then, I might need to know which of them were born in a certain geographic region, which is a more complex query since it requires cross-referencing data”, he explains. And to get a general idea that allows us to better understand the group we want to study, it is important to know the total number of results, and to be able to visualize some of the cases.

In this context, to achieve meaningful answers from large amounts of information, a strategy is established that considers the integration of three complementary alternatives: being able to enumerate the results according to some criterion (having the first 10, the next 10, and so on); obtaining varied answers in their search characteristics with a certain degree of randomness; and being able to know the total number of results.

This is because algorithms that calculate answers to queries very quickly tend to be biased, since what they do is pre-compute something: “This means that when we ask for an answer, the algorithm already has something pre-computed, and when we ask for the next one, what it does is move within that same structure, delivering very similar answers”.

Therefore, to achieve a view that we could describe as real, it is necessary to have variety, which can be achieved by making a random selection of answers, considering a uniform distribution within the known universe. And, to know the size of the universe, we need to know the total number of results.

These types of problems are technical when raised at the database level, but they can have very relevant applications and uses for society, for example, when defining needs to create public policies. “To think that we are going to analyze all the databases available on different platforms to define who will benefit from a public policy is irrational. But we can, first, know the total number of people; then make queries that allow us to cross-reference data from different sources and characteristics -such as educational level and geographic location, coming even from different databases- and also visualize specific cases (always considering that all this data must be anonymized), for example, obtaining a certain number of cases by region, or municipality, that allow us to see geographic differences; we can then have a fairly complete idea based on real information, on which to base decisions.

In this work, the researchers focused on these three problems: enumeration, uniform generation, and counting. “We took them as three problems that need to be studied together. In general, these are difficult problems from a computational point of view, so what we did was propose a solution for a certain type of query”, that is why they focused on a fragment that allows addressing all three problems together: the class of conjunctive queries, which are the most common in databases and which allow cross-referencing data to understand it. “The idea of cross-referencing information -join- is a basic and important operation. In this article we demonstrate that it is possible to efficiently solve the problems of enumeration, uniform generation, and approximate counting for a class of queries that is very well defined, and that is very widely used”, explains Marcelo Arenas.

STOC covers all areas of research related to theories of computation and algorithms. The research highlighted by this group are those that expand the scope of theoretical computer science, or that raise important problems that can benefit from theoretical research and analysis.

Topics of interest include, among others: algorithms and data structures, computational complexity, randomness in computing, algorithmic graph theory and combinatorics, approximation algorithms, cryptography, computational learning theory, economics and computation, parallel and distributed algorithms, quantum computing, algorithmic coding theory, computational geometry, computational applications of logic, optimization, algebraic algorithms, and theoretical aspects of areas such as networks, privacy, computational biology, and databases.