Is the d(A,B) Function a Valid Metric for Finite Sets?

  • Context: Undergrad 
  • Thread starter Thread starter birulami
  • Start date Start date
  • Tags Tags
    Finite Metric Sets
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 3K views
birulami
Messages
153
Reaction score
0
Hi,

recently I stumbled across the question whether for finite sets [itex]A,B[/itex] the function

[tex]d(A,B):=|A\cup B| - |A\cap B|[/itex]<br /> <br /> is a http://en.wikipedia.org/wiki/Metric_distance" ? Trivially, [itex]d(A,A)=0[/itex] and of course [itex]d[/itex] is symmetric, but how about the triangle inequality? Does it hold?<br /> <br /> Harald.[/tex]
 
Last edited by a moderator:
Physics news on Phys.org
yes it is. For the triangle inequality see the formula [itex](A \Delta B) \Delta (B \Delta C) = A \Delta C[/itex] here - http://en.wikipedia.org/wiki/Symmetric_difference" .

Also, for infinite sets you can replace the size |A| of a set with its measure (eg, length, volume, etc) to get a pseudometric, as mentioned in the wikipedia link.
 
Last edited by a moderator:
I never really came across symmetric difference as an explicit operator in set theory.

Thanks for the information,
Harald.
 
you didn't notice the bars around the sets, denoting cardinality. for finite sets this will be an integer number, hence it is a metric in a usual sense.