Computable & Non-Computable Functions | Theory of Computation - Computer Science Engineering (CSE) PDF Download

Computable and Non-Computable Functions
 

7 Computable Functions
Computable functions are the basic objects of study in Theory of Computation. Computable functions are the functions that can be calculated using a mechanical calculation device given unlimited time and memory space. Also any function that has an algorithm is computable. Each computable function f takes a fixed finite number of natural numbers as arguments. The computable function f returns an output for some inputs.For some inputs, it may not return an output. Due to this, a computable function is a paertial recursive function. If the computable function is defined for all possible arguments, it is called a total computable function or total recursive function. The notation f(x1, x2, .........xk) indicates that the partial function f is defined on arguments x1, x2, .........xk. We say that a function f on a certain domain is said to be computable, if there exists a Turing machine that computes the value of f for all arguments in its domain. A function is uncomputable if no such Turing machine exists. The basic characteristic of a computable function is that there is a finite procedure or algorithm telling how to compute the function. The characterisitics of a computable function are as follows:
1. There must be exact instructions (ie, a program, finite in length).
2. If the procedure is given a k tuple x in the domain of f, then after a finite number of steps, the procedure must terminate and produce f(x).
3. If the procedure is given a k-tuple x which is not in the domain of f, then the procedure must never halt, or it may get stuck at some point.
Following are some examples for computable functions:
1. Each function with a finite domain. eg. Any finite sequence of natural numbers.
2. Each constant function f : Nk → N, f(n1, n2,.....nk) = n.
3. Addition f : N2 → N, f(n1, n2) = n1, n2.
4. The function which gives the list of prime factors of a number.
5. The gcd of two numbers is a computable function.

8 Non-Computable Functions
The real numbers are uncountable so most real numbers are not computable. Most subsets of natural numbers are not countable. A non-computable function corresponds to an undecidable problem and it consists of a family of instances for which there is no computer program that given any problem instance as input terminates and outputs the required answer after a finite number of steps. For an undecidable problem, it is impossible to construct a single algorithm that always leads to a correct yes/ no answer. We say that a function f on a certain domain is said to be non-computable, if no Turing machine exists that computes the value of f for all arguments in its domain. Examples for undecidable problems (non-computabel functions) are halting problem, post correspondence problem.

The document Computable & Non-Computable Functions | Theory of Computation - Computer Science Engineering (CSE) is a part of the Computer Science Engineering (CSE) Course Theory of Computation.
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
18 videos|69 docs|44 tests

Top Courses for Computer Science Engineering (CSE)

FAQs on Computable & Non-Computable Functions - Theory of Computation - Computer Science Engineering (CSE)

1. What is the difference between computable and non-computable functions?
Ans. Computable functions are the ones that can be computed or solved by an algorithm or a Turing machine, while non-computable functions are the ones that cannot be computed by any algorithm or Turing machine. In other words, computable functions have a definite and systematic procedure to calculate their values, whereas non-computable functions do not have such a procedure.
2. Can you provide an example of a computable function in computer science engineering?
Ans. Yes, a common example of a computable function in computer science engineering is the addition of two numbers. It can be easily computed using mathematical operations or algorithms, and the result can be obtained in a finite amount of time and steps.
3. Are there any real-world examples of non-computable functions?
Ans. Yes, there are several real-world examples of non-computable functions. One prominent example is the Halting Problem, which involves determining whether a given program will eventually halt or run forever. It has been proven that there is no algorithm or procedure that can solve this problem for all possible programs.
4. Why is the concept of computable and non-computable functions important in computer science engineering?
Ans. The concept of computable and non-computable functions is important in computer science engineering as it helps in understanding the limits of computation. It provides insights into what can and cannot be solved algorithmically, which is crucial for designing efficient algorithms, analyzing problem complexity, and developing computational models.
5. Can non-computable functions be approximated or solved using other methods?
Ans. While non-computable functions cannot be solved exactly or computed algorithmically, they can sometimes be approximated or analyzed using other methods. For example, numerical methods, such as iterative algorithms or approximation techniques, can be used to estimate the values of certain non-computable functions. However, these approximations may not be exact and may have limitations or errors associated with them.
18 videos|69 docs|44 tests
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

practice quizzes

,

Computable & Non-Computable Functions | Theory of Computation - Computer Science Engineering (CSE)

,

ppt

,

Objective type Questions

,

study material

,

Free

,

Previous Year Questions with Solutions

,

Sample Paper

,

Viva Questions

,

Computable & Non-Computable Functions | Theory of Computation - Computer Science Engineering (CSE)

,

Semester Notes

,

Extra Questions

,

shortcuts and tricks

,

Computable & Non-Computable Functions | Theory of Computation - Computer Science Engineering (CSE)

,

Summary

,

Exam

,

video lectures

,

past year papers

,

pdf

,

mock tests for examination

,

MCQs

,

Important questions

;