Special case

Special case

In logic, especially as applied in mathematics, concept A is a special case or specialization of concept B precisely if every instance of A is also an instance of B, or equivalently, B is a generalization of A. For example, all circles are ellipses (but most ellipses are not circles); therefore the circle is a special case of the ellipse. See also degenerate case.

In some other fields, a special case is generally an unexpected circumstance which may occur but should usually not.

For example, in computer science, in which computers are used to solve problems by transforming input data into output data, algorithms are designed to be able to handle most common input cases, but may not work in all conditions. Special cases are the particular unusual conditions which stress a system or algorithm to generate unusual results, such as low speed, or unexpected effects.

History

Many algorithms have historically been better or less equipped to deal with special cases. A common characteristic is to ignore the uncommon special cases to focus on what will happen 90, 99, or 99.9 percent of the time. The tradeoff in efficiency and speed for a slight usability or completion improvement in some special cases is often not beneficial.

Examples

For example, a system to tell documents apart using a hash function will usually function because different documents should generate different hashes. However, a special case of this is when by amazing mathematical coincidence two documents generate the same hash. This is a special case, and the algorithm will either have erroneous results in this case, or it will have to be made slower and less efficient due to additional checks. It is up to the programmer to include the checks, or to count on the programming being faster 99 percent of the time.


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • special case — index exception (exclusion) Burton s Legal Thesaurus. William C. Burton. 2006 …   Law dictionary

  • special case — atskirasis atvejis statusas T sritis fizika atitikmenys: angl. particular case; special case vok. Einzelfall, m; Spezialfall, m rus. отдельный случай, m; частный случай, m pranc. cas particulier, m …   Fizikos terminų žodynas

  • special case — noun : a case the proceedings under which are different from those of the regular common law or equity actions: as a. : an action or proceeding established by statute to provide new rights or remedies b. : a case reserved for the decision of the… …   Useful english dictionary

  • special case — A term corresponding in English practice with agreed case. Germano v Gresham Fire & Acci. Ins. Soc. (Australia) [1924] Vict LR 592. A case reserved for decision by the judges in bank or by a higher court. A proceeding unknown to the common law,… …   Ballentine's law dictionary

  • special case — Synonyms and related words: allowance, cession, circumscription, concession, definiteness, exception, exemption, extenuating circumstances, grain of salt, grant, hedge, hedging, limitation, mental reservation, modification, qualification,… …   Moby Thesaurus

  • special case — unusual circumstance, exception to the rule …   English contemporary dictionary

  • special case — noun Law a written statement of fact presented by litigants to a court …   English new terms dictionary

  • treat as a special case — index except (exclude), exclude Burton s Legal Thesaurus. William C. Burton. 2006 …   Law dictionary

  • Special relativity — (SR) (also known as the special theory of relativity or STR) is the physical theory of measurement in inertial frames of reference proposed in 1905 by Albert Einstein (after considerable contributions of Hendrik Lorentz and Henri Poincaré) in the …   Wikipedia

  • Case analysis — is one of the most general and applicable methods of analytical thinking, depending only on the division of a problem, decision or situation into a sufficient number of separate cases. Analysing each such case individually may be enough to… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”