Skip to main content
added 44 characters in body
Source Link

Let $(M,d)$ be a metric space. Consider two sequences $a = (a_i)_{i=1}^n$, $b = (b_i)_{i=1}^m$, $n, m \in \mathbb{N}$ with elements in $M$. For two sequences $[n],[m]$, call $$\Gamma([n], [m]) = \big\{E \subseteq [n] \times [m]\mid \forall i < j, k>l: \neg ((i,k) \in E \wedge (j, l) \in E)\big\}$$$$\Gamma([n], [m]) = \big\{E \subseteq [n] \times [m]\mid \forall i < j, k>l: \neg ((i,k) \in E \wedge (j, l) \in E) \wedge \pi_1(E) = [n] \wedge \pi_2(E) = [m]\big\}$$ the set of weakly increasing matchings (that's a title I made up for them).

Define a function $\tilde d \colon M^\mathbb N \times M^\mathbb N \to \mathbb R^+$, $$ \widetilde d(a, b) = \min_{E \in \Gamma ([n],[m])} \sum_{i, j \in E} d(a_i, b_{j}). $$ This should define a metric, which I'm tempted to call string matching distance (which seems to be, after a brief google, already taken by the edit distance, which is different). Questions:

  • Does this metric have a name?
  • For which classes of metrics is this metric efficiently computable/approximable?

Let $(M,d)$ be a metric space. Consider two sequences $a = (a_i)_{i=1}^n$, $b = (b_i)_{i=1}^m$, $n, m \in \mathbb{N}$ with elements in $M$. For two sequences $[n],[m]$, call $$\Gamma([n], [m]) = \big\{E \subseteq [n] \times [m]\mid \forall i < j, k>l: \neg ((i,k) \in E \wedge (j, l) \in E)\big\}$$ the set of weakly increasing matchings (that's a title I made up for them).

Define a function $\tilde d \colon M^\mathbb N \times M^\mathbb N \to \mathbb R^+$, $$ \widetilde d(a, b) = \min_{E \in \Gamma ([n],[m])} \sum_{i, j \in E} d(a_i, b_{j}). $$ This should define a metric, which I'm tempted to call string matching distance (which seems to be, after a brief google, already taken by the edit distance, which is different). Questions:

  • Does this metric have a name?
  • For which classes of metrics is this metric efficiently computable/approximable?

Let $(M,d)$ be a metric space. Consider two sequences $a = (a_i)_{i=1}^n$, $b = (b_i)_{i=1}^m$, $n, m \in \mathbb{N}$ with elements in $M$. For two sequences $[n],[m]$, call $$\Gamma([n], [m]) = \big\{E \subseteq [n] \times [m]\mid \forall i < j, k>l: \neg ((i,k) \in E \wedge (j, l) \in E) \wedge \pi_1(E) = [n] \wedge \pi_2(E) = [m]\big\}$$ the set of weakly increasing matchings (that's a title I made up for them).

Define a function $\tilde d \colon M^\mathbb N \times M^\mathbb N \to \mathbb R^+$, $$ \widetilde d(a, b) = \min_{E \in \Gamma ([n],[m])} \sum_{i, j \in E} d(a_i, b_{j}). $$ This should define a metric, which I'm tempted to call string matching distance (which seems to be, after a brief google, already taken by the edit distance, which is different). Questions:

  • Does this metric have a name?
  • For which classes of metrics is this metric efficiently computable/approximable?
formatting, added tag
Source Link
YCor
  • 63.9k
  • 5
  • 187
  • 286

Efficient Algorithmalgorithm for a Distancedistance on Stringsstrings

Let $(M,d)$ be a metric space. Consider two sequences $a = (a_i)_{i=1}^n$, $b = (b_i)_{i=1}^m$, $n, m \in \mathbb{N}$ with elements in $M$. For two sequences $[n],[m]$, call $\Gamma([n], [m]) = \{E \subseteq [n] \times [m]| \forall i < j, k>l: \neg ((i,k) \in E \wedge (j, l) \in E)\}$$$\Gamma([n], [m]) = \big\{E \subseteq [n] \times [m]\mid \forall i < j, k>l: \neg ((i,k) \in E \wedge (j, l) \in E)\big\}$$ the set of weakly increasing matchings (that's a title I made up for them).

Define a function $\tilde d \colon M^\mathbb N \times M^\mathbb N \to \mathbb R^+$, $$ \widetilde d(a, b) = \min_{E \in \Gamma ([n],[m])} \sum_{i, j \in E} d(a_i, b_{j}). $$ This should define a metric, which I'm tempted to call string matching distance (which seems to be, after a brief google, already taken by the edit distance, which is different). Questions:

  • Does this metric have a name?
  • For which classes of metrics is this metric efficiently computable/approximable?

Efficient Algorithm for a Distance on Strings

Let $(M,d)$ be a metric space. Consider two sequences $a = (a_i)_{i=1}^n$, $b = (b_i)_{i=1}^m$, $n, m \in \mathbb{N}$ with elements in $M$. For two sequences $[n],[m]$, call $\Gamma([n], [m]) = \{E \subseteq [n] \times [m]| \forall i < j, k>l: \neg ((i,k) \in E \wedge (j, l) \in E)\}$ the set of weakly increasing matchings (that's a title I made up for them).

Define a function $\tilde d \colon M^\mathbb N \times M^\mathbb N \to \mathbb R^+$, $$ \widetilde d(a, b) = \min_{E \in \Gamma ([n],[m])} \sum_{i, j \in E} d(a_i, b_{j}). $$ This should define a metric, which I'm tempted to call string matching distance (which seems to be, after a brief google, already taken by the edit distance, which is different). Questions:

  • Does this metric have a name?
  • For which classes of metrics is this metric efficiently computable/approximable?

Efficient algorithm for a distance on strings

Let $(M,d)$ be a metric space. Consider two sequences $a = (a_i)_{i=1}^n$, $b = (b_i)_{i=1}^m$, $n, m \in \mathbb{N}$ with elements in $M$. For two sequences $[n],[m]$, call $$\Gamma([n], [m]) = \big\{E \subseteq [n] \times [m]\mid \forall i < j, k>l: \neg ((i,k) \in E \wedge (j, l) \in E)\big\}$$ the set of weakly increasing matchings (that's a title I made up for them).

Define a function $\tilde d \colon M^\mathbb N \times M^\mathbb N \to \mathbb R^+$, $$ \widetilde d(a, b) = \min_{E \in \Gamma ([n],[m])} \sum_{i, j \in E} d(a_i, b_{j}). $$ This should define a metric, which I'm tempted to call string matching distance (which seems to be, after a brief google, already taken by the edit distance, which is different). Questions:

  • Does this metric have a name?
  • For which classes of metrics is this metric efficiently computable/approximable?
Source Link

Efficient Algorithm for a Distance on Strings

Let $(M,d)$ be a metric space. Consider two sequences $a = (a_i)_{i=1}^n$, $b = (b_i)_{i=1}^m$, $n, m \in \mathbb{N}$ with elements in $M$. For two sequences $[n],[m]$, call $\Gamma([n], [m]) = \{E \subseteq [n] \times [m]| \forall i < j, k>l: \neg ((i,k) \in E \wedge (j, l) \in E)\}$ the set of weakly increasing matchings (that's a title I made up for them).

Define a function $\tilde d \colon M^\mathbb N \times M^\mathbb N \to \mathbb R^+$, $$ \widetilde d(a, b) = \min_{E \in \Gamma ([n],[m])} \sum_{i, j \in E} d(a_i, b_{j}). $$ This should define a metric, which I'm tempted to call string matching distance (which seems to be, after a brief google, already taken by the edit distance, which is different). Questions:

  • Does this metric have a name?
  • For which classes of metrics is this metric efficiently computable/approximable?