Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Expressive power (computer science)

From Wikipedia, the free encyclopedia
Breadth of ideas which can be represented in a formal language

Incomputer science, theexpressive power (also calledexpressiveness orexpressivity) of alanguage is the breadth ofideas that can be represented and communicated in that language. The more expressive a language is, the greater the variety and quantity of ideas it can be used to represent.

For example, theWeb Ontology Language expression language profile (OWL2 EL) lacks ideas (such asnegation) that can be expressed in OWL2 RL (rule language). OWL2 EL may therefore be said to have lessexpressive power than OWL2 RL. These restrictions allow for more efficient (polynomial time) reasoning in OWL2 EL than in OWL2 RL. So OWL2 EL trades some expressive power for more efficient reasoning (processing of theknowledge representation language).[1]

Information description

[edit]

The termexpressive power may be used with a range of meaning. It may mean a measure of the ideas expressible in that language:[2]

  • regardless of ease (theoretical expressivity)
  • concisely and readily (practical expressivity)

The first sense dominates in areas ofmathematics andlogic that deal with the formal description of languages and their meaning, such asformal language theory,mathematical logic andprocess algebra.[2]

In informal discussions, the term often refers to the second sense, or to both. This is often the case when discussingprogramming languages.[3][page needed] Efforts have been made to formalize these informal uses of the term.[4]

The notion of expressive power is always relative to a particular kind of thing that the language in question can describe, and the term is normally used when comparing languages that describe the same kind of things, or at least comparable kinds of things.[4]

The design of languages and formalisms involves a trade-off between expressive power and analyzability. The more a formalism can express, the harder it becomes to understand what instances of the formalism say.Decision problems become harder to answer or completelyundecidable.[5]

Examples

[edit]

In formal language theory

[edit]
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Expressive power" computer science – news ·newspapers ·books ·scholar ·JSTOR
(April 2010) (Learn how and when to remove this message)

Formal language theory mostly studies formalisms to describe sets ofstrings, such ascontext-free grammars andregular expressions. Each instance of a formalism, e.g. each grammar and each regular expression, describes a particular set of strings. In this context, the expressive power of a formalism is the set of sets of strings its instances describe, and comparing expressive power is a matter of comparing these sets.

An important yardstick for describing the relative expressive power of formalisms in this area is theChomsky hierarchy. It says, for instance, thatregular expressions,nondeterministic finite automata andregular grammars have equal expressive power, while that ofcontext-free grammars is greater; what this means is that the sets of sets of strings described by the first three formalisms are equal, and a proper subset of the set of sets of strings described by context-free grammars.

In this area, the cost of expressive power is a central topic of study. It is known, for instance, that deciding whether two arbitrary regular expressions describe the same set of strings is hard, while doing the same for arbitrary context-free grammars iscompletely impossible. However, it can still be efficiently decided whether any given string is in the set.

For more expressive formalisms, this problem can be harder, or even undecidable. For aTuring complete formalism, such as arbitraryformal grammars, not only this problem, butevery nontrivial property regarding the set of strings they describe is undecidable, a fact known asRice's Theorem.

There are some results on conciseness as well; for instance, nondeterministic finite automata and regular grammars are more concise than regular expressions, in the sense that the latter can be translated to the former without a blowup in size (i.e. inO(1)), while the reverse is not possible.

Similar considerations apply to formalisms that describe not sets of strings, but sets oftrees (e.g.XML schema languages), ofgraphs, or other structures.

In database theory

[edit]

Database theory is concerned, among other things, withdatabase queries, e.g.formulas that, given the contents of a database, specify certain information to be extracted from it. In the predominantrelational database paradigm, the contents of a database are described as a finite set of finitary mathematical relations; Boolean queries, that always yieldtrue orfalse, are formulated infirst-order logic.

It turns out thatfirst-order logic is lacking in expressive power: it cannot express certain types of Boolean queries, e.g. queries involvingtransitive closure.[6] However, adding expressive power must be done with care: it must still remain possible to evaluate queries with reasonable efficiency, which is not the case, e.g., forsecond-order logic. Consequently, a literature sprang up in which manyquery languages and language constructs were compared on the basis of expressive power and efficiency, e.g. various versions ofDatalog.[7]

Similar considerations apply for query languages on other types of data, e.g. XML query languages such asXQuery.

See also

[edit]

References

[edit]
  1. ^Grau, Bernardo Cuenca;Horrocks, Ian;Motik, Boris;Parsia, Bijan;Patel-Schneider, Peter;Sattler, Ulrike (2008). "OWL 2: The next step for OWL".Web Semantics: Science, Services and Agents on the World Wide Web.6 (4):309–322.doi:10.1016/j.websem.2008.05.001.ISSN 1570-8268.
  2. ^abFarmer, William (2007). "Chiron: A multi-paradigm logic". In R. Matuszewski; A. Zalewska (eds.).From Insight to Proof: Festschrift in Honour of Andrzej Trybulec. Studies in Logic, Grammar and Rhetoric. pp. 1–19.ISBN 978-83-7431-128-1.
  3. ^Structure and Interpretation of Computer Programs, byAbelson andSussman
  4. ^abFelleisen, Matthias (1991-12-01)."On the expressive power of programming languages".Science of Computer Programming.17 (1):35–75.doi:10.1016/0167-6423(91)90036-W.
  5. ^Okhotin, Alexander (December 2005)."Unresolved systems of language equations: Expressive power and decision problems".Theoretical Computer Science.349 (3):283–308.doi:10.1016/j.tcs.2005.07.038.
  6. ^Serge Abiteboul,Richard B. Hull,Victor Vianu: Foundations of Databases. Addison-Wesley, 1995.
  7. ^Evgeny Dantsin,Thomas Eiter,Georg Gottlob, andAndrei Voronkov: Complexity and expressive power of logic programming. ACM Comput. Surv. 33(3): 374-425 (2001).
Note: This template roughly follows the 2012ACM Computing Classification System.
Hardware
Computer systems organization
Networks
Software organization
Software notations andtools
Software development
Theory of computation
Algorithms
Mathematics ofcomputing
Information systems
Security
Human-centered computing
Concurrency
Artificial intelligence
Machine learning
Graphics
Applied computing
Specialized PlatformDevelopment
Retrieved from "https://en.wikipedia.org/w/index.php?title=Expressive_power_(computer_science)&oldid=1337324625"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp