Bifalgorithm post · Brisk · Chapter 1

What is a surjective function?

What is a surjective function? (Brisk · Chapter 1) — "A surjective function is one that reaches all the elements of its codomain: some x does in fact reach eve…

Ideas in this flowchart

  • Une fonction surjective atteint tous les éléments de son codomaine.
  • Pour chaque élément y du codomaine, il existe un élément x du domaine tel que f(x) = y.
  • La surjectivité signifie que l’image est égale à tout le codomaine.
  • Si le domaine est plus petit que le codomaine, une fonction surjective est impossible.
  • Ajouter Pepsi et Barq’s Root Beer à l’ensemble Y empêcherait toute fonction surjective de X vers Y, sauf si des sorciers étaient également ajoutés.
  • La fonction worksIn, avec les employés comme domaine et les départements comme codomaine, est un exemple de fonction surjective.
  • Un exemple de correspondance est worksIn(Sid) = Marketing.
  • Chaque employé travaille pour un seul département, ce qui fait de worksIn une fonction.
  • Au moins un employé travaille dans chaque département, donc aucun département n’est vide.
  • « Onto » et « surjective » sont des synonymes exacts.
Feed/

What is a surjective function?

Channel

Brisk

1 page

"A surjective function is one that reaches all the elements of its codomain: some x does in fact reach every y. Another way of saying this is: for a surjective function, the range equals the entire codomain. You can see that this is impossible if the domain is smaller than the codomain, since there wouldn’t be enough x values to reach all the y values. If we added Pepsi and Barq’s Root Beer to our Y set, we would thereby eliminate the possibility of any surjective functions from X to Y, unless we also added wizards, of course. The function worksIn—with employees as the domain and departments as the codomain—is an example of a surjective function. One mapping of this function would be “worksIn(Sid) = Marketing,” indicating that Sid works in the Marketing department. Each employee works for one department, which makes it a function. But at least one employee works in every department, meaning there are no empty departments with no people in them, which makes it surjective. Surjective functions are sometimes called “onto” functions. Onto and surjective are exact synonyms."

Flowchart preview
Series cover
👍
0
0 comments0 shares

Sign in to view and post comments.