Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Formal language
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Words over an alphabet == {{main article|Alphabet (formal languages)}} An ''alphabet'', in the context of formal languages, can be any [[set (mathematics)|set]]; its elements are called ''letters''. An alphabet may contain an [[countable set|infinite]] number of elements;{{NoteTag|For example, [[first-order logic]] is often expressed using an alphabet that, besides symbols such as β§, Β¬, β and parentheses, contains infinitely many elements ''x''<sub>0</sub>, ''x''<sub>1</sub>, ''x''<sub>2</sub>, β¦ that play the role of variables.}} however, most definitions in formal language theory specify alphabets with a finite number of elements, and many results apply only to them. It often makes sense to use an [[alphabet]] in the usual sense of the word, or more generally any finite [[character encoding]] such as [[ASCII]] or [[Unicode]]. A '''word''' over an alphabet can be any finite sequence (i.e., [[string (computer science)|string]]) of letters. The set of all words over an alphabet Ξ£ is usually denoted by Ξ£<sup>*</sup> (using the [[Kleene star]]). The length of a word is the number of letters it is composed of. For any alphabet, there is only one word of length 0, the ''empty word'', which is often denoted by e, Ξ΅, Ξ» or even Ξ. By [[concatenation]] one can combine two words to form a new word, whose length is the sum of the lengths of the original words. The result of concatenating a word with the empty word is the original word. In some applications, especially in [[logic]], the alphabet is also known as the ''vocabulary'' and words are known as ''formulas'' or ''sentences''; this breaks the letter/word metaphor and replaces it by a word/sentence metaphor.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Formal language
(section)
Add topic