度量空間的乙個例子 離散度量空間

2022-02-09 14:21:07 字數 748 閱讀 6141

let $x$ be any nonempty set.for any $x,y\in x$,define

$d(x,y)=1$  if $x\neq y$

$d(x,y)=0$  if $x=y$.

then $(x,d)$ is a metric space.the metric $d$ is called discret metric and the space $(x,d)$ is called discret metric space.

proof:

(1)for any given $x\in x$,$d(x,x)=0$.

(2)for any $x,y\in x$,$d(x,y)=0$,or $d(x,y)=1$.so $d(x,y)\geq 0$.

(3)if $x=y$,then $y=x$.and if $x\neq y$,$y\neq x$.so $d(x,y)=d(y,x)$

(4)if $x=y$,then it is easy to verify that $d(x,y)\leq d(x,z)+d(z,y)$.if $x\neq y$,then $x=z$ and $y=z$ can not be hold at the same time.so $d(x,y)\leq d(x,z)+d(z,y)$.

注:這個例子無非就是:乙個非空集合裡的元素到自身的距離都是0,而不同元素之間的距離都是1.這個例子告訴我們,可以在任意非空集合上定義乙個度量.

度量空間的乙個例子 離散度量空間

let x be any nonempty set.for any x,y in x define d x,y 1 if x neq y d x,y 0 if x y then x,d is a metric space.the metric d is called discret metric a...

LineDDA的乙個例子

unit unit1 inte ce uses windows,messages,sysutils,variants,classes,graphics,controls,forms,dialogs,extctrls,stdctrls,buttons type tfmmain class tform ...

SQL GROUP CONCAT的乙個例子

我有乙個這樣的資料庫 user info 現在有乙個需求是把這樣 9 條記錄按照 username 來 group 成3條記錄 目標 shu female 201 lee male 202 yuki female 181 如果用select from user info group by usern...