Metric Spaces Flashcards
In this section we will see what happens when we abstract the notion of distance. In Euclidean spaces of dimension one, two and three we have a concrete notion of the distance between two points.
d is Metric on X
Let X be a set and d:X×X→R a function. Then d is called a metric on X if, for all x,y,z∈X, we have
* positivity
* symmetry
* triangle inequality
* nondegenerate
If d is a metric on X, then the pair (X,d) is called a metric space. If it is clear what is the metric d, then one also calls X a metric space.
Positivity
d(x,y)≥0
Symmetry
d(x,y) = d(y,x)
Triangle Inequality
d(x,z)≤ d(x,y)+d(y,z)
Nondegenerate
d(x,y) = 0⇔x=y
Reverse Triangle Inequality
|d(x,z)-d(y,z)|≤d(x,y) for all x,y,z∈X.
The Discrete Metric
The discrete (or point metric) measures the distance between x and y by checking if x = y. Let X be a set. Define d: X×X→R by
d(x,y){█(1 if x≠y,@0 if x=y)┤
The p-metrics
The p-metrics measure distance on R^n in a similar fashion to the Euclidean distance but use a different power. That is for 1 p<n<∞:
d_p (x,y)=(∑(k=1)^n▒|x_k-y_k |^p )^(1/p)
For p=∞ we define d∞ (xy)=max_(1≤k≤n)〖|x_k-y_k |^p 〗
The idea is that for higher values of p more weighting is put on the largest |x_k-y_k | with the extreme at p = where only the largest |x_k-y_k | contributes to the distance at all.
Minkowski’s Inequality
Let x∈R^n and p<n<∞. If
|x|p=(∑(k=1)^n▒|x_k |^p )^(1/p)
Then
|x+y|_p≤|x|_p+|y|_p
Path
A path, γ= (e_1,…,e_k ), between the vertices v and u on a graph is a sequence of distinct edges so that there is a sequence of distinct vertices (v_1,…,v_(k-1) ) with e_1 connecting v and v_1, e_k connecting v_(k-1) and u and e_i connecting v_(i-1) and v_i for i = 2,…,k-1. The length of the path is denoted |γ| and is equal to k (the number of edges).
We say that a graph is connected if for every pair (v,u) there is a path joining them.
Let v and u be vertices on a graph. Then
d_G (v,u)=min{|γ|│γ is a path joining v and u}
Hamming Metric
The Hamming metric allows us to measure the difference between two words (or two codes)
Let X be the set of words of length n (with letters drawn from any alphabet). Then d_H (w_1,w_2 )= the number of sites at which w_1 differs from w_2 By definition d_H is non-negative (and also ≤n)
Induced Metrics
Let (X,d) be a metric space and let Y⊆X. Define
d_Y ∶ Y×Y∈R by d,Y(y,y ̅) = d(y,y ̅) .
Then (Y,d_Y) is a metric space. Note that if we think of the distance as a function from X×X to R the induced metric d_Y is the distance function restricted to the subset Y×Y⊆X×X. This is denoted d_Y= d|_(Y×Y).
Triangle Inequality (Induced Metrics)
Let (X,d) be a metric space and let Z⊆Y⊆X. Let d_Y be the induced metric on Y from the metric d on X. Let d_(Z,Y) be the induced metric on Z from the metric d_Y on Y.
Let d(Z,X) be the induced metric on Z from the metric d on X. Then d_(Z,X) = d_(Z,Y).
Sequence in a Set
A sequence in a set X is a map x∶ N→X. As a matter of notation we usually write x_n =x(n) and denote the sequence itself by (x_n) or (x_n)_(n∈N).
Convergence of a Sequence
a_n→a if a_n becomes arbitrarily close to a as n tends to heuristic notion is that a_n . The mathematical formalisation of this is that a_n→a for every ϵ> 0 there is an N so that when n≥N then |a_n-a|≤ϵ .
- An error tolerance ϵ> 0, “arbitrarily close” means any error tolerance so long as it is positive.
- A way of measuring whether we are within the error tolerance. We are within the error tolerance if the distance|a_n-a|≤ϵ.
- A threshold past which we must be within the error tolerance n≥N. Once we have met this threshold condition we must be within the error tolerance.