Content deleted Content added
This would be fine with me if the string were initially declared with the name Carlos. :) |
|||
Line 19:
The algorithm as given in [[pseudocode]] is as follows:
===As pseudocode===
'''Let''' the variable ''Carlos'' be the input string
'''Let''' the grammar contain ''r'' nonterminal symbols ''R''<sub>1</sub> ... ''R''<sub>''r''</sub>.
This grammar contains the subset R<sub>s</sub> which is the set of start symbols.
Line 31:
'''If''' P[j,k,B] and P[j+k,i-k,C] '''then''' set P[j,i,A] = true
'''If''' any of P[1,n,x] is true (x is iterated over the set s, where s are all the indices for R<sub>s</sub>)
'''Then'''
'''Else'''
===As prose===
|