4 research outputs found

    New results for the 2-interval pattern problem

    No full text
    We present new results concerning the problem of nding a constrained pattern in a set of 2-intervals. Given a set of n 2-intervals D and a model R describing if two disjoint 2-intervals can be in precedence order (<), be allowed to nest (@) and/or be allowed to cross (G), the problem asks to nd a maximum cardinality subset D ′ ⊆ D such that any two 2-intervals in D ′ agree with R. We improve the time complexity of the best known algorithm for R = {@} by giving an optimal O(n log n) time algorithm. Also, we give a graph-like relaxation for R

    New Results for the 2-Interval Pattern Problem

    No full text
    International audienceWe present new results concerning the problem of finding a constrained pattern in a set of 2-intervals. Given a set of n 2-intervals D and a model R describing if two disjoint 2-intervals can be in precedence order (<<), be allowed to nest (\sqsubset) and/or be allowed to cross ((\between), we consider the problem of finding a maximum cardinality subset \D' \subseteq \D of disjoint 22-intervals such that any two 22-intervals in \D' agree with RR. We improve the time complexity of the best known algorithm for R={}R = \{\sqsubset\} by giving an optimal O(n log n) time algorithm. Also, we give a graph-like relaxation for R={,}R = \{\sqsubset,\between\} that is solvable in O(n2n)O(n^2 \sqrt{n}) time. Finally, we prove that the problem is NP-complete for R={<,}R = \{<,\between\} and in addition to that, we give a fixed-parameter tractability result based on the crossing structure of D

    New Results for the 2-Interval Pattern Problem

    No full text
    International audienceWe present new results concerning the problem of finding a constrained pattern in a set of 2-intervals. Given a set of n 2-intervals D and a model R describing if two disjoint 2-intervals can be in precedence order (<<), be allowed to nest (\sqsubset) and/or be allowed to cross ((\between), we consider the problem of finding a maximum cardinality subset \D' \subseteq \D of disjoint 22-intervals such that any two 22-intervals in \D' agree with RR. We improve the time complexity of the best known algorithm for R={}R = \{\sqsubset\} by giving an optimal O(n log n) time algorithm. Also, we give a graph-like relaxation for R={,}R = \{\sqsubset,\between\} that is solvable in O(n2n)O(n^2 \sqrt{n}) time. Finally, we prove that the problem is NP-complete for R={<,}R = \{<,\between\} and in addition to that, we give a fixed-parameter tractability result based on the crossing structure of D
    corecore