Essential complexity

Essential complexity

Essential complexity refers to a situation where all reasonable solutions to a problem must be complicated (and possibly confusing) because the "simple" solutions would not adequately solve the problem. It stands in contrast to accidental complexity, which arises purely from mismatches in the particular choice of tools and methods applied in the solution.

The term Essential complexity is also used with a different meaning in connection with cyclomatic complexity. In this context, essential complexity refers to the cyclomatic complexity after iteratively replacing all well structured control structures with a single statement. Structures such as if-then-else and while loops are considered well structured. Unconstrained use of goto statements can produce programs which can not be reduced in this way.

For example, the following C program fragment has an essential complexity of 1, because the inner if statement and the for can be reduced:

for(i=0;i<3;i++) { if(a [i] = 0) b [i] += 2; }

The following C program fragment has an essential complexity of more than one. It finds the first row of z which is all zero and puts that index in i; if there is none, it puts -1 in i.

for(i=0;iee also

* Cyclomatic complexity
* Decision-to-decision path
* Occam's Razor
* No silver bullet


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Essential fatty acid interactions — For introductory details to this topic, including terminology and ω 3 / ω 6 nomenclature, see the main articles at Essential fatty acid and Eicosanoid. The actions of the ω 3 (Omega 3) and ω 6 (Omega 6) essential fatty acids (EFAs) are best… …   Wikipedia

  • complexity — /keuhm plek si tee/, n., pl. complexities for 2. 1. the state or quality of being complex; intricacy: the complexity of urban life. 2. something complex: the complexities of foreign policy. [1715 25; COMPLEX + ITY] * * * ▪ scientific theory… …   Universalium

  • Accidental complexity — is complexity that arises in computer programs or their development process (computer programming) which is non essential to the problem to be solved. While essential complexity is inherent and unavoidable, accidental complexity is caused by the… …   Wikipedia

  • Cyclomatic complexity — (or conditional complexity) is a software metric (measurement). It was developed by Thomas J. McCabe, Sr. in 1976 and is used to indicate the complexity of a program. It directly measures the number of linearly independent paths through a program …   Wikipedia

  • Irreducible complexity — This article covers irreducible complexity as used by those who argue for intelligent design. For information on irreducible complexity as used in Systems Theory, see Irreducible complexity (Emergence). Irreducible complexity (IC) is an argument… …   Wikipedia

  • No Silver Bullet — No Silver Bullet  Essence and Accidents of Software Engineering is a widely discussed paper on software engineering written by Fred Brooks in 1986.[1] Brooks argues that there is no single development, in either technology or management… …   Wikipedia

  • Decision-to-decision path — A decision to decision path, or DD Path, is a path of execution (usually through a graph representing a program, such as a flow chart) that does not include any conditional nodes. That is, it is the path of execution between two decisions. DD… …   Wikipedia

  • Серебряной пули нет — Фредерик Брукс, автор статьи «Серебряной пули нет» «Серебряной пули нет» (англ. «No Silver Bullet»)  широко обсуждавшаяся статья Фредерика Брукса об инженерии …   Википедия

  • Europe, history of — Introduction       history of European peoples and cultures from prehistoric times to the present. Europe is a more ambiguous term than most geographic expressions. Its etymology is doubtful, as is the physical extent of the area it designates.… …   Universalium

  • United States — a republic in the N Western Hemisphere comprising 48 conterminous states, the District of Columbia, and Alaska in North America, and Hawaii in the N Pacific. 267,954,767; conterminous United States, 3,022,387 sq. mi. (7,827,982 sq. km); with… …   Universalium

Share the article and excerpts

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