Replies: 1 comment 1 reply
-
Are we really talking about "patterns" here, or "matches" within the larger graph? Not sure this should be called a "convex" set -- the set can still have holes in it. Maybe a better name would be "well-separated". I think it is actually an acyclicity condition: Given a set |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Luca's comment from #239:
This could be resolved by introducing the concept of "convex set of (convex) patterns". Checking that a set of patterns is convex is quite similar to how we are checking convexity at the moment, and we could (presumably) reuse the precomputed convex checker data structure that we are already using.
Convex set of patterns: For every pair of patterns$P_1$ , $P_2$ in the set, there are no nodes $b_1, a_1 \in P_1$ and $b_2, a_2 \in P_2$ such that $b_1$ is in the past of $a_2$ and $b_2$ is in the past of $a_1$ . In other words: all nodes in $P_1$ are either in the past or spacelike-separated from all nodes in $P_2$ , or they are all in the future or spacelike-separated.
This checking isn't free, unfortunately:
On top of this checking not being free, there is the argument that we should only check this once it's been filtered and is actually about to be applied, instead of computing this for sets that might well be discarded later on.
EDIT: this might require to precompute slightly different stuff than what we are doing now, but shouldn't be too far off.
Originally posted by @lmondada in #239 (comment)
Beta Was this translation helpful? Give feedback.
All reactions