Abstract
In this chapter we introduce the basic concepts needed in order to work with functions. We begin with the intuitive idea of a function and its mathematical definition as a special kind of relation. We then see how general concepts for relations play out in this particular case (domain, range, restriction, image, closure, composition, inverse) and distinguish some important kinds of function (injective, surjective, bijective). These concepts permit us to link functions with counting, via the principles of equinumerosity, comparison and the surprisingly versatile pigeonhole rule. Finally, we identify some very simple kinds of function that appear over and again (identity, constant, projection, characteristic and choice functions), and explain the use of functions to represent sequences and families.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2020 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Makinson, D. (2020). Associating One Item with Another: Functions. In: Sets, Logic and Maths for Computing. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-030-42218-9_3
Download citation
DOI: https://doi.org/10.1007/978-3-030-42218-9_3
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-42217-2
Online ISBN: 978-3-030-42218-9
eBook Packages: Computer ScienceComputer Science (R0)