Science Forums: What is a monoid? - Science Forums

Jump to content

Welcome to ScienceForums.Net!

Welcome to ScienceForums.Net! We welcome science discussion at all levels — from beginners to researchers, covering topics from biology to computer science, and much more. Registration is fast and free, and allows you to post on the forums, so register now and join the discussions!
  
After you've registered, come in and introduce yourself, or visit the forum index. If you need any help  registering, posting, or if you just have some questions about our site, please feel free to contact us at staff at scienceforums dot net.

  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Create a ScienceForums.Net Blog!
Guest Message © 2012 DevFuse
  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

What is a monoid? Rate Topic: -----

#1 BeuysVonTelekraft 


Quark
I've searched on wikipedia and wolfram mathworld, and i have a definiton on a book right in front of me:

Quote

Definition: A monoid is a pair (M, *) where M is a set and * : M x M -> M is a binary operation with the following properties:


After that there are some properties.

But I still can't understand it. Can you help me?

Thanks in advance.
My name is Beuys von Telekraft, and I am a scientist, I work in my laboratory... night and day.
0

#2 the tree 


Primate
Do you fully understand the concept of a set?
Do you fully understand the concept of a binary operation?
0

#3 BeuysVonTelekraft 


Quark
I do understand the concept of set, but not the concept of binary operation.
My name is Beuys von Telekraft, and I am a scientist, I work in my laboratory... night and day.
0

#4 the tree 


Primate
"A binary operation on a set S [...] maps elements of the Cartesian product S×S to S" -- WikiP

The most obvious example of a binary operation would be addition, or possibly multiplication. Although it should cover any function that takes two inputs and gives one output, all from the same set.

This post has been edited by the tree: 10 November 2011 - 10:17 PM

1

#5 John Cuthber 


Icon
Chemistry Expert
Perhaps it's helpful to make the comparison with a unary function.
Sin(x) only needs one operand: so do x^2 or 1/x. They are unary.

On the other hand, addition (for example) needs two numbers.

Another rather convoluted difference is that you don't (generally) need to push the "=" button on your calculator to calculate a unary function, but you do with binary functions.
What's this signature thingy then? Did you know Santa only brings presents to people who click the + sign? -->
1

#6 BeuysVonTelekraft 


Quark
I understand now what is a binary operation, now i have a problem with your statement:

Quote

A binary operation on a set S [...] maps elements of the Cartesian product S×S to S


I've read a definition on wikipedia about cartesian product:

Quote

For example, the Cartesian product of the 13-element set of standard playing card ranks {Ace, King, Queen, Jack, 10, 9, 8, 7, 6, 5, 4, 3, 2} and the four-element set of card suits {♠, ♥, ♦, ♣} is the 52-element set of all possible playing cards: ranks × suits = {(Ace, ♠), (King, ♠), ..., (2, ♠), (Ace, ♥), ..., (3, ♣), (2, ♣)}.


And i have this questions:

-This kind of mapping make sense to me (the playing cards), but why would I map the elements of the cartesian product SxS to S?

-Are there other kinds of binary operation on sets?

-Are sets the same thing of lists in programming? I guess so, their nature seems identical.

-When he says: (M, *), what's the meaning of *?

Thanks in advance.



My name is Beuys von Telekraft, and I am a scientist, I work in my laboratory... night and day.
0

#7 the tree 


Primate

View PostBeuysVonTelekraft, on 13 November 2011 - 03:35 AM, said:

Why would I map the elements of the cartesian product SxS to S?
Say S were the set of integers, then addition over the integers would be a mapping from SxS to S. Addition is useful, so it is rumored.

If you were to draw up a multiplication table then you'd see a fairly obvious example of mapping ZxZ to Z.

View PostBeuysVonTelekraft, on 13 November 2011 - 03:35 AM, said:

-Are there other kinds of binary operation on sets?
Other than what?


View PostBeuysVonTelekraft, on 13 November 2011 - 03:35 AM, said:

-Are sets the same thing of lists in programming? I guess so, their nature seems identical.
No. Not at all. Lists allow for repetition and have an inherent order. Sets do not have repeated elements and a set written in a different order is the same set.

View PostBeuysVonTelekraft, on 13 November 2011 - 03:35 AM, said:

-When he says: (M, *), what's the meaning of *?
That's the name of the operation in question. e.g. addition over the integers would be written (Z,+).
1

#8 BeuysVonTelekraft 


Quark

Quote

Say S were the set of integers, then addition over the integers would be a mapping from SxS to S. Addition is useful, so it is rumored.

If you were to draw up a multiplication table then you'd see a fairly obvious example of mapping ZxZ to Z.


Oh, i got it now.

Quote

Other than what?


The x in the middle of ZxZ indicates this binary operation is a cartesian product, right? So, this is a binary operation, are there other kinds of binary operations that are not cartesian product?

Quote

That's the name of the operation in question. e.g. addition over the integers would be written (Z,+).


Then, the monoid is something that suggest a operation inside a set, right?Could it suggest only binary operations or is it possible to suggest a n-ary operation?

Thanks in advance.



My name is Beuys von Telekraft, and I am a scientist, I work in my laboratory... night and day.
0

#9 the tree 


Primate

View PostBeuysVonTelekraft, on 13 November 2011 - 06:30 PM, said:

The x in the middle of ZxZ indicates this binary operation is a cartesian product, right? So, this is a binary operation, are there other kinds of binary operations that are not cartesian product?
Oh heavens no. The SxS is what * maps from and S is what * maps to.

A Cartesian product is technically an example of a binary operation, but for the sake of this discussion - it's not the one that you're talking about.

For solid examples of binary operations, you'll find that finite monoids make easily drawn tables.

View PostBeuysVonTelekraft, on 13 November 2011 - 06:30 PM, said:

Then, the monoid is something that suggest a operation inside a set, right?
The common vernacular is 'over' the set, but yes, sort of. A monoid is both the set, and the operation.

View PostBeuysVonTelekraft, on 13 November 2011 - 06:30 PM, said:

Could it suggest only binary operations or is it possible to suggest a n-ary operation?
That would be something, but it would not be called a monoid.
1

#10 BeuysVonTelekraft 


Quark
Got it. Now there's another concept on the book: Monoid Homomorphism.

Given two monoids  (M, *M)and  (N, *N), a monoid homomorphism f : (M, *M) \rightarrow (N, *N) is a map of sets  f: M \rightarrow N

I understand the mapping, and the meaning of the monoid  (M,*), but i have no clue of the meaning of (M, *M) .

The homomorphism, as the name suggests, seems to be making both sets having the same elements, am i right?
My name is Beuys von Telekraft, and I am a scientist, I work in my laboratory... night and day.
0

#11 the tree 


Primate
Notation wise, that's just horrible. And it's quite understandable that you'd be confused.

What it's trying to do is to give a more distinct name to the operation. (M,*M) and (N,*N) would be two monoids, consisting of a set each and an operation each - the point of calling the operations *M and *N is to make it clear that the two operations needn't be the same.


A homomorphism is a function that preserves structure. You'll see a list of conditions in your text book, but what they amount to is that while each monoid will consist of elements with different names, once you strip that away - if a homomorphism exists between them then they will be equivalent to one another. If you're familiar with the meaning of symmetry, then this is a very similar concept. If not, then you'll just have to work through a lot of examples.
0

#12 BeuysVonTelekraft 


Quark
I kinda modeled a monoid on Mathematica:

Attached Image: Sem título.jpg


I'm not very sure if i'm right on them. But what would happen in the case of the homomorphism of these monoids?
My name is Beuys von Telekraft, and I am a scientist, I work in my laboratory... night and day.
0

#13 the tree 


Primate
That depends on what the binary operation is, in each case, that makes them more than just sets. If you can think of a binary operation that maps {(4,4),(4,9),...} to {4,9}, that meets the conditions to make it a monoid - and another for {(8,8),...} then there may or may not be a homomorphism between the monoids that you will have created.

To be clear on that, different binary operations can make for different monoids - even with the same set.

For instance, let S=\{ a,b \} and take two binary operations, \circ_1 and \circ_2 that are defined thusly:

\begin{array}{c|cc} \circ_1 & a & b \\\hlinea&a&b\\b&b&a\\\end{array}

\begin{array}{c|cc} \circ_2 & a & b \\\hlinea&a&b\\b&b&b\\\end{array}


Both (S , \circ_1 ) and (S , \circ_2 ) are monoids, but they are non-equivalent because no homomorphism exists between them.

Now let T=\{ c , d \} and define \circ_3 thusly:

\begin{array}{c|cc} \circ_3 & c & d \\\hlinec&c&d\\d&d&c\\\end{array}

There exists a homomorphism between ( T , \circ_3 ) and ( S , \circ_1 ), making them equivalent monoids.

This post has been edited by the tree: 15 November 2011 - 12:50 AM

2

#14 BeuysVonTelekraft 


Quark
Can i say: Map it to n, instead of map it to {4,9}?

And, where can i find all possible binary operations? I've searched a little but i can't find it.


This post has been edited by BeuysVonTelekraft: 15 November 2011 - 12:51 AM

My name is Beuys von Telekraft, and I am a scientist, I work in my laboratory... night and day.
0

#15 the tree 


Primate
The definition of a monoid requires a binary operation mapping from SxS to S.

View PostBeuysVonTelekraft, on 15 November 2011 - 12:50 AM, said:

And, where can i find all possible binary operations? I've searched a little but i can't find it.
Brute force I guess.
0

#16 BeuysVonTelekraft 


Quark
I guess the word is not "possible", the word is "known".
My name is Beuys von Telekraft, and I am a scientist, I work in my laboratory... night and day.
0

#17 the tree 


Primate
Of a set S of size |S|=n. It's clear that |SxS|=n2, so n3 binary operations mapping SxS to S. The amount that would make a monoid would be less than that (I feel it's getting a little late for combinatronic questions right now). I don't think there would be a means of listing them all other than brute force.

This post has been edited by the tree: 15 November 2011 - 01:05 AM

0

#18 BeuysVonTelekraft 


Quark
So, if there are lots of possible operations. How will i know what operation should i do?
My name is Beuys von Telekraft, and I am a scientist, I work in my laboratory... night and day.
0

#19 DrRocket 


Primate

View PostBeuysVonTelekraft, on 10 November 2011 - 05:08 PM, said:

I do understand the concept of set, but not the concept of binary operation.


What you have been told is correct, but let's try a slightly different tack.

Think of a binary operation as a generalization of multiplication or addition. So, given elements a and b from your set, call it M, a*b is another element and "*" is the binary operation.

For a monoid * is required to satisfy the following 2 properties:

1. Associativity --- a*(b*c)=(a*b)*c

2. Identity element --- There is an element I, called an identity, such that I*a=a*I=a for any a in M


If in addition "*" satisfies the requirement that

3. Invertibility -- for any a in M there is a b in m such that a*b=b*a=I

then the monoid is called a group. A typical example of a group are the nxn invertible matrices for some fixed n with entries taken from thev real (or complex) numbers. Groups are one of the vfundamental structures studies in abstract algebra courses. Monoids have less structure, lacking invertibility.

If only property 1 is satisfied then your set M is called a semigroup. So a monoid can also be called (and commonly is) a "semigroup with identity".

Quite commonly the bibary operation is written simply as multiplication, so as "ab" rather than "a*b".

Note that the following property has NOT been required

4. Commutativity -- a*b=b*a

In general, even when written as simple multiplication, the operation is not assumed to be commutative (think of matrix multiplication). When the operation is commutative the algebraic structure is called "commutative" or " Abelian" (after the famous mathematician Niels Henrik Abel). So one can have an Abelian group, an Abelian semigroup, or an Abelian monoid or equivalently a commutative group, a commutative semigroup or commutative monoid.

You can know the name of a bird in all the languages of the world, but when you're finished, you'll know absolutely nothing whatever about the bird... -- Richard P. Feynman
1

#20 the tree 


Primate

View PostBeuysVonTelekraft, on 17 November 2011 - 01:24 PM, said:

So, if there are lots of possible operations. How will i know what operation should i do?
Should? There's no particular criterion to pick between two monoids unless they are for something specific.

This post has been edited by the tree: 17 November 2011 - 06:53 PM

0

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users