Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Free monoid
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Map and fold=== {{unreferenced section|date=February 2015}} The computational embodiment of a monoid morphism is a [[Map (higher-order function)|map]] followed by a [[Fold (higher-order function)|fold]]. In this setting, the free monoid on a set ''A'' corresponds to [[List (computing)|lists]] of elements from ''A'' with concatenation as the binary operation. A monoid homomorphism from the free monoid to any other monoid (''M'',β’) is a function ''f'' such that * ''f''(''x''<sub>1</sub>...''x''<sub>''n''</sub>) = ''f''(''x''<sub>1</sub>) β’ ... β’ ''f''(''x''<sub>''n''</sub>) * ''f''() = ''e'' where ''e'' is the identity on ''M''. Computationally, every such homomorphism corresponds to a [[Map (higher-order function)|map]] operation applying ''f'' to all the elements of a list, followed by a [[Fold (higher-order function)|fold]] operation which combines the results using the binary operator β’. This [[squiggol|computational paradigm]] (which can be generalized to non-associative binary operators) has inspired the [[MapReduce]] software framework.{{citation needed|date=February 2015}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)