请输入您要查询的字词:

 

单词 Language
释义

language


Let Σ be an alphabet. We then define the following using thepowers of an alphabet and infiniteMathworldPlanetmath union, where n.

Σ+=n=1Σn
Σ*=n=0Σn=Σ+{λ}

where λ is the element called empty string.A string is an element of Σ*, meaning thatit is a grouping of symbols from Σ one after another (via concatenationMathworldPlanetmath). For example, abbc is astring, and cbba is a different string. A string is also commonly called a word.Σ+, like Σ*, contains all finite strings except thatΣ+ does not contain the empty string λ.Given a string sΣ*, a string t is a substring of s ifs=utv for some strings u,vΣ*. For example, lp,al,ha,alpha, and λ (the empty string) are all substrings of the string alpha.

Definition. A language over an alphabet Σ is a subset of Σ*, meaning thatit is a set (http://planetmath.org/Set) of strings made from the symbols in the alphabet Σ.

Take for example an alphabet Σ={,,63,a,A}.The following are all languages over Σ:

  • {aaa,λ,A63,63,AaAaA},

  • {a,aa,aaa,aaaa,},

  • The empty setMathworldPlanetmath . In the context of languages, is called the empty language.

  • {63}

  • {a2nn0}

A language L is said to be proper if the empty string does not belong to it: λL. A proper language is also said to be λ-free. Otherwise, it is improper. In the examples above, all but the first and the last examples are λ-free. L is a finite language if L is a finite setMathworldPlanetmath, and atomic if it is a singleton subset of Σ, such as the fourth example above. A language can be arbitrarily formed, or constructed via some set of rules called a formal grammar.

Given a language L over Σ, the alphabet of L is defined as the maximal subset Σ(L) of Σ such that every symbol in Σ(L) occurs in some word in L. Equivalently, define the alphabet of a word w to be the set Σ(w) of all symbols that occur in w, then Σ(L) is the union of all Σ(w), where w ranges over L.

Remark. A language can also be described in terms of “infinite” alphabets. For example, in model theoryMathworldPlanetmath, a language is built from a set of symbols, together with a set of variables. These sets are often infinite. Another way of generalizing the notion of a language is to allow the strings to have infinite lengths. The way to do this is to think of a string as a partial functionMathworldPlanetmath f from some set X to the alphabet A such that |dom(f)|<|X|. Then the length of a string f:XA is just |dom(f)|. This specializes to the finite case if we take X to be the set of all non-negative integers.

Titlelanguage
Canonical nameLanguage
Date of creation2013-03-22 12:17:10
Last modified on2013-03-22 12:17:10
Ownermps (409)
Last modified bymps (409)
Numerical id28
Authormps (409)
Entry typeDefinition
Classificationmsc 03C07
Classificationmsc 68Q45
Synonymλ-free
Related topicAlphabet
Related topicContextFreeLanguage
Related topicRegularLanguage
Related topicDeterministicFiniteAutomaton
Related topicNonDeterministicFiniteAutomaton
Related topicKleeneStar
Related topicFormalGrammar
Related topicFirstOrderLanguage
Related topicTermsAndFormulas
Related topicWord
Definesstring
Definesempty language
Definessubstring
Definesproper language
Definesimproper language
Definesalphabet of a language
Definesalphabet of a word
Definesfinite language
Definesatomic language
随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/25 16:01:47