Content deleted Content added
m Dating maintenance tags: {{Citation needed}} |
m →Examples: {{math}}, {{mvar}} |
||
Line 20:
== Examples ==
As noted above, every context-sensitive language is recursive. Thus, a simple example of a recursive language is the set {{math|1=''L''={{mset|''abc'', ''aabbcc'', ''aaabbbccc'', ...}
<math>L=\{\,w \in \{a,b,c\}^* \mid w=a^nb^nc^n \mbox{ for some } n\ge 1 \,\}</math> is context-sensitive and therefore recursive.
Examples of decidable languages that are not context-sensitive are more difficult to describe. For one such example, some familiarity with [[mathematical logic]] is required: [[Presburger arithmetic]] is the first-order theory of the natural numbers with addition (but without multiplication). While the set of [[First-order_logic#Formulas|well-formed formulas]] in Presburger arithmetic is context-free, every deterministic Turing machine accepting the set of true statements in Presburger arithmetic has a worst-case runtime of at least <math>2^{2^{cn}}</math>, for some constant {{math|''c'' > 0}} {{harv|Fischer|Rabin|1974}}. Here,
== Closure properties ==
|