- #1

- 294

- 45

^{nm}relations between them. But my question is, does this count redundancies? What I mean is, if in the relation A~B = B~A. I don't want to count identical relations twice. Thanks!

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

In summary, a relation between sets A and B is a subset of AxB, and with n elements in A and m elements in B, there are 2nm possible relations between them. However, this also includes the null set of ordered pairs, so the actual number may be 2nm-1. The definition of a relation between sets may vary and may exclude certain cases such as a null set or subsets that do not include all elements in A.

- #1

- 294

- 45

Physics news on Phys.org

- #2

- 350

- 82

- #3

- 294

- 45

- #4

- 22,183

- 3,321

Multiplication is not a relation, it is an operation.

- #5

- 116

- 25

Battlemage! said:Say you have set A with n elements and set B with m elements. If I recall, there are a total of 2^{nm}relations between them. But my question is, does this count redundancies? What I mean is, if in the relation A~B = B~A. I don't want to count identical relations twice.Thanks!

A relation between sets A and B is by definition a subset of AxB. If A has n elements and B has m elements, AxB has nm elements. Such a set has 2

- #6

- 294

- 45

I thought all operations were types of relations. It appears i mixed some stuff up. Let's just rephrase the question as multuplication instead.micromass said:Multiplication is not a relation, it is an operation.

- #7

Mentor

- 37,471

- 9,720

So what is the new question?Battlemage! said:I thought all operations were types of relations. It appears i mixed some stuff up. Let's just rephrase the question as multuplication instead.

- #8

- 294

- 45

Im sorry I haven't slept in 38 hours that last post was nonsense.Mark44 said:So what is the new question?

But as a test, a specific example:

Say I have a set with 6 elements and a set with 4 elements. Call them set A=[a1, a2, a3, a4, a5, a6] and set B=[b1,b2,b3,b4] Each of the 6 elements can be matched with one of the 4 elements, but each of the 4 elements can be matched to any number of the 6. So you can end up with all 6 of set A being associated with the first element of set B, or a1 and a2 being mathed woth b1, a3 being matched with b2, a4 and a5 being mathed with b3, and a6 being matched with b4. And so on. Any combination as long as all 6 from set A are matched with elements from set B and

- #9

- 350

- 82

- #10

- 350

- 82

- #11

Science Advisor

- 7,861

- 1,598

Battlemage! said:Say you have set A with n elements and set B with m elements. If I recall, there are a total of 2^{nm}relations between them.

To investigate the correctness of that statement, we would need an clear definition for the statement "##R## is a relation between set ##A## and set ##B##".

For example, if ##R =\{(1,4), (2,4)\}## then is ##R## a relation between the sets ##A =\{1,2,3\}## and ##B=\{4\}##?

It looks to me like your result of ##2^{mn}## would count ##R## as being among the relations "between" ##A## and ##B##.

However, doesn't ##2^{mn}## also count the null set of ordered pairs as a relation? Are we going to count a null set of ordered pairs as a relation ? Is it a relation "between" ##A## and ##B## ?

- #12

- 350

- 82

- #13

Science Advisor

- 7,861

- 1,598

Let'sthink said:Are the sets AXB and BXA identical

Yes, if ##A=B##.

- #14

- 350

- 82

1. The set A is related to set B.

2.The set B is related to set A.

3. There is a relation between the sets A and B.

The definition given by Cruz Martinez favors the third option. There is a relation between A and B means A is related to B and B is related to A.

- #15

Science Advisor

- 7,861

- 1,598

Let'sthink said:Stephen Tashi, thanks for responding. What is the correct or appropriate statement of teh following:

1. The set A is related to set B.

2.The set B is related to set A.

3. There is a relation between the sets A and B.

I don't know of any standard mathematical definition for a relation "between" sets.

So let's look at your post #8 and consider what you want the statement "##R## is a relation between ##A## and ##B##" to mean.

I think you want each element of ##A## to in at least one of the ordered pairs of ##R##.

With that requirement, we would not consider ##R = \{(a1,b1), (a2,b4)\}## to be a relation between ##A## and ##B## because some of the elements of ##A## are missing in the first members of the ordered pairs of ##R##.

Now let's consider ##R = \{ (a1,b1),(a1,b2), (a3,b4), (a4,b4) ,(a5,b4), (a6,b4)\}##. Do you want ##R## to be a relation between ##A## and ##B## or do you want to disqualify it because it contains both ##(a1,b1)## and ##(a1,b2)## ?

- #16

- 350

- 82

- #17

- 116

- 25

Stephen Tashi said:I don't know of any standard mathematical definition for a relation "between" sets.

I've seen it in some books, e.g. Lee, Topological Manifolds, Appendix A. The other definition I've seen for a relation is that R is a relation if whenever z ∈ R, z is an ordered pair.

- #18

- 22,183

- 3,321

Cruz Martinez said:I've seen it in some books, e.g. Lee, Topological Manifolds, Appendix A. The other definition I've seen for a relation is that R is a relation if whenever z ∈ R, z is an ordered pair.

Yes, you're right. But you and Stephen are talking about something else. You are talking about a relation with codomain and domain a set. In this case, two elements of the sets can be related. Stephen seems to be talking about the case where two sets themselves are related. Of course you can define such a relation, but there is no standard one like the OP thinks.

- #19

- 71

- 0

$$R~\text{ is a relation}~\Leftrightarrow~\forall r(r \in R~\rightarrow~\exists x \exists y(r~=~<x,y>)~)$$

This definition leave open the possibility that some members of relation ##R## are not ordered pairs.

However, the cross product, ##A~\times~B##, of two sets, ##A## and ##B##, is certainly a relation since it satisfies the definition given above.

The minimum number of possible relations between sets ##A## and ##B## would then be the number of sets in the power set of ##A~\times~B##, but the maximum number of relations is infinite.

- #20

- 22,183

- 3,321

xxxx0xxxx said:This definition leave open the possibility that some members of relation ##R## are not ordered pairs.

Then it is not the standard definition.

- #21

- 71

- 0

- #22

- 22,183

- 3,321

xxxx0xxxx said:Ok, if you want to be picky :), the definition leaves open the possibility that some elements of the relation ##R## are not ordered pairs.

No. A relation by definition consists only of ordered pairs.

- #23

Science Advisor

- 7,861

- 1,598

xxxx0xxxx said:

You haven't yet stated a definition for "##R## is a relation between sets ##A## and ##B##".

I think the definition you are using implicitly is:

##R## is a relation between sets ##A## and ##B## if and only if ##R## is a subset of ##A \times B##.

That's a reasonable definition for some purposes, but I wouldn't say that its a

To answer the question in the original post, we need to know what definition Battlemage wants to use. Perhaps Battlemage's doesn't really want to know about relations. Perhaps his question is:

"How many distinct functions are there that have a domain consisting of set ##A## with cardinality is ##n## and an image that is a non-null subset of set ##B##, where ##B## has cardinality ##m## ?"

- #24

- 294

- 45

Stephen Tashi said:You haven't yet stated a definition for "##R## is a relation between sets ##A## and ##B##".

I think the definition you are using implicitly is:

##R## is a relation between sets ##A## and ##B## if and only if ##R## is a subset of ##A \times B##.

That's a reasonable definition for some purposes, but I wouldn't say that its astandarddefinition.

To answer the question in the original post, we need to know what definition Battlemage wants to use. Perhaps Battlemage's doesn't really want to know about relations. Perhaps his question is:

"How many distinct functions are there that have a domain consisting of set ##A## with cardinality is ##n## and an image that is a non-null subset of set ##B##, where ##B## has cardinality ##m## ?"

Thank you for asking.

Here is what I'm getting at. I have two sets. The first set A is smaller than the second set B. Each element from A must be linked with one and only one element from B, but any element from B can be linked to as many elements of A as there are in A (or as few as zero).

How many possible configurations are there?

I hesitate to use the word "pair" because in this scenario one element from B can have multiple elements from A associated with it, while each element from A can only have one element from B associated with it.

Also if B were smaller than A but the same rules applied (each element of A must be linked to an elememt of B, while each element of B can be linked with as few as zero elements to as many as are in A.).

I do apologize for not using correct technical verbiage here.

Edited to add: the motivation for this came from me thinking about a training problem i had at my new job. We were to categorize documents by how confidential they were. There were a few categories of confidentiality but many types of documents. Being quickly bored of the exercise I was wondering at how big the possible number of arrangements could be, and how that question could be answered in general. I realize most people would question my sanity over such idle curiosity...One more edit- my first estimate was 2

Last edited:

- #25

- 14

- 3

- #26

Science Advisor

- 7,861

- 1,598

Battlemage! said:Here is what I'm getting at. I have two sets. The first set A is smaller than the second set B. Each element from A must be linked with one and only one element from B, but any element from B can be linked to as many elements of A as there are in A (or as few as zero).

If A has ##n## elements and B has ##m## elements then there are ##m^n## ways of doing what you want.

A relation between two sets is a connection or correspondence between the elements of the two sets. It specifies how the elements of one set are related to the elements of the other set.

The number of possible relations between two sets depends on the sizes of the two sets. If one set has m elements and the other set has n elements, then there are 2^(mn) possible relations between them.

A relation is a general concept that describes a connection between two sets, while a function is a specific type of relation where each element of the first set is related to exactly one element of the second set.

Yes, a relation can be both reflexive and symmetric. A reflexive relation is one where every element is related to itself, while a symmetric relation is one where if a is related to b, then b is also related to a.

Relations between two sets can be represented in various ways, including tables, graphs, ordered pairs, and arrow diagrams. These representations help to visualize and understand the connections between the elements of the two sets.

Share:

- Replies
- 62

- Views
- 2K

- Replies
- 2

- Views
- 1K

- Replies
- 1

- Views
- 547

- Replies
- 2

- Views
- 1K

- Replies
- 5

- Views
- 1K

- Replies
- 1

- Views
- 1K

- Replies
- 13

- Views
- 900

- Replies
- 3

- Views
- 1K

- Replies
- 5

- Views
- 1K

- Replies
- 3

- Views
- 843