Examples of non symmetric distances
Clash Royale CLAN TAG#URR8PPP
up vote
16
down vote
favorite
It is well known that the symmetric property is $d(x,y)=d(y,x)$ is not necessary in the definition of distance if the triangle inequality is carefully stated. On the other hand there are examples of functions satifying
(1) $d(x,y)geq 0$ and $d(x,y)=0$ if and only if $x=y$
(2) $d(x,y)leq d(x,z)+d(z,y)$
which are not symmetric: in the three point space $(a,b,c)$ take the non-zero values of $d$ as $1=d(a,b)=d(c,b)$, $2=d(b,a)=d(b,c)=d(a,c)=d(c,a)$.
Do you know other examples of "non symmetric distances"? Are there examples on the real numbers, etc.? Are there examples of spaces were every function satisfying (1) and (2) is symmetric?
metric-spaces big-list examples-counterexamples
add a comment |Â
up vote
16
down vote
favorite
It is well known that the symmetric property is $d(x,y)=d(y,x)$ is not necessary in the definition of distance if the triangle inequality is carefully stated. On the other hand there are examples of functions satifying
(1) $d(x,y)geq 0$ and $d(x,y)=0$ if and only if $x=y$
(2) $d(x,y)leq d(x,z)+d(z,y)$
which are not symmetric: in the three point space $(a,b,c)$ take the non-zero values of $d$ as $1=d(a,b)=d(c,b)$, $2=d(b,a)=d(b,c)=d(a,c)=d(c,a)$.
Do you know other examples of "non symmetric distances"? Are there examples on the real numbers, etc.? Are there examples of spaces were every function satisfying (1) and (2) is symmetric?
metric-spaces big-list examples-counterexamples
I'm not sure I understand your last question. What is a space? Do you mean a set? In that case, any of several constructions shows that any set with at least 2 elements admits an asymmetric metric.
â Qiaochu Yuan
Feb 23 '11 at 17:29
4
I think it's worth mentioning that such spaces are sometimes called "quasimetric spaces" en.wikipedia.org/wiki/Metric_%28mathematics%29#Quasimetrics or "asymmetric metric spaces". (When you google for these phrases, you will find quite a few scientific papers using them.) The papers Wilson: On quasi-metric spaces scholar.google.com/scholar?cites=6007326225178920620 and Kelly: Bitopological spaces scholar.google.com/scholar?cites=17692636850287560255 are often mentioned as references.
â Martin Sleziak
Mar 29 '11 at 17:20
I lived in a part of Toronto where most of the residential streets were one-way ( which tended to channel most of the traffic onto the 2-way main streets). So the minimum driving distance $d(x,y)$ from $x$ to $y$ was often not equal to $d(y,x).$
â DanielWainfleet
Aug 30 at 1:40
add a comment |Â
up vote
16
down vote
favorite
up vote
16
down vote
favorite
It is well known that the symmetric property is $d(x,y)=d(y,x)$ is not necessary in the definition of distance if the triangle inequality is carefully stated. On the other hand there are examples of functions satifying
(1) $d(x,y)geq 0$ and $d(x,y)=0$ if and only if $x=y$
(2) $d(x,y)leq d(x,z)+d(z,y)$
which are not symmetric: in the three point space $(a,b,c)$ take the non-zero values of $d$ as $1=d(a,b)=d(c,b)$, $2=d(b,a)=d(b,c)=d(a,c)=d(c,a)$.
Do you know other examples of "non symmetric distances"? Are there examples on the real numbers, etc.? Are there examples of spaces were every function satisfying (1) and (2) is symmetric?
metric-spaces big-list examples-counterexamples
It is well known that the symmetric property is $d(x,y)=d(y,x)$ is not necessary in the definition of distance if the triangle inequality is carefully stated. On the other hand there are examples of functions satifying
(1) $d(x,y)geq 0$ and $d(x,y)=0$ if and only if $x=y$
(2) $d(x,y)leq d(x,z)+d(z,y)$
which are not symmetric: in the three point space $(a,b,c)$ take the non-zero values of $d$ as $1=d(a,b)=d(c,b)$, $2=d(b,a)=d(b,c)=d(a,c)=d(c,a)$.
Do you know other examples of "non symmetric distances"? Are there examples on the real numbers, etc.? Are there examples of spaces were every function satisfying (1) and (2) is symmetric?
metric-spaces big-list examples-counterexamples
metric-spaces big-list examples-counterexamples
edited Jan 27 '12 at 6:25
Srivatsan
20.6k369122
20.6k369122
asked Feb 23 '11 at 15:59
user7416
I'm not sure I understand your last question. What is a space? Do you mean a set? In that case, any of several constructions shows that any set with at least 2 elements admits an asymmetric metric.
â Qiaochu Yuan
Feb 23 '11 at 17:29
4
I think it's worth mentioning that such spaces are sometimes called "quasimetric spaces" en.wikipedia.org/wiki/Metric_%28mathematics%29#Quasimetrics or "asymmetric metric spaces". (When you google for these phrases, you will find quite a few scientific papers using them.) The papers Wilson: On quasi-metric spaces scholar.google.com/scholar?cites=6007326225178920620 and Kelly: Bitopological spaces scholar.google.com/scholar?cites=17692636850287560255 are often mentioned as references.
â Martin Sleziak
Mar 29 '11 at 17:20
I lived in a part of Toronto where most of the residential streets were one-way ( which tended to channel most of the traffic onto the 2-way main streets). So the minimum driving distance $d(x,y)$ from $x$ to $y$ was often not equal to $d(y,x).$
â DanielWainfleet
Aug 30 at 1:40
add a comment |Â
I'm not sure I understand your last question. What is a space? Do you mean a set? In that case, any of several constructions shows that any set with at least 2 elements admits an asymmetric metric.
â Qiaochu Yuan
Feb 23 '11 at 17:29
4
I think it's worth mentioning that such spaces are sometimes called "quasimetric spaces" en.wikipedia.org/wiki/Metric_%28mathematics%29#Quasimetrics or "asymmetric metric spaces". (When you google for these phrases, you will find quite a few scientific papers using them.) The papers Wilson: On quasi-metric spaces scholar.google.com/scholar?cites=6007326225178920620 and Kelly: Bitopological spaces scholar.google.com/scholar?cites=17692636850287560255 are often mentioned as references.
â Martin Sleziak
Mar 29 '11 at 17:20
I lived in a part of Toronto where most of the residential streets were one-way ( which tended to channel most of the traffic onto the 2-way main streets). So the minimum driving distance $d(x,y)$ from $x$ to $y$ was often not equal to $d(y,x).$
â DanielWainfleet
Aug 30 at 1:40
I'm not sure I understand your last question. What is a space? Do you mean a set? In that case, any of several constructions shows that any set with at least 2 elements admits an asymmetric metric.
â Qiaochu Yuan
Feb 23 '11 at 17:29
I'm not sure I understand your last question. What is a space? Do you mean a set? In that case, any of several constructions shows that any set with at least 2 elements admits an asymmetric metric.
â Qiaochu Yuan
Feb 23 '11 at 17:29
4
4
I think it's worth mentioning that such spaces are sometimes called "quasimetric spaces" en.wikipedia.org/wiki/Metric_%28mathematics%29#Quasimetrics or "asymmetric metric spaces". (When you google for these phrases, you will find quite a few scientific papers using them.) The papers Wilson: On quasi-metric spaces scholar.google.com/scholar?cites=6007326225178920620 and Kelly: Bitopological spaces scholar.google.com/scholar?cites=17692636850287560255 are often mentioned as references.
â Martin Sleziak
Mar 29 '11 at 17:20
I think it's worth mentioning that such spaces are sometimes called "quasimetric spaces" en.wikipedia.org/wiki/Metric_%28mathematics%29#Quasimetrics or "asymmetric metric spaces". (When you google for these phrases, you will find quite a few scientific papers using them.) The papers Wilson: On quasi-metric spaces scholar.google.com/scholar?cites=6007326225178920620 and Kelly: Bitopological spaces scholar.google.com/scholar?cites=17692636850287560255 are often mentioned as references.
â Martin Sleziak
Mar 29 '11 at 17:20
I lived in a part of Toronto where most of the residential streets were one-way ( which tended to channel most of the traffic onto the 2-way main streets). So the minimum driving distance $d(x,y)$ from $x$ to $y$ was often not equal to $d(y,x).$
â DanielWainfleet
Aug 30 at 1:40
I lived in a part of Toronto where most of the residential streets were one-way ( which tended to channel most of the traffic onto the 2-way main streets). So the minimum driving distance $d(x,y)$ from $x$ to $y$ was often not equal to $d(y,x).$
â DanielWainfleet
Aug 30 at 1:40
add a comment |Â
7 Answers
7
active
oldest
votes
up vote
22
down vote
accepted
A classic example is the circle $S^1$ with metric the length of the shortest clockwise path between $x$ and $y$, but let me say some things in general.
Lawvere once made the point that this is really a much more natural definition of a metric space, since it allows them to be interpreted as a type of enriched category. The triangle inequality then becomes a consequence of composition of morphisms, which is extremely reasonable if you think of distances in a metric space as measuring "the best way to get from $a$ to $b$": clearly the best way to get from $a$ to $b$ to $c$ is at most as good at the best way to get from $a$ to $c$, and this is precisely the (asymmetric) triangle inequality.
On the other hand, there is no reason in general that the best way to get from $a$ to $b$ has to look anything like the best way to get from $b$ to $a$. This is the sense in which the symmetry requirement is unnatural. There is also no reason in general that it should be possible to get from $a$ to $b$ at all! This is the sense in which the requirement that distances be finite is unnatural. Finally, there is no reason in general that it should not be possible to instantaneously get from $a$ to $b$ (in other words, that $a$ and $b$ be isomorphic); this is the sense in which the requirement that distances be positive-definite is unnatural.
Here is how to use that idea to generate a large class of examples. Let $(M, d)$ be a metric space and let $h : M to mathbbR$ be a function. Define a new metric
$$d'(x, y) = begincases d(x, y) + h(y) - h(x) text if h(y) ge h(x) \
d(x, y) text otherwise endcases.$$
Intuitively, $h$ is a potential (e.g. a height if one is thinking of gravitational potential), and the new metric $d'$ penalizes you for going against the potential (e.g. going uphill).
The directed graph example given by mjqxxxx is also a good illustration of this philosophy about metric spaces.
1
In the third paragraph, if your geometric intuition is getting in the way pretend that a and b are not points in some space but possible states of a physical system and d(a, b) measures the minimal amount of energy that needs to be put into the system to get it from state a to state b.
â Qiaochu Yuan
Feb 23 '11 at 17:33
add a comment |Â
up vote
10
down vote
Most distances in real life are going to be more or less asymmetric due to one-way roads, going uphill resp. downhill, different public transportation schedules, congestion, etc.
and don't forget friendship closeness. I might not be my close friend's close friend.
â MaudPieTheRocktorate
Jul 5 at 7:49
add a comment |Â
up vote
8
down vote
The Hausdorff distance is a symmetric version of a natural non-symmetric distance.
add a comment |Â
up vote
5
down vote
For any directed graph $G=(V,E)$, we may define a non-symmetric distance as follows: for $x,yin V$, the directed graph distance is the length of the shortest directed path from $x$ to $y$, or $infty$ if there is no such path. This clearly satisfies the triangle inequality as stated above. An even more general family of examples is generated by allowing a positive weight, in which case we may take the distance to be the smallest weight of any directed path from $x$ to $y$ (or, if $G$ is infinite, the greatest lower bound of all such weights; in this case we must additionally require all edge weights to be bounded away from zero).
add a comment |Â
up vote
3
down vote
This may or may not be what you're looking for, but I thought the idea was fun, so I'll share:
This will be a non-symmetric metric on $mathbbZ^+$:
Suppose that one is only allowed to move left one unit, and in addition, one is allowed to jump right from one power of two to the next. I.e., to find a sequence of steps to get from 5 to 11, one must travel as follows:
$$
5 to 4 to8 to16 to15 to 14 to13 to12to11.
$$
For a (positive) integer $n$, define $T(n)$ to be largest power of $2$ which is less than or equal to n. Similarly, define $S(n)$ to be the smallest power of $2$ greater than or equal to $n$. Then, if $|cdot|$ denotes the usual absolute value, we have:
$$
d(x,y) =
left{
beginarraylcc
|x - y| & & x geq y \
|x - T(x)| + log_2(S(y)/T(x)) + |S(y) - y| & & x < y
endarray
right.
$$
If $x leq y$, one just moves left $|y - x|$ units. If not, one moves from $x$ to the largest power of $x$ less than or equal to $x$. One then jumps $log_2(S(y)) - log_2(T(x))$ powers of $2$, and finally moves the remaining $|S(y) - y|$ units. It is not hard to show that this a metric (It clear satisfies condition (i), and to show it satisfies (ii), one just needs to consider the case of $d(x,y)$ when $x > y$).
This metric came to mind in lieu of Cauchy's Proof of the Arithmetic-Geometric mean inequality (http://en.wikipedia.org/wiki/Inequality_of_arithmetic_and_geometric_means#Proof_by_Cauchy).
Let $P(n)$ denote the statement that the AG-mean inequality is true for $n$ numbers. Cauchy's idea was to prove the inequality by first inducting along powers of two (i.e., P($2^k$) is true implies P($2^k+1$) is true. Then, he showed that $P(n)$ is true implies $P(n-1)$ is true.
Assuming that we know the arithmetic-geometric mean inequality is true for some step $n$, $d(n,m)$ is the number of steps needed using Cauchy's proof to show $P(m)$ is true, assuming that we know $P(n)$ is true.
add a comment |Â
up vote
1
down vote
What about the following distance function on the reals?
$$beginarrayrcl
d(x,y) & = 1, & mboxif ;; x<y \
& = 2, & mboxif ;; x>y \
& = 0, & mboxif ;; x=y
endarray$$
A bit artificial, but it seems to fulfill the requirements, unless I overlooked something.
Nice! It seems to be possible to generalize your answer as follows: let $X$ be a set with at least two elements $a$ and $b$. Let $d(a,b)=1$ and $d(x,y)=2$ for all other pairs of distinct elements of $X$ (and let $d(x,x)=0$). If this works, every space with at leas two elements has a non symmetric distance.
â user7416
Feb 23 '11 at 17:57
If you want a generalization, see Qiaochu's answer. I think it is more deserving of being attributed the tick mark.
â Raskolnikov
Feb 23 '11 at 18:01
add a comment |Â
up vote
0
down vote
$d(x,y)=begincasesx-y, mbox if xgeq y\1, mbox otherwise endcases$ will do!
add a comment |Â
7 Answers
7
active
oldest
votes
7 Answers
7
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
22
down vote
accepted
A classic example is the circle $S^1$ with metric the length of the shortest clockwise path between $x$ and $y$, but let me say some things in general.
Lawvere once made the point that this is really a much more natural definition of a metric space, since it allows them to be interpreted as a type of enriched category. The triangle inequality then becomes a consequence of composition of morphisms, which is extremely reasonable if you think of distances in a metric space as measuring "the best way to get from $a$ to $b$": clearly the best way to get from $a$ to $b$ to $c$ is at most as good at the best way to get from $a$ to $c$, and this is precisely the (asymmetric) triangle inequality.
On the other hand, there is no reason in general that the best way to get from $a$ to $b$ has to look anything like the best way to get from $b$ to $a$. This is the sense in which the symmetry requirement is unnatural. There is also no reason in general that it should be possible to get from $a$ to $b$ at all! This is the sense in which the requirement that distances be finite is unnatural. Finally, there is no reason in general that it should not be possible to instantaneously get from $a$ to $b$ (in other words, that $a$ and $b$ be isomorphic); this is the sense in which the requirement that distances be positive-definite is unnatural.
Here is how to use that idea to generate a large class of examples. Let $(M, d)$ be a metric space and let $h : M to mathbbR$ be a function. Define a new metric
$$d'(x, y) = begincases d(x, y) + h(y) - h(x) text if h(y) ge h(x) \
d(x, y) text otherwise endcases.$$
Intuitively, $h$ is a potential (e.g. a height if one is thinking of gravitational potential), and the new metric $d'$ penalizes you for going against the potential (e.g. going uphill).
The directed graph example given by mjqxxxx is also a good illustration of this philosophy about metric spaces.
1
In the third paragraph, if your geometric intuition is getting in the way pretend that a and b are not points in some space but possible states of a physical system and d(a, b) measures the minimal amount of energy that needs to be put into the system to get it from state a to state b.
â Qiaochu Yuan
Feb 23 '11 at 17:33
add a comment |Â
up vote
22
down vote
accepted
A classic example is the circle $S^1$ with metric the length of the shortest clockwise path between $x$ and $y$, but let me say some things in general.
Lawvere once made the point that this is really a much more natural definition of a metric space, since it allows them to be interpreted as a type of enriched category. The triangle inequality then becomes a consequence of composition of morphisms, which is extremely reasonable if you think of distances in a metric space as measuring "the best way to get from $a$ to $b$": clearly the best way to get from $a$ to $b$ to $c$ is at most as good at the best way to get from $a$ to $c$, and this is precisely the (asymmetric) triangle inequality.
On the other hand, there is no reason in general that the best way to get from $a$ to $b$ has to look anything like the best way to get from $b$ to $a$. This is the sense in which the symmetry requirement is unnatural. There is also no reason in general that it should be possible to get from $a$ to $b$ at all! This is the sense in which the requirement that distances be finite is unnatural. Finally, there is no reason in general that it should not be possible to instantaneously get from $a$ to $b$ (in other words, that $a$ and $b$ be isomorphic); this is the sense in which the requirement that distances be positive-definite is unnatural.
Here is how to use that idea to generate a large class of examples. Let $(M, d)$ be a metric space and let $h : M to mathbbR$ be a function. Define a new metric
$$d'(x, y) = begincases d(x, y) + h(y) - h(x) text if h(y) ge h(x) \
d(x, y) text otherwise endcases.$$
Intuitively, $h$ is a potential (e.g. a height if one is thinking of gravitational potential), and the new metric $d'$ penalizes you for going against the potential (e.g. going uphill).
The directed graph example given by mjqxxxx is also a good illustration of this philosophy about metric spaces.
1
In the third paragraph, if your geometric intuition is getting in the way pretend that a and b are not points in some space but possible states of a physical system and d(a, b) measures the minimal amount of energy that needs to be put into the system to get it from state a to state b.
â Qiaochu Yuan
Feb 23 '11 at 17:33
add a comment |Â
up vote
22
down vote
accepted
up vote
22
down vote
accepted
A classic example is the circle $S^1$ with metric the length of the shortest clockwise path between $x$ and $y$, but let me say some things in general.
Lawvere once made the point that this is really a much more natural definition of a metric space, since it allows them to be interpreted as a type of enriched category. The triangle inequality then becomes a consequence of composition of morphisms, which is extremely reasonable if you think of distances in a metric space as measuring "the best way to get from $a$ to $b$": clearly the best way to get from $a$ to $b$ to $c$ is at most as good at the best way to get from $a$ to $c$, and this is precisely the (asymmetric) triangle inequality.
On the other hand, there is no reason in general that the best way to get from $a$ to $b$ has to look anything like the best way to get from $b$ to $a$. This is the sense in which the symmetry requirement is unnatural. There is also no reason in general that it should be possible to get from $a$ to $b$ at all! This is the sense in which the requirement that distances be finite is unnatural. Finally, there is no reason in general that it should not be possible to instantaneously get from $a$ to $b$ (in other words, that $a$ and $b$ be isomorphic); this is the sense in which the requirement that distances be positive-definite is unnatural.
Here is how to use that idea to generate a large class of examples. Let $(M, d)$ be a metric space and let $h : M to mathbbR$ be a function. Define a new metric
$$d'(x, y) = begincases d(x, y) + h(y) - h(x) text if h(y) ge h(x) \
d(x, y) text otherwise endcases.$$
Intuitively, $h$ is a potential (e.g. a height if one is thinking of gravitational potential), and the new metric $d'$ penalizes you for going against the potential (e.g. going uphill).
The directed graph example given by mjqxxxx is also a good illustration of this philosophy about metric spaces.
A classic example is the circle $S^1$ with metric the length of the shortest clockwise path between $x$ and $y$, but let me say some things in general.
Lawvere once made the point that this is really a much more natural definition of a metric space, since it allows them to be interpreted as a type of enriched category. The triangle inequality then becomes a consequence of composition of morphisms, which is extremely reasonable if you think of distances in a metric space as measuring "the best way to get from $a$ to $b$": clearly the best way to get from $a$ to $b$ to $c$ is at most as good at the best way to get from $a$ to $c$, and this is precisely the (asymmetric) triangle inequality.
On the other hand, there is no reason in general that the best way to get from $a$ to $b$ has to look anything like the best way to get from $b$ to $a$. This is the sense in which the symmetry requirement is unnatural. There is also no reason in general that it should be possible to get from $a$ to $b$ at all! This is the sense in which the requirement that distances be finite is unnatural. Finally, there is no reason in general that it should not be possible to instantaneously get from $a$ to $b$ (in other words, that $a$ and $b$ be isomorphic); this is the sense in which the requirement that distances be positive-definite is unnatural.
Here is how to use that idea to generate a large class of examples. Let $(M, d)$ be a metric space and let $h : M to mathbbR$ be a function. Define a new metric
$$d'(x, y) = begincases d(x, y) + h(y) - h(x) text if h(y) ge h(x) \
d(x, y) text otherwise endcases.$$
Intuitively, $h$ is a potential (e.g. a height if one is thinking of gravitational potential), and the new metric $d'$ penalizes you for going against the potential (e.g. going uphill).
The directed graph example given by mjqxxxx is also a good illustration of this philosophy about metric spaces.
answered Feb 23 '11 at 17:09
Qiaochu Yuan
270k32567904
270k32567904
1
In the third paragraph, if your geometric intuition is getting in the way pretend that a and b are not points in some space but possible states of a physical system and d(a, b) measures the minimal amount of energy that needs to be put into the system to get it from state a to state b.
â Qiaochu Yuan
Feb 23 '11 at 17:33
add a comment |Â
1
In the third paragraph, if your geometric intuition is getting in the way pretend that a and b are not points in some space but possible states of a physical system and d(a, b) measures the minimal amount of energy that needs to be put into the system to get it from state a to state b.
â Qiaochu Yuan
Feb 23 '11 at 17:33
1
1
In the third paragraph, if your geometric intuition is getting in the way pretend that a and b are not points in some space but possible states of a physical system and d(a, b) measures the minimal amount of energy that needs to be put into the system to get it from state a to state b.
â Qiaochu Yuan
Feb 23 '11 at 17:33
In the third paragraph, if your geometric intuition is getting in the way pretend that a and b are not points in some space but possible states of a physical system and d(a, b) measures the minimal amount of energy that needs to be put into the system to get it from state a to state b.
â Qiaochu Yuan
Feb 23 '11 at 17:33
add a comment |Â
up vote
10
down vote
Most distances in real life are going to be more or less asymmetric due to one-way roads, going uphill resp. downhill, different public transportation schedules, congestion, etc.
and don't forget friendship closeness. I might not be my close friend's close friend.
â MaudPieTheRocktorate
Jul 5 at 7:49
add a comment |Â
up vote
10
down vote
Most distances in real life are going to be more or less asymmetric due to one-way roads, going uphill resp. downhill, different public transportation schedules, congestion, etc.
and don't forget friendship closeness. I might not be my close friend's close friend.
â MaudPieTheRocktorate
Jul 5 at 7:49
add a comment |Â
up vote
10
down vote
up vote
10
down vote
Most distances in real life are going to be more or less asymmetric due to one-way roads, going uphill resp. downhill, different public transportation schedules, congestion, etc.
Most distances in real life are going to be more or less asymmetric due to one-way roads, going uphill resp. downhill, different public transportation schedules, congestion, etc.
answered Feb 23 '11 at 17:32
Dan Petersen
5,37421929
5,37421929
and don't forget friendship closeness. I might not be my close friend's close friend.
â MaudPieTheRocktorate
Jul 5 at 7:49
add a comment |Â
and don't forget friendship closeness. I might not be my close friend's close friend.
â MaudPieTheRocktorate
Jul 5 at 7:49
and don't forget friendship closeness. I might not be my close friend's close friend.
â MaudPieTheRocktorate
Jul 5 at 7:49
and don't forget friendship closeness. I might not be my close friend's close friend.
â MaudPieTheRocktorate
Jul 5 at 7:49
add a comment |Â
up vote
8
down vote
The Hausdorff distance is a symmetric version of a natural non-symmetric distance.
add a comment |Â
up vote
8
down vote
The Hausdorff distance is a symmetric version of a natural non-symmetric distance.
add a comment |Â
up vote
8
down vote
up vote
8
down vote
The Hausdorff distance is a symmetric version of a natural non-symmetric distance.
The Hausdorff distance is a symmetric version of a natural non-symmetric distance.
answered Feb 23 '11 at 17:22
lhf
157k9161372
157k9161372
add a comment |Â
add a comment |Â
up vote
5
down vote
For any directed graph $G=(V,E)$, we may define a non-symmetric distance as follows: for $x,yin V$, the directed graph distance is the length of the shortest directed path from $x$ to $y$, or $infty$ if there is no such path. This clearly satisfies the triangle inequality as stated above. An even more general family of examples is generated by allowing a positive weight, in which case we may take the distance to be the smallest weight of any directed path from $x$ to $y$ (or, if $G$ is infinite, the greatest lower bound of all such weights; in this case we must additionally require all edge weights to be bounded away from zero).
add a comment |Â
up vote
5
down vote
For any directed graph $G=(V,E)$, we may define a non-symmetric distance as follows: for $x,yin V$, the directed graph distance is the length of the shortest directed path from $x$ to $y$, or $infty$ if there is no such path. This clearly satisfies the triangle inequality as stated above. An even more general family of examples is generated by allowing a positive weight, in which case we may take the distance to be the smallest weight of any directed path from $x$ to $y$ (or, if $G$ is infinite, the greatest lower bound of all such weights; in this case we must additionally require all edge weights to be bounded away from zero).
add a comment |Â
up vote
5
down vote
up vote
5
down vote
For any directed graph $G=(V,E)$, we may define a non-symmetric distance as follows: for $x,yin V$, the directed graph distance is the length of the shortest directed path from $x$ to $y$, or $infty$ if there is no such path. This clearly satisfies the triangle inequality as stated above. An even more general family of examples is generated by allowing a positive weight, in which case we may take the distance to be the smallest weight of any directed path from $x$ to $y$ (or, if $G$ is infinite, the greatest lower bound of all such weights; in this case we must additionally require all edge weights to be bounded away from zero).
For any directed graph $G=(V,E)$, we may define a non-symmetric distance as follows: for $x,yin V$, the directed graph distance is the length of the shortest directed path from $x$ to $y$, or $infty$ if there is no such path. This clearly satisfies the triangle inequality as stated above. An even more general family of examples is generated by allowing a positive weight, in which case we may take the distance to be the smallest weight of any directed path from $x$ to $y$ (or, if $G$ is infinite, the greatest lower bound of all such weights; in this case we must additionally require all edge weights to be bounded away from zero).
answered Feb 23 '11 at 17:08
mjqxxxx
29.6k23883
29.6k23883
add a comment |Â
add a comment |Â
up vote
3
down vote
This may or may not be what you're looking for, but I thought the idea was fun, so I'll share:
This will be a non-symmetric metric on $mathbbZ^+$:
Suppose that one is only allowed to move left one unit, and in addition, one is allowed to jump right from one power of two to the next. I.e., to find a sequence of steps to get from 5 to 11, one must travel as follows:
$$
5 to 4 to8 to16 to15 to 14 to13 to12to11.
$$
For a (positive) integer $n$, define $T(n)$ to be largest power of $2$ which is less than or equal to n. Similarly, define $S(n)$ to be the smallest power of $2$ greater than or equal to $n$. Then, if $|cdot|$ denotes the usual absolute value, we have:
$$
d(x,y) =
left{
beginarraylcc
|x - y| & & x geq y \
|x - T(x)| + log_2(S(y)/T(x)) + |S(y) - y| & & x < y
endarray
right.
$$
If $x leq y$, one just moves left $|y - x|$ units. If not, one moves from $x$ to the largest power of $x$ less than or equal to $x$. One then jumps $log_2(S(y)) - log_2(T(x))$ powers of $2$, and finally moves the remaining $|S(y) - y|$ units. It is not hard to show that this a metric (It clear satisfies condition (i), and to show it satisfies (ii), one just needs to consider the case of $d(x,y)$ when $x > y$).
This metric came to mind in lieu of Cauchy's Proof of the Arithmetic-Geometric mean inequality (http://en.wikipedia.org/wiki/Inequality_of_arithmetic_and_geometric_means#Proof_by_Cauchy).
Let $P(n)$ denote the statement that the AG-mean inequality is true for $n$ numbers. Cauchy's idea was to prove the inequality by first inducting along powers of two (i.e., P($2^k$) is true implies P($2^k+1$) is true. Then, he showed that $P(n)$ is true implies $P(n-1)$ is true.
Assuming that we know the arithmetic-geometric mean inequality is true for some step $n$, $d(n,m)$ is the number of steps needed using Cauchy's proof to show $P(m)$ is true, assuming that we know $P(n)$ is true.
add a comment |Â
up vote
3
down vote
This may or may not be what you're looking for, but I thought the idea was fun, so I'll share:
This will be a non-symmetric metric on $mathbbZ^+$:
Suppose that one is only allowed to move left one unit, and in addition, one is allowed to jump right from one power of two to the next. I.e., to find a sequence of steps to get from 5 to 11, one must travel as follows:
$$
5 to 4 to8 to16 to15 to 14 to13 to12to11.
$$
For a (positive) integer $n$, define $T(n)$ to be largest power of $2$ which is less than or equal to n. Similarly, define $S(n)$ to be the smallest power of $2$ greater than or equal to $n$. Then, if $|cdot|$ denotes the usual absolute value, we have:
$$
d(x,y) =
left{
beginarraylcc
|x - y| & & x geq y \
|x - T(x)| + log_2(S(y)/T(x)) + |S(y) - y| & & x < y
endarray
right.
$$
If $x leq y$, one just moves left $|y - x|$ units. If not, one moves from $x$ to the largest power of $x$ less than or equal to $x$. One then jumps $log_2(S(y)) - log_2(T(x))$ powers of $2$, and finally moves the remaining $|S(y) - y|$ units. It is not hard to show that this a metric (It clear satisfies condition (i), and to show it satisfies (ii), one just needs to consider the case of $d(x,y)$ when $x > y$).
This metric came to mind in lieu of Cauchy's Proof of the Arithmetic-Geometric mean inequality (http://en.wikipedia.org/wiki/Inequality_of_arithmetic_and_geometric_means#Proof_by_Cauchy).
Let $P(n)$ denote the statement that the AG-mean inequality is true for $n$ numbers. Cauchy's idea was to prove the inequality by first inducting along powers of two (i.e., P($2^k$) is true implies P($2^k+1$) is true. Then, he showed that $P(n)$ is true implies $P(n-1)$ is true.
Assuming that we know the arithmetic-geometric mean inequality is true for some step $n$, $d(n,m)$ is the number of steps needed using Cauchy's proof to show $P(m)$ is true, assuming that we know $P(n)$ is true.
add a comment |Â
up vote
3
down vote
up vote
3
down vote
This may or may not be what you're looking for, but I thought the idea was fun, so I'll share:
This will be a non-symmetric metric on $mathbbZ^+$:
Suppose that one is only allowed to move left one unit, and in addition, one is allowed to jump right from one power of two to the next. I.e., to find a sequence of steps to get from 5 to 11, one must travel as follows:
$$
5 to 4 to8 to16 to15 to 14 to13 to12to11.
$$
For a (positive) integer $n$, define $T(n)$ to be largest power of $2$ which is less than or equal to n. Similarly, define $S(n)$ to be the smallest power of $2$ greater than or equal to $n$. Then, if $|cdot|$ denotes the usual absolute value, we have:
$$
d(x,y) =
left{
beginarraylcc
|x - y| & & x geq y \
|x - T(x)| + log_2(S(y)/T(x)) + |S(y) - y| & & x < y
endarray
right.
$$
If $x leq y$, one just moves left $|y - x|$ units. If not, one moves from $x$ to the largest power of $x$ less than or equal to $x$. One then jumps $log_2(S(y)) - log_2(T(x))$ powers of $2$, and finally moves the remaining $|S(y) - y|$ units. It is not hard to show that this a metric (It clear satisfies condition (i), and to show it satisfies (ii), one just needs to consider the case of $d(x,y)$ when $x > y$).
This metric came to mind in lieu of Cauchy's Proof of the Arithmetic-Geometric mean inequality (http://en.wikipedia.org/wiki/Inequality_of_arithmetic_and_geometric_means#Proof_by_Cauchy).
Let $P(n)$ denote the statement that the AG-mean inequality is true for $n$ numbers. Cauchy's idea was to prove the inequality by first inducting along powers of two (i.e., P($2^k$) is true implies P($2^k+1$) is true. Then, he showed that $P(n)$ is true implies $P(n-1)$ is true.
Assuming that we know the arithmetic-geometric mean inequality is true for some step $n$, $d(n,m)$ is the number of steps needed using Cauchy's proof to show $P(m)$ is true, assuming that we know $P(n)$ is true.
This may or may not be what you're looking for, but I thought the idea was fun, so I'll share:
This will be a non-symmetric metric on $mathbbZ^+$:
Suppose that one is only allowed to move left one unit, and in addition, one is allowed to jump right from one power of two to the next. I.e., to find a sequence of steps to get from 5 to 11, one must travel as follows:
$$
5 to 4 to8 to16 to15 to 14 to13 to12to11.
$$
For a (positive) integer $n$, define $T(n)$ to be largest power of $2$ which is less than or equal to n. Similarly, define $S(n)$ to be the smallest power of $2$ greater than or equal to $n$. Then, if $|cdot|$ denotes the usual absolute value, we have:
$$
d(x,y) =
left{
beginarraylcc
|x - y| & & x geq y \
|x - T(x)| + log_2(S(y)/T(x)) + |S(y) - y| & & x < y
endarray
right.
$$
If $x leq y$, one just moves left $|y - x|$ units. If not, one moves from $x$ to the largest power of $x$ less than or equal to $x$. One then jumps $log_2(S(y)) - log_2(T(x))$ powers of $2$, and finally moves the remaining $|S(y) - y|$ units. It is not hard to show that this a metric (It clear satisfies condition (i), and to show it satisfies (ii), one just needs to consider the case of $d(x,y)$ when $x > y$).
This metric came to mind in lieu of Cauchy's Proof of the Arithmetic-Geometric mean inequality (http://en.wikipedia.org/wiki/Inequality_of_arithmetic_and_geometric_means#Proof_by_Cauchy).
Let $P(n)$ denote the statement that the AG-mean inequality is true for $n$ numbers. Cauchy's idea was to prove the inequality by first inducting along powers of two (i.e., P($2^k$) is true implies P($2^k+1$) is true. Then, he showed that $P(n)$ is true implies $P(n-1)$ is true.
Assuming that we know the arithmetic-geometric mean inequality is true for some step $n$, $d(n,m)$ is the number of steps needed using Cauchy's proof to show $P(m)$ is true, assuming that we know $P(n)$ is true.
answered Feb 23 '11 at 17:57
JavaMan
10.6k12553
10.6k12553
add a comment |Â
add a comment |Â
up vote
1
down vote
What about the following distance function on the reals?
$$beginarrayrcl
d(x,y) & = 1, & mboxif ;; x<y \
& = 2, & mboxif ;; x>y \
& = 0, & mboxif ;; x=y
endarray$$
A bit artificial, but it seems to fulfill the requirements, unless I overlooked something.
Nice! It seems to be possible to generalize your answer as follows: let $X$ be a set with at least two elements $a$ and $b$. Let $d(a,b)=1$ and $d(x,y)=2$ for all other pairs of distinct elements of $X$ (and let $d(x,x)=0$). If this works, every space with at leas two elements has a non symmetric distance.
â user7416
Feb 23 '11 at 17:57
If you want a generalization, see Qiaochu's answer. I think it is more deserving of being attributed the tick mark.
â Raskolnikov
Feb 23 '11 at 18:01
add a comment |Â
up vote
1
down vote
What about the following distance function on the reals?
$$beginarrayrcl
d(x,y) & = 1, & mboxif ;; x<y \
& = 2, & mboxif ;; x>y \
& = 0, & mboxif ;; x=y
endarray$$
A bit artificial, but it seems to fulfill the requirements, unless I overlooked something.
Nice! It seems to be possible to generalize your answer as follows: let $X$ be a set with at least two elements $a$ and $b$. Let $d(a,b)=1$ and $d(x,y)=2$ for all other pairs of distinct elements of $X$ (and let $d(x,x)=0$). If this works, every space with at leas two elements has a non symmetric distance.
â user7416
Feb 23 '11 at 17:57
If you want a generalization, see Qiaochu's answer. I think it is more deserving of being attributed the tick mark.
â Raskolnikov
Feb 23 '11 at 18:01
add a comment |Â
up vote
1
down vote
up vote
1
down vote
What about the following distance function on the reals?
$$beginarrayrcl
d(x,y) & = 1, & mboxif ;; x<y \
& = 2, & mboxif ;; x>y \
& = 0, & mboxif ;; x=y
endarray$$
A bit artificial, but it seems to fulfill the requirements, unless I overlooked something.
What about the following distance function on the reals?
$$beginarrayrcl
d(x,y) & = 1, & mboxif ;; x<y \
& = 2, & mboxif ;; x>y \
& = 0, & mboxif ;; x=y
endarray$$
A bit artificial, but it seems to fulfill the requirements, unless I overlooked something.
answered Feb 23 '11 at 17:12
Raskolnikov
12.3k23370
12.3k23370
Nice! It seems to be possible to generalize your answer as follows: let $X$ be a set with at least two elements $a$ and $b$. Let $d(a,b)=1$ and $d(x,y)=2$ for all other pairs of distinct elements of $X$ (and let $d(x,x)=0$). If this works, every space with at leas two elements has a non symmetric distance.
â user7416
Feb 23 '11 at 17:57
If you want a generalization, see Qiaochu's answer. I think it is more deserving of being attributed the tick mark.
â Raskolnikov
Feb 23 '11 at 18:01
add a comment |Â
Nice! It seems to be possible to generalize your answer as follows: let $X$ be a set with at least two elements $a$ and $b$. Let $d(a,b)=1$ and $d(x,y)=2$ for all other pairs of distinct elements of $X$ (and let $d(x,x)=0$). If this works, every space with at leas two elements has a non symmetric distance.
â user7416
Feb 23 '11 at 17:57
If you want a generalization, see Qiaochu's answer. I think it is more deserving of being attributed the tick mark.
â Raskolnikov
Feb 23 '11 at 18:01
Nice! It seems to be possible to generalize your answer as follows: let $X$ be a set with at least two elements $a$ and $b$. Let $d(a,b)=1$ and $d(x,y)=2$ for all other pairs of distinct elements of $X$ (and let $d(x,x)=0$). If this works, every space with at leas two elements has a non symmetric distance.
â user7416
Feb 23 '11 at 17:57
Nice! It seems to be possible to generalize your answer as follows: let $X$ be a set with at least two elements $a$ and $b$. Let $d(a,b)=1$ and $d(x,y)=2$ for all other pairs of distinct elements of $X$ (and let $d(x,x)=0$). If this works, every space with at leas two elements has a non symmetric distance.
â user7416
Feb 23 '11 at 17:57
If you want a generalization, see Qiaochu's answer. I think it is more deserving of being attributed the tick mark.
â Raskolnikov
Feb 23 '11 at 18:01
If you want a generalization, see Qiaochu's answer. I think it is more deserving of being attributed the tick mark.
â Raskolnikov
Feb 23 '11 at 18:01
add a comment |Â
up vote
0
down vote
$d(x,y)=begincasesx-y, mbox if xgeq y\1, mbox otherwise endcases$ will do!
add a comment |Â
up vote
0
down vote
$d(x,y)=begincasesx-y, mbox if xgeq y\1, mbox otherwise endcases$ will do!
add a comment |Â
up vote
0
down vote
up vote
0
down vote
$d(x,y)=begincasesx-y, mbox if xgeq y\1, mbox otherwise endcases$ will do!
$d(x,y)=begincasesx-y, mbox if xgeq y\1, mbox otherwise endcases$ will do!
answered Aug 29 at 22:36
Robson
47320
47320
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f23390%2fexamples-of-non-symmetric-distances%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
I'm not sure I understand your last question. What is a space? Do you mean a set? In that case, any of several constructions shows that any set with at least 2 elements admits an asymmetric metric.
â Qiaochu Yuan
Feb 23 '11 at 17:29
4
I think it's worth mentioning that such spaces are sometimes called "quasimetric spaces" en.wikipedia.org/wiki/Metric_%28mathematics%29#Quasimetrics or "asymmetric metric spaces". (When you google for these phrases, you will find quite a few scientific papers using them.) The papers Wilson: On quasi-metric spaces scholar.google.com/scholar?cites=6007326225178920620 and Kelly: Bitopological spaces scholar.google.com/scholar?cites=17692636850287560255 are often mentioned as references.
â Martin Sleziak
Mar 29 '11 at 17:20
I lived in a part of Toronto where most of the residential streets were one-way ( which tended to channel most of the traffic onto the 2-way main streets). So the minimum driving distance $d(x,y)$ from $x$ to $y$ was often not equal to $d(y,x).$
â DanielWainfleet
Aug 30 at 1:40