maksimietäisyys
Maksimietäisyys, in Finnish, refers to the greatest distance between two elements within a given set when a distance function or metric is defined. For a subset S of a metric space (X, d), this is often expressed as the diameter diam(S) = sup{ d(x,y) : x, y ∈ S }. If S is finite, the maximum is attained, so diam(S) = max{ d(x,y) : x, y ∈ S }.
In geometry and Euclidean spaces, distance is commonly the Euclidean distance. For a finite collection of points,
In graph theory, the concept is adapted to discrete structures. The distance between two vertices is the
Edge cases include infinite diameter: in unbounded spaces like the whole of R^n with the usual metric,