Give an example of a problem and instances of that problemSo

Give an example of a problem and instances of that problem.

Solution

A problem is an abstract representation of a problem i.e given in some mathematical equation or some other form.

An instance can be defined question of the set of instances that are there in a given probelm or it can be an input that can be given to the problem to get the solution set.

A problem is defined as an infinite set of instances and the solutions for each and every instance of the problem.

Let us consier solving the roots of a quadratic equation i.e given in the form ax2 + bx + c = 0

the above mathematical equation is considered as a problem and if we pass the values of a, b, c to the equation

like a = 3, b=4 , c = 5 then if we find the roots of the above equation then its one of the instances of that problem

we can change the values of a,b,c and that will produce a new instance of the given problem and its solution.

eg: a=2,b=3,c=4 one instance of class

a = 5, b = 6, c = 2 another instance and so on.

Give an example of a problem and instances of that problem.SolutionA problem is an abstract representation of a problem i.e given in some mathematical equation

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site