Skip to content

Instantly share code, notes, and snippets.

@thinkphp
Created May 8, 2017 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinkphp/0116839aa5dea51d384881c8e83fc453 to your computer and use it in GitHub Desktop.
Save thinkphp/0116839aa5dea51d384881c8e83fc453 to your computer and use it in GitHub Desktop.
Surjective Out File
Generating All The Surjective Functions:
Domain -> card(A)
{1 2 3 }
CoDomain -> card(B)
{1 2 }
x | 1 2 3
---------------
f(x) | 1 1 2
x | 1 2 3
---------------
f(x) | 1 2 1
x | 1 2 3
---------------
f(x) | 1 2 2
x | 1 2 3
---------------
f(x) | 2 1 1
x | 1 2 3
---------------
f(x) | 2 1 2
x | 1 2 3
---------------
f(x) | 2 2 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment