All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Correct algorithm?

Definition 16.2 High School Computer Science · Chapter 16 — Proving Algorithms Correct

An algorithm is correct with respect to a specification if, on every input that meets the precondition, it stops and its result meets the postcondition.

Read in context →