FACTOID # 140: In Switzerland, the average person has to work for 102 minutes to buy a kilogram of beef - one of the longest times in the developed world. On the other hand, they only have work 14 hours to buy a refrigerator for it.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

FACTS & STATISTICS    Simple view

  1. Select countries to view: (hold down Control key and click to select several)

     

     

    Compare:

     

     

  1. Select fact or statistic: (* = graphable)

     

     

     

  2. (OPTIONAL) Compare to statistic: (both need to be graphable)

     

     

     

  3. View result as:

     

       
(OR) SEARCH ALL encyclopedia, stats & forums:   

Encyclopedia > Formal language

In mathematics, logic, and computer science, a formal language is a language that is defined by precise mathematical or machine processable formulas. A formal language boldsymbol{L} is typically characterized as a set  boldsymbol{F} of finite-length sequences of elements drawn from a specified finite set boldsymbol{A} of symbols. Mathematically, it is an unordered pair boldsymbol{L}={boldsymbol{A},boldsymbol{F}}. Among the more common options that are found in applications, a formal language may be viewed as being analogous to Euclid, Greek mathematician, 3rd century BC, as imagined by by Raphael in this detail from The School of Athens. ... Logic, from Classical Greek λόγος logos (meaning word, account, reason or principle), is the study of the principles and criteria of valid inference and demonstration. ... Computer science, or computing science, is the study of the theoretical foundations of information and computation and their implementation and application in computer systems. ... In mathematics, a set can be thought of as any collection of distinct objects considered as a whole. ... In mathematics, an ordered pair is a collection of two objects such that one can be distinguished as the first element and the other as the second element (the first and second elements are also known as left and right projections). ...

  • a collection of words

or

  • a collection of sentences

In the first case, the set boldsymbol{A} is called the alphabet of boldsymbol{L}, and the elements of boldsymbol{F} are called words. In the second, the set boldsymbol{A} is called the lexicon or the vocabulary of boldsymbol{F}, while the elements of boldsymbol{F} are then called sentences. The mathematical theory that treats formal languages in general is known as formal language theory. In computer science, an alphabet is a finite set of characters or digits. ...


As an example of formal language, an alphabet might be left { a , b right }, and a string over that alphabet might be ababba,.


A typical language over that alphabet, containing that string, would be the set of all strings which contain the same number of symbols a, and b.


The empty word (that is, length-zero string) is allowed and is often denoted by  e, ,  epsilon, or  Lambda, . While the alphabet is a finite set and every string has finite length, a language may very well have infinitely many member strings (because the length of words belonging to it may be unbounded).


A question often asked about formal languages is "how difficult is it to decide whether a given word belongs to a particular language?" This is the domain of computability theory and complexity theory. In computer science, computability theory is the branch of the theory of computation that studies which problems are computationally solvable using different models of computation. ... As a branch of the theory of computation in computer science, computational complexity theory describes the scalability of algorithms, and the inherent difficulty in providing scalable algorithms for specific computational problems. ...


Examples

Some examples of formal languages:

  • the set of all words over {a, b},
  • the set left { a^{n}right}, where n, is a natural number and a^n, means a, repeated n, times
  • Finite languages, such as {a,b,ab,cba}, or {ac, aca, bba},
  • the set of syntactically correct programs in a given programming language; or
  • the set of inputs upon which a certain Turing machine halts.

In mathematics, a natural number can mean either an element of the set {1, 2, 3, ...} (i. ... An artistic representation of a Turing Machine . ...

Specification

A formal language can be specified in a great variety of ways, such as:

In computer science and linguistics, a formal grammar, or sometimes simply grammar, is a precise description of a formal language — that is, of a set of strings. ... The Chomsky hierarchy is a containment hierarchy of classes of formal grammars that generate formal languages. ... In computing, a regular expression is a string that is used to describe or match a set of strings, according to certain syntax rules. ... An automaton (plural: automata) is a self-operating machine. ... An artistic representation of a Turing Machine . ... Fig. ... In computability theory and computational complexity theory, a decision problem is a question in some formal system with a yes-or-no answer. ...

Operations

Several operations can be used to produce new languages from given ones. Suppose boldsymbol{L}_{1} and boldsymbol{L}_{2} are languages over some common alphabet.

  • The concatenation boldsymbol{L}_{1}boldsymbol{L}_{2}, consists of all strings of the form vw, where v, is a string from boldsymbol{L}_{1}, and w, is a string from boldsymbol{L}_{2},.
  • The intersection boldsymbol{L}_1 cap boldsymbol{L}_2 of boldsymbol{L}_{1}, and boldsymbol{L}_{2}, consists of all strings which are contained in both languages

  Results from FactBites:
 
Formal language - Wikipedia, the free encyclopedia (512 words)
The sense of formal language dealt with in this article is the precise sense studied in formal language theory.
A typical language over that alphabet, containing that string, would be the set of all strings which contain the same number of symbols a and b.
A question often asked about formal languages is "how difficult is it to decide whether a given word belongs to the language?" This is the domain of computability theory and complexity theory.
Formal Language Definitions (1263 words)
L(G) is the notation for a language defined by a grammar G. The grammar G recognizes a certain set of strings, thus a language.
L = L1 intersect L2 The complement of a language is a language.
The language class P is the set of languages for which there exists a deterministic Turing machine that accepts each language in a number of transitions bounded by a fixed polynomial in the length of the input string.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.