Manuscript Offprint
arXiv:2611.01569A logarithm-free subexponential algorithm for minimum quartet inconsistency
Abstract
We give a deterministic algorithm for complete, unweighted minimum quartet inconsistency (MQI) with time and space , where n is the number of taxa and k is the allowed number of quartet disagreements. This removes the logarithmic factor from the exponent of the MQI bound announced in 2009. The algorithm combines low-error anchoring, chromatic coding, and dynamic programming that accounts for disagreements with all input quartets, with a refined count of colorings and merging states. We also record a generic ETH-based lower bound. The optimality of the fourth-root exponent remains open.
Keywords: Minimum quartet inconsistency, Parameterized algorithms, Phylogenetic reconstruction, Chromatic coding, Subexponential algorithms
1. Introduction
Let be a set of taxa. An unrooted binary phylogenetic tree on has its leaves labeled bijectively by , and every internal vertex has degree three. Such a tree on four taxa is called a resolved quartet. For , its unique internal edge separates the leaves into two pairs. We denote the topology by when these pairs are and . Figure 1 shows the three possible resolved topologies on .



Figure 1: The three resolved quartet topologies on . Each internal edge induces the indicated 2 | 2 split.
A quartet system on is a collection of resolved quartets whose leaf sets belong to . We call the system full if each four-element subset of is represented by exactly one quartet. We identify a full system with a function , writing for the selected topology on . Throughout this note, a complete quartet input means a full quartet system in this sense. Note that the chosen topologies need not all be displayed by a single tree.
For an unrooted binary phylogenetic tree on and , let be the tree obtained from the minimal connected subtree of spanning by suppressing all degree-two vertices. We say that displays a quartet on if . The induced full quartet system is defined by for every . A full system is compatible if some tree displays every quartet selected by , equivalently, if .
For a complete input Q and a candidate tree T, define
where equals one when the statement is true and zero otherwise. Minimum quartet inconsistency (MQI) asks whether for some unrooted binary phylogenetic tree on . Thus counts quartet entries that must be changed, rather than taxa, tree rearrangements, or missing entries. Inputs with at most three taxa have no quartet entries and can be handled separately.
Alon, Lokshtanov, and Saurabh's chromatic-coding framework [4] led to the announcement of an MQI algorithm with running time [5, p. 4]; the joint attribution is also stated in [6]. Thus subexponential fixed-parameter tractability and the fourth-root power of k were already known.
This research was supported by National Science and Technology Council of Taiwan under grant no. NSTC 115-2221-E-019-045.
Corresponding author.
Email address: josephcclin@mail.ntou.edu.tw (Chuang-Chieh Lin)
The notation suppresses factors polynomial in the input size.
Guillemot and Mnich [7] give a algorithm for dense rooted triplet inconsistency, where is the triplet-error budget. Their weak-coloring construction and tree-position product states [7, Lemmas 8 and 9] are direct methodological predecessors of our algorithm. Bryant and Steel [8] developed dynamic programming for quartet optimization over trees whose splits belong to a prescribed collection. For each cluster, their partial score includes quartets lying entirely within the cluster, together with quartets having three leaves inside and one outside. We use these established coloring, merging, and quartet-scoring ingredients.
Other quartet results address different models. Lafond and Scornavacca [9] study weighted quartet consensus, where quartet weights are their frequencies among input trees on the same taxon set. Their fixed-parameter-tractable algorithms use parameters counting four-taxon sets with tied most-frequent topologies and uniquely most-frequent quartets that the solution is allowed to reject. Hirai and Iwamasa [10] give polynomial-time compatibility algorithms for multi-partite quartet systems. Recent work on reconstruction from random noisy samples [11] and sublinear-time consistency-versus-farness-from-consistency testing [12] concerns different objectives or access models from the exact complete-input repair problem considered here.
1.2. Our result and approach
Theorem 1.1. Complete unweighted MQI admits a deterministic algorithm returning a witnessing tree on a yes-instance with time and space at most
The hidden constants are independent of n and k.
This removes the logarithmic factor from the previously announced guarantee while retaining its fourth-root power. To the best of our knowledge, this combined logarithm-free MQI guarantee has not appeared in the publicly available literature.
Our contribution combines low-error anchoring with dynamic programming that accounts for disagreements with all input quartets. The improvement comes from counting repair sets using binomial sums and bounding the number of merging states using the product of the color-class sizes. We call a chosen reference taxon an anchor. Quartets containing are converted into rooted triplets on the remaining taxa. For any target tree with at most quartet disagreements, an averaging argument guarantees an anchor contained in at most disagreeing quartets. Removing the anchor from their leaf sets gives a 3-uniform error hypergraph on . Let be the smallest power of two satisfying . A universal weak-coloring family contains a coloring under which no error triple is monochromatic. Each color class then yields a rooted restriction of the target tree, and these restrictions can be merged while scoring all input quartets. Instead of replacing the repair-set count and the class-size product by , we retain their actual sizes and apply elementary binomial and AM-GM estimates. The resulting bound is (see Proposition 3.3, which is established by combining the coloring-family bound in Lemma 2.2 with the merging time analysis in Lemma 3.2). For positive , we have and , so . Lemma 4.1 therefore gives , removing the logarithmic factor from the exponent. The case is handled separately by reconstruction and verification.
The remainder of this paper is organized as follows. Section 2 develops the anchor argument and the universal weak-coloring family. Section 3 presents the quartet-scoring recurrence and the anchored algorithm, and Section 4 proves the logarithm-free running-time bound. Section 5 gives the generic ETH consequences and a criterion for stronger lower bounds. Section 6 concludes with directions for future work.
2. Anchors and universal colorings
2.1. Low-error anchors
For a fixed target tree on S, define its set of erroneous four-taxon sets by
Thus , and is feasible if . For each , let be the number of erroneous quartets containing . The following averaging observation is due to Wu, You, and Lin [3, Lemma 2.2]. We retain its dependence on and explicitly.
Lemma 2.1. If , there exists an anchor such that
Proof. Each erroneous quartet contains four taxa, so
By averaging, there exists such that
Since is an integer, this implies .
For a fixed anchor , let . Transform every input quartet containing into the rooted triplet on , and denote the resulting complete rooted triplet system by .
Deleting a from an unrooted binary tree on S and rooting at its former neighbor gives a rooted binary tree on L.
Under this correspondence, the unrooted tree displays if and only if the rooted tree displays . Conversely, attaching as a new leaf adjacent to the root of a rooted binary tree on recovers an unrooted binary tree on .
Let denote the rooted tree obtained from by this operation. Exactly triplets of are not displayed by . Consequently, for the anchor guaranteed by Lemma 2.1, at most input rooted triplets disagree with the target rooted tree.
Instances with have no quartet entries. If , any binary tree on suffices. These cases can therefore be handled directly.
If , then . For each anchor , test whether is consistent. If it is, reconstruct its rooted tree, attach to the root, and check whether the resulting unrooted tree satisfies . Accept if any candidate passes this check, and otherwise reject. On every yes-instance, Lemma 2.1 provides an anchor with , for which reconstruction recovers the target tree. Thus this procedure is exact and runs in polynomial time.
Rooted reconstruction can use Aho et al.'s BUILD algorithm [13], followed by direct verification. A consistent complete rooted triplet system determines a unique rooted binary tree. For a one-taxon set, this tree consists of a single vertex serving as both root and leaf. For a two-taxon set, it consists of a root whose two children are the labeled leaves. These cases require no triplet constraints or reconstruction procedure.
For the remaining analysis, we may therefore assume , and .
2.2. A universal family for anchored errors
For the fixed target tree and an anchor , define the associated error hypergraph , where and
Each hyperedge is the three-element leaf set of an input rooted triplet in that is not displayed by . The hyperedge itself carries no tree topology. Removing gives a bijection between the erroneous four-taxon sets containing and the hyperedges of , so . If is feasible, Lemma 2.1 therefore guarantees at least one anchor with . This bound need not hold for every anchor.
Remark. The error hypergraph depends on the unknown target tree and is used only in the analysis. We construct a family of colorings that works for every hypergraph with the specified number of vertices and at most hyperedges, without knowing which hyperedges occur.
A proper weak vertex coloring of a hypergraph assigns colors to its vertices so that every hyperedge contains at least two distinct colors. Thus, for a 3-uniform hypergraph, a coloring is proper weak if no hyperedge has all three vertices of the same color.
The purpose of coloring is to partition the taxa into classes whose anchored triplets agree with the target. A proper weak coloring of ensures that every error hyperedge meets at least two color classes. Thus no erroneous rooted triplet is contained entirely within a single class, allowing each class's rooted restriction to be reconstructed correctly. This also explains why weak coloring suffices: the three vertices of an error hyperedge need not receive three distinct colors.
The following construction adapts the proof of [7, Lemma 9] to 3-uniform hypergraphs. We bound its construction time in terms of both the number of vertices and the upper bound on the number of hyperedges.
Lemma 2.2. Let be an -element set with , let be a nonnegative integer, and let be the smallest power of two satisfying . A family of vertex colorings of , each using at most colors, can be constructed deterministically in time
Every 3-uniform hypergraph on with at most hyperedges is properly weakly colored by at least one coloring in the family.
Proof. If , use the single injective coloring, which assigns a distinct color to every vertex. This coloring uses at most colors and properly weakly colors every 3-uniform hypergraph on .
Now suppose that . Let be the smallest power of two with , and assign distinct field elements to the vertices . Then . Since and are powers of two and , we may view as a vector space over and fix a surjective -linear projection
Identify the possible outputs of with the initial colors .
For each coefficient vector , define an initial coloring by
Thus one coefficient vector determines one coloring of all vertices. When , the projection has only one possible output, so every coefficient vector gives the same constant coloring.
A uniformly chosen coefficient vector gives three-wise independent uniform colors. To see this, fix any three distinct vertices , and write and for . Then
The determinant of this Vandermonde matrix is
since the are distinct. Hence every prescribed value vector corresponds to exactly one coefficient vector. Uniformly choosing the coefficient vector therefore makes all value vectors equally likely.
Each color has exactly preimages under . Consequently, for any prescribed colors ,
This establishes three-wise independence and uniformity. In particular, any fixed hyperedge is monochromatic with probability .
Fix an arbitrary 3-uniform hypergraph with . By linearity of expectation, the expected number of monochromatic hyperedges is
Thus at least one coefficient vector defines a coloring with at most monochromatic hyperedges. Choose one vertex from each such hyperedge, and let be the set of chosen vertices. Then .
Give each vertex of its own fresh color, distinct from all initial colors and from the fresh colors assigned to the other vertices of . Every previously monochromatic hyperedge meets . Moreover, every hyperedge meeting contains a vertex whose fresh color appears nowhere else, so that hyperedge is non-monochromatic after recoloring. Hyperedges disjoint from retain their original colors and were already non-monochromatic. The resulting coloring therefore properly weakly colors and uses at most colors.
To construct the family without knowing , enumerate all coefficient vectors and construct their corresponding initial colorings. For each initial coloring, enumerate all subsets with and perform the recoloring above. Fix an ordering of and assign the fresh colors to the vertices of in that order.
The resulting family contains at most colorings, counting repetitions. By the preceding argument, it contains a proper weak coloring for every 3-uniform hypergraph on with at most hyperedges. Though different coefficient vectors may produce the same initial coloring, this does not affect the averaging argument, which uses the uniform distribution over coefficient vectors.
We next bound the number of possible repair sets . First suppose that , and set . Since , we have for every . Therefore,
Here we used the binomial theorem, the inequality , and the identity . Dividing by gives
Since , we have and . Hence
If , then m < 2h, and
Since , the same bound holds in this case as well.
Finally, , so enumerating the coefficient vectors contributes only a polynomial factor in . Constructing the finite field, evaluating each initial coloring, and producing each recolored assignment also require only polynomial overhead in . The case requires only the single injective coloring and is polynomial. This proves the claimed construction-time bound.
Remark. The dependence on the ratio rather than the weaker estimate will be used in Section 4 to obtain the logarithm-free exponent.
For each anchor , construct the family from Lemma 2.2 on , with and . For each coloring in the family, let be its nonempty color classes, where . Test each restricted rooted triplet system for consistency. Reject the coloring if any restriction is inconsistent. Otherwise, reconstruct its rooted tree .
To see why this preserves a feasible target, suppose that . Choose an anchor with , as guaranteed by Lemma 2.1. Lemma 2.2 then provides a coloring in the family that properly weakly colors . No hyperedge of is contained in a single color class. Thus every rooted triplet of is displayed by . Since these restricted triplet systems are complete, reconstruction yields for every . The same statement holds for classes of size one or two, whose rooted trees are determined directly. Consequently, at least one anchor and one coloring produce exactly the rooted restrictions of the feasible target.
Remark. We do not require the quartet system to be consistent. Even when a coloring properly weakly colors , input quartets entirely within may disagree with , because they do not contain the anchor. The class tree is inferred exclusively from the anchored rooted triplets. Disagreements with all input quartets are evaluated by the optimization step in Section 3.
3. Optimizing the full quartet objective
3.1. Quartet charging with a permanent outgroup
For distinct taxa x, y, z, w, write
Let and be the leaf sets of the two child subtrees of an internal node, and let denote the set of outside taxa. Define
The three lines correspond to distributions , , and among A, B, O. An explicit computation costs time.
Lemma 3.1. Let be a rooted binary tree on , and let result from attaching a to its root. For each internal node of , let be its two child leaf sets, and put . Then
Each four-taxon set contributes exactly one term to the sum, namely .
Proof. We show that each four-taxon set contributes exactly one term to the sum, and that this term equals .
First, suppose that . Let be the lowest common ancestor of , , in . Because is binary, these three leaves split two-to-one between the children of . Suppose that and . Since the anchor is outside every rooted subtree of , we have . Consequently, the second sum in (1) charges , which is precisely the disagreement with the quartet displayed by . Note that this charge is unique. Indeed, a proper descendant of contains at most two of , , and , while a proper ancestor has all three in one child subtree and an incomparable node contains none of them. The case with the pair in similarly follows.
Second, suppose that , and let v be the lowest common ancestor of its four leaves in V. The two child subtrees of v contain either two leaves each or one and three leaves.
In the two-to-two case, X contributes through the first sum in (1) at v. The two pairs in the child subtrees determine the split displayed by . To show that this contribution is unique, consider any other internal node u. If u is a proper descendant of v, its rooted subtree lies within one child subtree of v and therefore contains at most two leaves of X. If u is a proper ancestor of v, all four leaves of X lie in the child subtree of u that contains v. Otherwise, u is neither an ancestor nor a descendant of v, so their rooted subtrees are disjoint. Since all leaves of X lie below v, none lies below u in this last case. Each sum in (1) requires at least three leaves of X below the node, with at least one in each child subtree. None of the other nodes satisfies both requirements. Hence X contributes only at v.
In the one-to-three case, let be the three leaves of in one child subtree of , let be the fourth leaf, and let be the lowest common ancestor of . Since lies in one child subtree of , is a proper descendant of . The leaves of divide two-to-one between the child subtrees of , while lies in . Thus contributes through exactly one of the last two sums in (1) at . The two leaves in the same child subtree form one side of the split displayed by . To show that this contribution is unique, first observe that the distribution at is or , so no term for is included there. The subtree rooted at any proper descendant of contains at most two leaves of . At any node strictly between and , all three leaves of lie in a single child subtree, while lies outside that node's subtree. At any proper ancestor of , all four leaves of lie in a single child subtree. Finally, any node that is neither an ancestor nor a descendant of and is distinct from has a rooted subtree disjoint from the subtree rooted at . Its subtree therefore contains no leaves of and can contain at most the single leaf from . Consequently, no node other than has any of the distributions , , or required by (1). Hence contributes only at .
In every case, the unique term for evaluates its disagreement with the topology displayed by . Summing over all gives
For the dynamic program below, consider a rooted subtree on a cluster , attached to the rest of the tree only at its root. Its partial score includes the disagreement costs of all quartets with at least three leaves in . Quartets entirely within are determined by this subtree. For distinct and , if the subtree displays the rooted triplet , then every completion preserving as a cluster displays the quartet . Thus the costs of quartets with three leaves in and one outside depend on the rooted subtree and the identities of the outside leaves through , but not on how the rest of the tree is arranged.
A state on can therefore minimize this partial score over its admissible rooted subtrees without specifying an outside completion. Quartets with fewer than three leaves in are excluded from this partial score and counted elsewhere in the full recurrence, as guaranteed by Lemma 3.1.
This partial-score formulation follows Bryant and Steel [8, Section 2.3, Eqs. (6)–(12)]. The binary recurrence in (2) in Section 3.2 specializes it to our setting.
3.2. Product states for fixed rooted restrictions
Suppose the disjoint nonempty classes partition , with fixed rooted binary trees . A state chooses, for each , either a node of or the special symbol . A chosen node represents its descendant leaf set, whereas represents the empty set, indicating that the state contains no leaves from . Let be the union of the descendant leaf sets, interpreting as empty. This is the tree-position representation of [7, Lemma 8].
Next, we describe how the dynamic program splits its current leaf set into two child subtrees while preserving the prescribed class trees . For a state , write its two child states as and , representing the left and right subtrees, respectively. For each coordinate , we choose the ordered pair . If , this class contributes no leaves to the current state, so the only choice is . If , the permitted choices are
| choice | ||
|---|---|---|
| entirely left | ||
| entirely right | ||
| split | ||
| reversed split |
Here the first two choices place all leaves descending from into one child subtree. The last two choices are available only when is an internal node with children . If the leaves represented by occur in both child subtrees, their division must follow these two prescribed child subtrees, in either order, to preserve the class tree. Thus a null coordinate has one choice, a leaf coordinate has two choices, and an internal-node coordinate has four choices.
Choosing one permitted pair for each of the coordinates therefore gives at most candidate transitions. For each candidate , put and . The coordinate rules ensure that and are disjoint and that . We retain only transitions for which both and are nonempty.
Define if , and otherwise set
(2)
where the minimum is taken over the retained transitions. The first two terms account for costs within the child states,
while the last term accounts for quartet costs charged at the current split.
Since both child leaf sets are nonempty and partition , each child state contains strictly fewer leaves than its parent. Hence the recurrence is acyclic and can be evaluated in increasing order of . The root state is , where is the root of . Its leaf set is all of .
Lemma 3.2. At its root state, (2) computes the minimum full quartet score among all trees whose rooted restriction to each is . Writing and , its time is at most
with space at most . Moreover, it can return a tree.
Proof. For a nonempty state , call a rooted binary tree on feasible if, for every non-null coordinate , its restriction to is the rooted subtree of at .
We first show that the permitted transitions describe exactly the possible root splits of feasible trees. Consider a feasible tree with at least two leaves. A null coordinate contributes no leaves to either child, so its child coordinates must both be . For a non-null coordinate , if all its represented leaves lie in one child of , the child coordinates are or . Otherwise, both children contain represented leaves from this class. The root of then survives when restricting to these leaves and suppressing unary nodes. Consequently, must be internal, and the two child restrictions must be the subtrees rooted at its children . This gives or . Thus every feasible tree determines a permitted transition whose child trees are feasible for their respective states.
Conversely, joining two feasible child trees under a new root according to a permitted transition preserves every prescribed class restriction. Indeed, each represented class either remains entirely in one child or is joined along its prescribed split. The requirement that both child leaf sets be nonempty ensures that the resulting tree is binary. Hence the recurrence represents all feasible trees and produces only feasible trees.
For a feasible tree at a state , define its partial score as the sum of the quartet charges at its internal nodes, with each outside set taken relative to . At a root split, this partial score is the sum of the two child partial scores and the charge at the root. The base case has score zero. Moreover, every permitted transition has two nonempty child leaf sets strictly smaller than . Induction on therefore shows that the recurrence computes the minimum partial score over all trees feasible for . At the root state, whose leaf set is , Lemma 3.1 identifies this sum with the full quartet-disagreement score of the corresponding tree on . This proves correctness.
For each non-base state, record one pair of child states attaining the minimum. Recursively following these choices from the root state reconstructs an optimal feasible rooted tree on . Reattaching the anchor yields the corresponding unrooted tree on .
It remains to bound the running time. Let , so that . The rooted binary tree has nodes, giving choices for its coordinate when the null symbol is included. Thus the number of possible states is
By the arithmetic–geometric mean inequality, we have
Each state has at most transitions. For a transition , write , , . Here and are the two child leaf sets, and is the set of outside taxa. Using membership tables for the state leaf sets, the charge can be computed in time by scanning all four-taxon subsets and processing each in constant time. The child values are already available when states are processed in increasing order of their leaf-set sizes. Therefore, each transition can be evaluated in time, and the total running time is
Remark. In the end of the proof of Lemma 3.2, substituting the bound on gives
which retains the dependence on needed in the subsequent analysis.
3.3. The anchored algorithm
Compute . For every anchor, enumerate the family in Lemma 2.2, reconstruct all class trees, and run (2) for each surviving coloring. Accept and return a tree if its score is at most . Otherwise, reject if every branch fails.
Proposition 3.3. For , the anchored algorithm is exact. With from Lemma 2.2, its time and space are at most
Proof. Soundness follows from computing the full quartet score. On a yes-instance, choose the anchor in Lemma 2.1 and the coloring guaranteed by Lemma 2.2. Each reconstructed equals the target rooted restriction, so Lemma 3.2 returns a score at most . The family bound follows from Lemma 2.2. For each merge, AM-GM and give
For fixed , the function is increasing on . To see this, set and observe that its derivative has the sign of for . Since , we have
This includes the injective case and . Multiply by the family size, yet the exponents add and remain of the same order. The anchors contribute a polynomial factor. The case has and remains polynomial. Classes containing one or two leaves have a unique rooted binary tree topology.
4. Entropy analysis and removal of the logarithm
Lemma 4.1. For all h, n > 0,
Proof. For , . Therefore , and integration gives . Substitute and multiply by .
Proof of Theorem 1.1. Handle , , and in polynomial time as above. Otherwise . The least-power-of-two choice of gives
Proposition 3.3 and Lemma 4.1 now bound the anchored algorithm by time and space. The exponents of all polynomial factors are constants independent of . The additive statement follows, for example, from , where . Polynomial preprocessing and the trivial cases satisfy the same bound.
Remark. The bound retains the dependence on both n and h. For a fixed error budget k, the guaranteed anchored error bound is nonincreasing in n, and hence so is the chosen coloring parameter h. Moreover, when , we have . Thus both the coloring-family construction and the merge computation run in time in this regime, including their polynomial overhead. Retaining the ratio n/h inside the logarithm gives this sharper estimate. A coarser bound would yield only .
5. Generic ETH consequences
The Exponential Time Hypothesis (ETH) asserts a positive exponential-time rate for 3-SAT in its number of variables [14]. Together with sparsification [15], it rules out a deterministic algorithm on 3-CNF instances with variables and clauses. The following consequence uses the established NP-completeness of complete MQI [1] to provide a generic observation.
Proposition 5.1 (Generic ETH barrier). Assuming ETH, complete MQI has no deterministic algorithm with running time . Here the exponent means a function such that, for every fixed , .
Proof. Assume ETH. By the sparsification lemma [15], there is no deterministic -time algorithm for 3-SAT on instances with variables and clauses.
Since complete MQI is NP-complete [1], there exists a polynomial-time many-one reduction from 3-SAT to complete MQI. Let be a 3-CNF formula with variables and clauses, and let be the resulting complete MQI instance on taxa. The reduction guarantees that
The encoding length of is . Since the reduction runs in polynomial time, its output has polynomial encoding length. Consequently, there is a fixed constant , depending only on the chosen reduction, such that .
We may replace by without changing the answer: every tree disagrees with at most input quartets. Thus we may assume
Suppose, for a contradiction, that complete MQI admits a deterministic algorithm with running time , where for every fixed . Choose the fixed value . The preceding parameter bound then gives
Therefore, applying the reduction and then this algorithm would decide whether is satisfiable in time
This contradicts the sparse-3-SAT consequence of ETH.
In particular, this excludes parameter factors for every fixed . It does not exclude for a specified fixed , such as , and does not establish optimality of Theorem 1.1. The
argument uses only the existence of a polynomial-time reduction and does not determine its degree explicitly. It therefore establishes the generic barrier above, without identifying a specific constant for which a running time of is excluded under ETH.
Remark. A more precise analysis of the reduction could yield a numerical ETH lower bound. Specifically, suppose a deterministic polynomial-time reduction from sparse 3-SAT with variables produces complete MQI instances with taxa and budget for a fixed . A hypothetical algorithm would then solve sparse 3-SAT in time, contradicting ETH. Determining an explicit value of therefore requires a quantitative analysis of the reduction.
The reduction chain analyzed by Dupré la Tour, Lafond, and Ndiaye [16, proof of Theorem 5] concerns general Unrooted Quartet Consistency, whose input need not be complete. Transferring this approach to complete MQI requires a reduction that preserves yes- and no-instances and explicitly bounds both the number of taxa and the disagreement budget. Arbitrarily assigning topologies to unspecified four-sets can destroy compatibility, and complete MQI with is polynomial-time solvable [17]. Thus, their reduction does not directly establish a parameterized lower bound for complete MQI. We leave open whether complete MQI admits an algorithm with running time .
6. Concluding remarks
Low-error anchoring and size-sensitive counts yield a deterministic algorithm for complete unweighted MQI. The algorithm recovers rooted restrictions from anchored triplets and merges them using the full quartet objective. Retaining the number of repair subsets and the actual class sizes is essential to the logarithm-free analysis.
The generic ETH consequence in Section 5 does not establish optimality of the fourth-root exponent. A matching lower bound requires a reduction that preserves completeness and controls the error budget. Establishing such a reduction, obtaining a polynomial-space variant, and improving the explicit constants and polynomial factors are natural directions for further work.
Declaration of AI assistance
During the preparation of this work the author used ChatGPT 6.1 in order to perform preliminary literature survey and polish the writing and readability. After using this tool/service, the author reviewed and edited the content as needed and takes full responsibility for the content of the published article.
References
[1] J. Gramm, R. Niedermeier, A fixed-parameter algorithm for minimum quartet inconsistency, Journal of Computer and System Sciences 67 (2003) 723–741. doi:10.1016/S0022-0000(03)00077-1.
[2] M.-S. Chang, C.-C. Lin, P. Rossmanith, New fixed-parameter algorithms for the minimum quartet inconsistency problem, Theory of Computing Systems 47 (2010) 342–367. doi:10.1007/s00224-009-9165-y.
[3] G. Wu, J.-H. You, G. Lin, A polynomial time algorithm for the minimum quartet inconsistency problem with quartet errors, Information Processing Letters 100 (2006) 167–171. doi:10.1016/j.ipl.2006.05.013.
[4] N. Alon, D. Lokshtanov, S. Saurabh, Fast FAST, in: Automata, Languages and Programming (ICALP 2009), volume 5555 of Lecture Notes in Computer Science, Springer, 2009, pp. 49–58. doi:10.1007/978-3-642-02927-1_6.
[5] S. Saurabh, Chromatic coding and universal (hyper-) graph coloring families, Parameterized Complexity News, pp. 3–4, 2009. URL: https://web.archive.org/web/20160324141542idHttp://mrfellows.net/Newsletters/2009June_FPT_News.pdf.
[6] S. Saurabh, Chromatic coding, Seminar Algorithms, University of Warsaw, 2 June 2011, 2011. URL: https://www.mimuw.edu.pl/en/seminars/talk/chromatic-coding/.
[7] S. Guillemot, M. Mnich, Kernel and fast algorithm for dense triplet inconsistency, Theoretical Computer Science 494 (2013) 134–143. doi:10.1016/j.tcs.2012.12.032.
[8] D. Bryant, M. Steel, Constructing optimal trees from quartets, Journal of Algorithms 38 (2001) 237–259. doi:10.1006/jagm.2000.1133.
[9] M. Lafond, C. Scornavacca, On the weighted quartet consensus problem, Theoretical Computer Science 769 (2019) 1–17. doi:10.1016/j.tcs.2018.10.005.
[10] H. Hirai, Y. Iwamasa, Reconstructing phylogenetic trees from multipartite quartet systems, Algorithmica 84 (2022) 1875–1896. doi:10.1007/s00453-022-00945-9.
[11] D. Arvanitakis, V. Chatziafratis, Y. Luo, K. Makarychev, Optimal phylogenetic reconstruction from sampled quartets, in: Proceedings of the 58th Annual ACM Symposium on Theory of Computing (STOC 2026), ACM, 2026, pp. 1777–1788. doi:10.1145/3798129.3800885.
[12] C.-C. Lin, Testing full quartet consistency: Adaptive reconstruction, random verification, and constant-query testability, arXiv:2608.00987, 2026. doi:10.48550/arXiv.2608.00987.
[13] A. V. Aho, Y. Sagiv, T. G. Szymanski, J. D. Ullman, Inferring a tree from lowest common ancestors with an application to the optimization of relational expressions, SIAM Journal on Computing 10 (1981) 405–421. doi:10.1137/0210030.
[14] R. Impagliazzo, R. Paturi, On the complexity of k-SAT, Journal of Computer and System Sciences 62 (2001) 367–375. doi:10.1006/jcss.2000.1727.
[15] R. Impagliazzo, R. Paturi, F. Zane, Which problems have strongly exponential complexity?, Journal of Computer and System Sciences 63 (2001) 512–530. doi:10.1006/jcss.2001.1774.
[16] M. Dupré la Tour, M. Lafond, N. Ndiaye, On the hardness of recognizing graphs of small MimWidth and its variants, in: 53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026), volume 374 of Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum fuer Informatik, 2026, pp. 83:1–83:18. doi:10.4230/LIPIcs.ICALP.2026.83.
[17] P. L. Erdős, M. A. Steel, L. A. Székely, T. J. Warnow, A few logs suffice to build (almost) all trees (I), Random Structures & Algorithms 14 (1999) 153–184. doi:10.1002/(SICI)1098-2418(199903)14:2<153::AID-RSA3>3.0.CO;2-R.