TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

Types of Functions

Types of Functions with introduction, sets theory, types of sets, set operations, algebra of sets, multisets, induction, relations, functions and algorithms etc.

<< Back to TYPES

Types of Functions

1. Injective (One-to-One) Functions: A function in which one element of Domain Set is connected to one element of Co-Domain Set.

Types of Functions

2. Surjective (Onto) Functions: A function in which every element of Co-Domain Set has one pre-image.

Example: Consider, A = {1, 2, 3, 4}, B = {a, b, c} and f = {(1, b), (2, a), (3, c), (4, c)}.

It is a Surjective Function, as every element of B is the image of some A

Types of Functions

Note: In an Onto Function, Range is equal to Co-Domain.

3. Bijective (One-to-One Onto) Functions: A function which is both injective (one to - one) and surjective (onto) is called bijective (One-to-One Onto) Function.

Types of Functions

Example:

Consider P = {x, y, z}
         Q = {a, b, c}
and f: P → Q such that
         f = {(x, a), (y, b), (z, c)}

The f is a one-to-one function and also it is onto. So it is a bijective function.

4. Into Functions: A function in which there must be an element of co-domain Y does not have a pre-image in domain X.

Example:

Consider, A = {a, b, c}
          B = {1, 2, 3, 4}   and f: A → B such that
          f = {(a, 1), (b, 2), (c, 3)}
In the function f, the range i.e., {1, 2, 3} ≠ co-domain of Y i.e., {1, 2, 3, 4}

Therefore, it is an into function

Types of Functions

5. One-One Into Functions: Let f: X → Y. The function f is called one-one into function if different elements of X have different unique images of Y.

Example:

Consider, X = {k, l, m}
          Y = {1, 2, 3, 4} and f: X → Y such that
          f = {(k, 1), (l, 3), (m, 4)}

The function f is a one-one into function

Types of Functions

6. Many-One Functions: Let f: X → Y. The function f is said to be many-one functions if there exist two or more than two different elements in X having the same image in Y.

Example:

Consider X = {1, 2, 3, 4, 5}
         Y = {x, y, z} and f: X → Y such that
         f = {(1, x), (2, x), (3, x), (4, y), (5, z)}

The function f is a many-one function

Types of Functions

7. Many-One Into Functions: Let f: X → Y. The function f is called the many-one function if and only if is both many one and into function.

Example:

Consider X = {a, b, c}
         Y = {1, 2} and f: X → Y such that
         f = {(a, 1), (b, 1), (c, 1)}

As the function f is a many-one and into, so it is a many-one into function.

Types of Functions

8. Many-One Onto Functions: Let f: X → Y. The function f is called many-one onto function if and only if is both many one and onto.

Example:

Consider X = {1, 2, 3, 4}
         Y = {k, l} and f: X → Y such that
         f = {(1, k), (2, k), (3, l), (4, l)}

The function f is a many-one (as the two elements have the same image in Y) and it is onto (as every element of Y is the image of some element X). So, it is many-one onto function

Types of Functions
Next TopicIdentity Functions




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf