Giulia Bernardini
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Research Subjects
Giulia Bernardini has a total of 52 co-authors. Here are the top co-authors by number of shared publications:
- Solon P. Pissis
The Cyprus Institute
9 shared publications - Rocco Ascone
University of Trieste, trieste, Italy
7 shared publications - Luca Manzoni
University of Trieste
6 shared publications Nadia Pisanti
5 shared publicationsGiovanna Rosone
4 shared publications- Giovanna Rosone
Dipartimento di Informatica, University of Pisa, Pisa, Italy
4 shared publications
Latest Publications
- Open Access
- 28 April 2026
- Published by Springer Nature in Algorithms for Molecular Biology
- Vol. 21 (1)
Pattern matching with Elastic-Degenerate strings and Elastic-Founder graphs
Elastic Degenerate (ED) strings and Elastic Founder (EF) graphs, here collectively named variable strings, are two representations of acyclic components of
- 28 April 2026
- Published by Springer Nature in Algorithms for Molecular Biology
- Vol. 21 (1)
Open AccessPattern matching with Elastic-Degenerate strings and Elastic-Founder graphs
Elastic Degenerate (ED) strings and Elastic Founder (EF) graphs, here collectively named variable strings, are two representations of acyclic components of
- Open Access
- 18 January 2026
- Published by Elsevier in Swarm and Evolutionary Computation
- Vol. 101
A novel bio-inspired encoding for evolving cryptographic Boolean functions
- 18 January 2026
- Published by Elsevier in Swarm and Evolutionary Computation
- Vol. 101
Open AccessA novel bio-inspired encoding for evolving cryptographic Boolean functions
- Open Access
- 9 June 2025
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Management of Data
- Vol. 3 (2) , 1-27
Differentially Private Substring and Document Counting
Differential privacy is the gold standard for privacy in data analysis. In many data analysis applications, the data is a database of documents. For databases consisting of many documents, one of the most fundamental problems is that of pattern matching and computing (i) how often a pattern appears as a substring in the database ( substring counting ) and (ii) how many documents in the collection contain the pattern as a substring ( document counting ). In this paper, we initiate the theoretical study of substring and document counting under differential privacy. We give an ε-differentially private data structure solving this problem for all patterns simultaneously with a maximum additive error of O(𝓁 • polylog(n𝓁|Σ|)), where 𝓁 is the maximum length of a document in the database, n is the number of documents, and |Σ| is the size of the alphabet. We show that this is optimal up to a O(polylog(𝓃𝓁)) factor. Further, we show that for (ε,δ)-differential privacy, the bound for document counting can be improved to O(√𝓁 • polylog(𝓃𝓁|Σ|)). Additionally, our data structures are efficient. In particular, our data structures use O(𝓃𝓁 2 ) space, O(𝓃 2 𝓁 4 ) preprocessing time, and O(|P|) query time where P is the query pattern. Along the way, we develop a new technique for differentially privately computing a general class of counting functions on trees of independent interest. Our data structures immediately lead to improved algorithms for related problems, such as privately mining frequent substrings and q -grams. For q -grams, we further improve the preprocessing time of the data structure.
- 9 June 2025
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Management of Data
- Vol. 3 (2) , 1-27
Open AccessDifferentially Private Substring and Document Counting
Differential privacy is the gold standard for privacy in data analysis. In many data analysis applications, the data is a database of documents. For databases consisting of many documents, one of the most fundamental problems is that of pattern matching and computing (i) how often a pattern appears as a substring in the database ( substring counting ) and (ii) how many documents in the collection contain the pattern as a substring ( document counting ). In this paper, we initiate the theoretical study of substring and document counting under differential privacy. We give an ε-differentially private data structure solving this problem for all patterns simultaneously with a maximum additive error of O(𝓁 • polylog(n𝓁|Σ|)), where 𝓁 is the maximum length of a document in the database, n is the number of documents, and |Σ| is the size of the alphabet. We show that this is optimal up to a O(polylog(𝓃𝓁)) factor. Further, we show that for (ε,δ)-differential privacy, the bound for document counting can be improved to O(√𝓁 • polylog(𝓃𝓁|Σ|)). Additionally, our data structures are efficient. In particular, our data structures use O(𝓃𝓁 2 ) space, O(𝓃 2 𝓁 4 ) preprocessing time, and O(|P|) query time where P is the query pattern. Along the way, we develop a new technique for differentially privately computing a general class of counting functions on trees of independent interest. Our data structures immediately lead to improved algorithms for related problems, such as privately mining frequent substrings and q -grams. For q -grams, we further improve the preprocessing time of the data structure.
- Open Access
- 8 May 2025
- Published by Elsevier in Theoretical Computer Science
- Vol. 1045
Cycles and global attractors of reactantless and inhibitorless reaction systems
- 8 May 2025
- Published by Elsevier in Theoretical Computer Science
- Vol. 1045
Open AccessCycles and global attractors of reactantless and inhibitorless reaction systems
- Open Access
- 22 January 2025
- Published by Springer Nature in Journal of Membrane Computing
- Vol. 7 (4) , 341-350
Chemical pure reaction automata in maximally parallel manner
This work presents a new class of reaction automata, called Chemical Pure Reaction Automata (CPRA). CPRA combines characteristics of chemical reaction automata, as introduced by Okubo et al. in 2016, with those of the more recently defined pure reaction automata. Unlike standard chemical reaction automata, CPRA lack permanence, meaning their result states consist solely of the reaction products, with unconsumed reactants being discarded. We investigate the computational power of two CPRA variants, both working in a maximally parallel manner. We first prove that deterministic CPRA (DCPRA)—in which at every state, for each input symbol, the resulting state is the same for all multisets of enabled reactions—are not Turing complete. We then show that non-deterministic CPRA are Turing complete and thus strictly more powerful than DCPRA: namely, the set of languages accepted by CPRA in the maximally parallel manner contains the set of languages accepted by standard chemical reaction automata in the same manner.
- 22 January 2025
- Published by Springer Nature in Journal of Membrane Computing
- Vol. 7 (4) , 341-350
Open AccessChemical pure reaction automata in maximally parallel manner
This work presents a new class of reaction automata, called Chemical Pure Reaction Automata (CPRA). CPRA combines characteristics of chemical reaction automata, as introduced by Okubo et al. in 2016, with those of the more recently defined pure reaction automata. Unlike standard chemical reaction automata, CPRA lack permanence, meaning their result states consist solely of the reaction products, with unconsumed reactants being discarded. We investigate the computational power of two CPRA variants, both working in a maximally parallel manner. We first prove that deterministic CPRA (DCPRA)—in which at every state, for each input symbol, the resulting state is the same for all multisets of enabled reactions—are not Turing complete. We then show that non-deterministic CPRA are Turing complete and thus strictly more powerful than DCPRA: namely, the set of languages accepted by CPRA in the maximally parallel manner contains the set of languages accepted by standard chemical reaction automata in the same manner.
- Open Access
- 22 January 2025
- Published by Springer Nature in Data Mining and Knowledge Discovery
- Vol. 39 (2) , 1-50
Missing value replacement in strings and applications
Missing values arise routinely in real-world sequential (string) datasets due to: (1) imprecise data measurements; (2) flexible sequence modeling, such as binding profiles of molecular sequences; or (3) the existence of confidential information in a dataset which has been deleted deliberately for privacy protection. In order to analyze such datasets, it is often important to replace each missing value, with one or more valid letters, in an efficient and effective way. Here we formalize this task as a combinatorial optimization problem: the set of constraints includes the context of the missing value (i.e., its vicinity) as well as a finite set of user-defined forbidden patterns, modeling, for instance, implausible or confidential patterns; and the objective function seeks to minimize the number of new letters we introduce. Algorithmically, our problem translates to finding shortest paths in special graphs that contain forbidden edges representing the forbidden patterns. Our work makes the following contributions: (1) we design a linear-time algorithm to solve this problem for strings over constant-sized alphabets; (2) we show how our algorithm can be effortlessly applied to fully sanitize a private string in the presence of a set of fixed-length forbidden patterns [Bernardini et al. 2021a]; (3) we propose a methodology for sanitizing and clustering a collection of private strings that utilizes our algorithm and an effective and efficiently computable distance measure; and (4) we present extensive experimental results showing that our methodology can efficiently sanitize a collection of private strings while preserving clustering quality, outperforming the state of the art and baselines. To arrive at our theoretical results, we employ techniques from formal languages and combinatorial pattern matching.
- 22 January 2025
- Published by Springer Nature in Data Mining and Knowledge Discovery
- Vol. 39 (2) , 1-50
Open AccessMissing value replacement in strings and applications
Missing values arise routinely in real-world sequential (string) datasets due to: (1) imprecise data measurements; (2) flexible sequence modeling, such as binding profiles of molecular sequences; or (3) the existence of confidential information in a dataset which has been deleted deliberately for privacy protection. In order to analyze such datasets, it is often important to replace each missing value, with one or more valid letters, in an efficient and effective way. Here we formalize this task as a combinatorial optimization problem: the set of constraints includes the context of the missing value (i.e., its vicinity) as well as a finite set of user-defined forbidden patterns, modeling, for instance, implausible or confidential patterns; and the objective function seeks to minimize the number of new letters we introduce. Algorithmically, our problem translates to finding shortest paths in special graphs that contain forbidden edges representing the forbidden patterns. Our work makes the following contributions: (1) we design a linear-time algorithm to solve this problem for strings over constant-sized alphabets; (2) we show how our algorithm can be effortlessly applied to fully sanitize a private string in the presence of a set of fixed-length forbidden patterns [Bernardini et al. 2021a]; (3) we propose a methodology for sanitizing and clustering a collection of private strings that utilizes our algorithm and an effective and efficiently computable distance measure; and (4) we present extensive experimental results showing that our methodology can efficiently sanitize a collection of private strings while preserving clustering quality, outperforming the state of the art and baselines. To arrive at our theoretical results, we employ techniques from formal languages and combinatorial pattern matching.
- Open Access
- 16 September 2024
- Published by Springer Nature in Theory of Computing Systems
- Vol. 68 (5) , 1442-1467
Elastic-Degenerate String Matching with 1 Error or Mismatch
An elastic-degenerate (ED) string is a sequence of n finite sets of strings of total length N, introduced to represent a set of related DNA sequences, also known as a pangenome. The ED string matching (EDSM) problem consists in reporting all occurrences of a pattern of length m in an ED text. The EDSM problem has recently received some attention by the combinatorial pattern matching community, culminating in an $$\mathcal {\tilde{O}}(nm^{\omega -1})+\mathcal {O}(N)$$ -time algorithm [Bernardini et al., SIAM J. Comput. 2022], where $$\omega $$ denotes the matrix multiplication exponent and the $$\mathcal {\tilde{O}}(\cdot )$$ notation suppresses polylog factors. In the k-EDSM problem, the approximate version of EDSM, we are asked to report all pattern occurrences with at most k errors. k-EDSM can be solved in $$\mathcal {O}(k^2mG+kN)$$ time, under edit distance, or $$\mathcal {O}(kmG+kN)$$ time, under Hamming distance, where G denotes the total number of strings in the ED text [Bernardini et al., Theor. Comput. Sci. 2020]. Unfortunately, G is only bounded by N, and so even for $$k=1$$ , the existing algorithms run in $$\varOmega (mN)$$ time in the worst case. In this paper we make progress in this direction. We show that 1-EDSM can be solved in $$\mathcal {O}((nm^2 + N)\log m)$$ or $$\mathcal {O}(nm^3 + N)$$ time under edit distance. For the decision version of the problem, we present a faster $$\mathcal {O}(nm^2\sqrt{\log m} + N\log \log m)$$ -time algorithm. We also show that 1-EDSM can be solved in $$\mathcal {O}(nm^2 + N\log m)$$ time under Hamming distance. Our algorithms for edit distance rely on non-trivial reductions from 1-EDSM to special instances of classic computational geometry problems (2d rectangle stabbing or 2d range emptiness), which we show how to solve efficiently. In order to obtain an even faster algorithm for Hamming distance, we rely on employing and adapting the k-errata trees for indexing with errors [Cole et al., STOC 2004]. This is an extended version of a paper presented at LATIN 2022.- 16 September 2024
- Published by Springer Nature in Theory of Computing Systems
- Vol. 68 (5) , 1442-1467
Open AccessElastic-Degenerate String Matching with 1 Error or Mismatch
An elastic-degenerate (ED) string is a sequence of n finite sets of strings of total length N, introduced to represent a set of related DNA sequences, also known as a pangenome. The ED string matching (EDSM) problem consists in reporting all occurrences of a pattern of length m in an ED text. The EDSM problem has recently received some attention by the combinatorial pattern matching community, culminating in an $$\mathcal {\tilde{O}}(nm^{\omega -1})+\mathcal {O}(N)$$ -time algorithm [Bernardini et al., SIAM J. Comput. 2022], where $$\omega $$ denotes the matrix multiplication exponent and the $$\mathcal {\tilde{O}}(\cdot )$$ notation suppresses polylog factors. In the k-EDSM problem, the approximate version of EDSM, we are asked to report all pattern occurrences with at most k errors. k-EDSM can be solved in $$\mathcal {O}(k^2mG+kN)$$ time, under edit distance, or $$\mathcal {O}(kmG+kN)$$ time, under Hamming distance, where G denotes the total number of strings in the ED text [Bernardini et al., Theor. Comput. Sci. 2020]. Unfortunately, G is only bounded by N, and so even for $$k=1$$ , the existing algorithms run in $$\varOmega (mN)$$ time in the worst case. In this paper we make progress in this direction. We show that 1-EDSM can be solved in $$\mathcal {O}((nm^2 + N)\log m)$$ or $$\mathcal {O}(nm^3 + N)$$ time under edit distance. For the decision version of the problem, we present a faster $$\mathcal {O}(nm^2\sqrt{\log m} + N\log \log m)$$ -time algorithm. We also show that 1-EDSM can be solved in $$\mathcal {O}(nm^2 + N\log m)$$ time under Hamming distance. Our algorithms for edit distance rely on non-trivial reductions from 1-EDSM to special instances of classic computational geometry problems (2d rectangle stabbing or 2d range emptiness), which we show how to solve efficiently. In order to obtain an even faster algorithm for Hamming distance, we rely on employing and adapting the k-errata trees for indexing with errors [Cole et al., STOC 2004]. This is an extended version of a paper presented at LATIN 2022. - Open Access
- 17 July 2024
- Published by Elsevier in Molecular Phylogenetics and Evolution
- Vol. 199, 108137
Inferring phylogenetic networks from multifurcating trees via cherry picking and machine learning
- 17 July 2024
- Published by Elsevier in Molecular Phylogenetics and Evolution
- Vol. 199, 108137
Open AccessInferring phylogenetic networks from multifurcating trees via cherry picking and machine learning
- Open Access
- 29 May 2024
- Published by Springer Nature in Natural Computing
- Vol. 23 (2) , 189-204
Pure reaction automata
This work introduces the new class of pure reaction automata, as well as a new update manner, called maximal reactive manner, that can also be applied to standard reaction automata. Pure reaction automata differ from the standard model in that they don’t have permanence: the entities that are not consumed by the reactions happening at a certain state are not conserved in the result states. We prove that the set of languages accepted by the new class under the maximal reactive manner contains the set of languages accepted by standard reaction automata under the same manner or under the maximal parallel manner. We also prove that a strict subclass of pure reaction automata can compute any partial recursive function.
- 29 May 2024
- Published by Springer Nature in Natural Computing
- Vol. 23 (2) , 189-204
Open AccessPure reaction automata
This work introduces the new class of pure reaction automata, as well as a new update manner, called maximal reactive manner, that can also be applied to standard reaction automata. Pure reaction automata differ from the standard model in that they don’t have permanence: the entities that are not consumed by the reactions happening at a certain state are not conserved in the result states. We prove that the set of languages accepted by the new class under the maximal reactive manner contains the set of languages accepted by standard reaction automata under the same manner or under the maximal parallel manner. We also prove that a strict subclass of pure reaction automata can compute any partial recursive function.
- Open Access
- 15 March 2024
- Published by Springer Nature in Natural Computing
- Vol. 23 (2) , 205-215
Fixed points and attractors of additive reaction systems
Reaction systems are discrete dynamical systems that simulate biological processes within living cells through finite sets of reactants, inhibitors, and products. In this paper, we study the computational complexity of deciding on the existence of fixed points and attractors in the restricted class of additive reaction systems, in which each reaction involves at most one reactant and no inhibitors. We prove that all the considered problems, that are known to be hard for other classes of reaction systems, are polynomially solvable in additive systems. To arrive at these results, we provide several non-trivial reductions to problems on a polynomially computable graph representation of reaction systems that might prove useful for addressing other related problems in the future.
- 15 March 2024
- Published by Springer Nature in Natural Computing
- Vol. 23 (2) , 205-215
Open AccessFixed points and attractors of additive reaction systems
Reaction systems are discrete dynamical systems that simulate biological processes within living cells through finite sets of reactants, inhibitors, and products. In this paper, we study the computational complexity of deciding on the existence of fixed points and attractors in the restricted class of additive reaction systems, in which each reaction involves at most one reactant and no inhibitors. We prove that all the considered problems, that are known to be hard for other classes of reaction systems, are polynomially solvable in additive systems. To arrive at these results, we provide several non-trivial reductions to problems on a polynomially computable graph representation of reaction systems that might prove useful for addressing other related problems in the future.