answersLogoWhite

0

Algorithms do not accept user input; they are not computer programs. All input to an algorithm is specified at the start of the algorithm along with any required preconditions and postconditions. If a required precondition is not specified or is specified incorrectly, then this could result in unexpected results (or undefined behaviour in programming terminology). The type of error in the algorithm is simply that the precondition was not specified.

User Avatar

Wiki User

8y ago

What else can I help you with?

Continue Learning about Engineering

What can cause logical error in algorithm?

It can cause abnormal program termination or invalid results.


How do you explain characteristics of algorithm?

Characteristics of algorithms are: Finiteness: terminates after a finite number of steps Definiteness: rigorously and unambiguously specified Input: valid inputs are clearly specified Output: can be proved to produce the correct output given a valid input Effectiveness: steps are sufficiently simple and basic.


What is algorithm and what are its characteristics?

An "algorithm" is simply a method to solve a certain problem. For example, when you use the standard method you learned in school to write down two numbers, one beneath the other, then add them, you are using an algorithm - a method that is known to give correct results in this particular case.


Difference between Bresenham and midpoint circle drawing algorithm?

what is difference between mid-point and bresenhams circle algorithm what is difference between mid-point and bresenhams circle algorithm bresenhams circle algorithm results in a much more smoother circle,comparred to midpoint circle algorithm..In mid point,decision parameter depends on previous decision parameter and corresponding pixels whereas in bresenham decision parameter only depends on previous decision parameter...


What are the differences between Bresenham's line algorithm and Bresenham's circle algorithm?

These two algorithms are almost completely different. The only real similarity is that they are each designed to use only integer addition/subtraction and multiplication, avoiding expensive division and floating point operations.

Related Questions

What do scientists do with methods that produce unexpected results?

When scientists encounter unexpected results, they typically analyze the data to determine whether the findings are due to experimental error, methodological flaws, or genuine new phenomena. They may repeat experiments or modify their methods to confirm the results and ensure reliability. If the findings are robust, they often lead to further investigation, potentially prompting new hypotheses or theories. Ultimately, unexpected results can be valuable, driving scientific discovery and advancing understanding.


What is an intractable problem in computer limitations and can give the example?

An intractable problem is one for which there is an algorithm that produces a solution - but the algorithm does not produce results in a reasonable amount of time. Intractable problems have a large time complexity. The Travelling Salesman Problem is an example of an intractable problem.


What were the unexpected results of the Treaty of Tordesillas?

The unexpected results is that the papal line cut off most of what is now Brazil. This explains why today the Brazilians speak Portuguese


What are implication of not validating data?

If data is not validated, your script/application can result in errors, produce unexpected results, or potentially provide a way for someone to hack into your web and/or database server.


What are the release dates for House of Payne - 2006 Unexpected Results 4-17?

House of Payne - 2006 Unexpected Results 4-17 was released on: USA: 23 July 2008


what is the google algorithm and specifications?

The Google algorithm is a set of rules that the search engine uses to determine which websites are ranked higher than others in its search results. The specifications for this algorithm are secret, and changes to it happen frequently. As a result, there is no way to know exactly how any given search will be ranked.


What type of errors produces undesired or unexpected results?

Logic Error


What can cause logical error in algorithm?

It can cause abnormal program termination or invalid results.


A prediction about the outcome of a test or experiment?

Based on previous research in similar conditions, it is predicted that the experiment will produce results that support the hypothesis. However, unexpected variables could influence the outcome, so the prediction is not definitive.


Why doesn't Dijkstra's algorithm work with negative weights?

Dijkstra's algorithm does not work with negative weights because it assumes that all edge weights are non-negative. Negative weights can cause the algorithm to give incorrect results or get stuck in an infinite loop.


How can unexpected results be as important as expected results in a science experiment?

So scientists can learn from their mistakes and they can look back on that information in a similar test.


What comes last in the scientific method?

expected and unexpected results comes last in the scientific method.