answersLogoWhite

0


Best Answer

The term "boundary conditions" is often used when dealing with the designing, testing and proving of algorithms (and implementations of algorithms). Many solutions to problems have a set of ranges of inputs that they can accept. When designing or testing an algorithm, you need to pay attention to the "boundaries" of the input. It's generally impossible to test every possible set of inputs to your algorithm, but you should be able to prove that it works as expected by testing the boundary conditions for each set of possible inputs.

An example of this can be seen in the typical approach used to convert Cartesian coordinates to polar coordinates. Specifically, to figure out the value of theta given Cartesian coordinates (x,y).

This conversion is defined in the piecewise function:

theta := 0 -- if x 0

theta := arcsin(y/r) -- if x >= 0

theta := arcsin(y/r) + pi -- if x < 0

The boundary conditions of this algorithm:

* x 0 * x >= 0 * x < 0

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are boundary conditions in computer science?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Boundary conditions for perfect dielectric materials?

boundary conditions for perfect dielectric materials


Define boundary conditions?

The set of conditions specified for the behavior of the solution to a set of differential equations at the boundary of its domain. Boundary conditions are important in determining the mathematical solutions to many physical problems.


What are the three type of boundaries in science?

The three types of boundaries are Convergent Boundary, Divergent Boundary, and Transform Boundary.......


What is the importance of boundary conditions in solving the schrodinger's wave equation?

Boundary conditions allow to determine constants involved in the equation. They are basically the same thing as initial conditions in Newton's mechanics (actually they are initial conditions).


Which is better Computer science or information science?

computer science


Difference between Bachelor of Science in Computer Science and Bachelor of Science with Computer Science?

You don't get a degree with a subject; you get a degree in a subject. Bachelor of Science in Computer Science or Bachelor of Computer Science are common descriptions of this degree.


What are synonyms of the science version of front?

Front: boundary


What is a bscs and mscs?

bachelor of science computer sciencemaster of science computer science


What is MSC and BSC?

bachelor of science computer sciencemaster of science computer science


What has the author Urve Kangro written?

Urve Kangro has written: 'Divergence boundary conditions for vector helmholtz equations with divergence constraints' -- subject(s): Boundary conditions, Helmholtz equations, Coercivity, Boundary value problems, Divergence


Is a front a boundary between air masses?

yes it is "A front is a boundary between air masses" -science book


Is computer science more in future?

No. Computer science is now.