DocumentCode :
2203547
Title :
Operations on sparse relations and efficient algorithms for grammar problems
Author :
Hunt, Harry B., III ; Szymanski, Thomas G. ; Ullman, Jeffrey D.
fYear :
1974
fDate :
14-16 Oct. 1974
Firstpage :
127
Lastpage :
132
Abstract :
various operations on graphs, matrices, or relations can be executed more quickly when the arguments are "sparse" (i.e., if e ≪ ≪ v2where e is the number of edges and v the number of vertices) than when they are "dense" (i.e., e ≈ v2). Fast algorithms are presented for a large class of operations on sparse relations. These algorithms are used to produce the best known methods for solving a variety of grammar problems relevant to parsing. Letting the size n of a grammar be the sum of the lengths of all of its productions, we discuss the following - (1) finding linear precedence functions in 0(n) steps; (2) computing precedence relations in 0(n2) steps; (3) LR(0), SLR(1), and LL(1) testing in 0(n2) steps; and (4) polynomial algorithms for LL(k), SLR(k), and LR(k) testing, for fixed k.
Keywords :
Automata; Polynomials; Production; Sparse matrices; Testing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Switching and Automata Theory, 1974., IEEE Conference Record of 15th Annual Symposium on
Conference_Location :
USA
ISSN :
0272-4847
Type :
conf
DOI :
10.1109/SWAT.1974.21
Filename :
4569767
Link To Document :
بازگشت