Differences between revisions 2 and 3
Revision 2 as of 2005-09-01 00:00:49
Size: 478
Editor: yakko
Comment:
Revision 3 as of 2005-09-01 00:20:45
Size: 560
Editor: yakko
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
 1.V is a finite set called the variables,
 2. is a finite set, disjoint from V, called the terminals,
 3.R is a finite set of rules, with each rule being a variable and a string of variables and terminals, and
 4.SV is the start variable
 1. [[latex2($V$)]] is a finite set called the variables,
 1. [[latex2($\Sigma$)]] is a finite set, disjoint from [[latex2($V$)]], called the terminals,
 1. [[latex2($R$)]] is a finite set of rules, with each rule being a variable and a string of variables and terminals, and
 1. [[latex2($S \in V$)]] is the start variable

Context Free Grammar

Def: For every ContextFreeLanguage there is a ContextFreeGrammar that generates it and a PushDownAutomata that recognizes it.

A context-free grammar is a 4-tuple latex2($(V,\Sigma,R,S)$), where

  1. latex2($V$) is a finite set called the variables,

  2. latex2($\Sigma$) is a finite set, disjoint from latex2($V$), called the terminals,

  3. latex2($R$) is a finite set of rules, with each rule being a variable and a string of variables and terminals, and

  4. latex2($S \in V$) is the start variable

ContexFreeGrammar (last edited 2020-01-26 17:53:59 by scot)