Skip to main content

Sets, Relations and Functions

  • Chapter
  • First Online:
Mathematics in Computing
  • 4275 Accesses

Abstract

This chapter provides an introduction to the fundamental building blocks in mathematics such as sets, relations and functions. Sets are collections of well-defined objects, relations indicate relationships between members of two sets A and B and functions are a special type of relation where there is exactly or at most one relationship for each element a Î A with an element in B.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 64.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    We distinguish between total and partial functions. A total function f:A ® B is defined for every element in A whereas a partial function may be undefined for one or more values in A.

  2. 2.

    There are mathematical objects known as multi-sets or bags that allow duplication of elements. For example, a bag of marbles may contain three green marbles, two blue and one red marble.

  3. 3.

    The British logician, John Venn, invented the Venn diagram. It provides a visual representation of a set and the various set theoretical operations. Their use is limited to the representation of two or three sets as they become cumbersome with a larger number of sets.

  4. 4.

    The natural numbers, integers and rational numbers are countable sets whereas the real and complex numbers are uncountable sets.

  5. 5.

    Cartesian product is named after René Descartes who was a famous 17th French mathematician and philosopher. He invented the Cartesian coordinates system that links geometry and algebra, and allows geometric shapes to be defined by algebraic equations.

  6. 6.

    Parnas made important contributions to software engineering in the 1970s. He invented information hiding which is used in object-oriented design.

  7. 7.

    We distinguish between total and partial functions. A total function f:A ® B is defined for all elements in A whereas a partial function may be undefined for one or more elements in A.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Gerard O’Regan .

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer-Verlag London

About this chapter

Cite this chapter

O’Regan, G. (2013). Sets, Relations and Functions. In: Mathematics in Computing. Springer, London. https://doi.org/10.1007/978-1-4471-4534-9_2

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-4534-9_2

  • Published:

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-4471-4533-2

  • Online ISBN: 978-1-4471-4534-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics