Research output: Contribution to journal › Article › peer-review
A parallel algorithm for counting parse trees. / Михельсон, Маргарита Николаевна; Охотин, Александр Сергеевич.
In: Information and Computation, Vol. 303, 105237, 01.03.2025.Research output: Contribution to journal › Article › peer-review
}
TY - JOUR
T1 - A parallel algorithm for counting parse trees
AU - Михельсон, Маргарита Николаевна
AU - Охотин, Александр Сергеевич
PY - 2025/3/1
Y1 - 2025/3/1
N2 - A parallel algorithm for computing the number of parse trees of a given string according to a fixed context-free grammar is defined. More generally, the algorithm applies to computing the weight of a string in a weighted grammar over any semiring. The algorithm is first implemented on an arithmetic circuit of depth at most 6(log2n)2+O(logn) and with O(n6) elements, where the constant factors in the big-O notation depend on the grammar. Then, the circuit is improved using fast matrix multiplication to use only O(n5.38) elements, while preserving depth O((logn)2).
AB - A parallel algorithm for computing the number of parse trees of a given string according to a fixed context-free grammar is defined. More generally, the algorithm applies to computing the weight of a string in a weighted grammar over any semiring. The algorithm is first implemented on an arithmetic circuit of depth at most 6(log2n)2+O(logn) and with O(n6) elements, where the constant factors in the big-O notation depend on the grammar. Then, the circuit is improved using fast matrix multiplication to use only O(n5.38) elements, while preserving depth O((logn)2).
KW - Context-free grammars
KW - Matrix multiplication
KW - Parallel algorithms
KW - Parsing
KW - Weighted grammars
UR - https://www.mendeley.com/catalogue/5e7d04f6-3b4c-3c92-8af6-c7c358ad7c8d/
U2 - 10.1016/j.ic.2024.105237
DO - 10.1016/j.ic.2024.105237
M3 - Article
VL - 303
JO - Information and Computation
JF - Information and Computation
SN - 0890-5401
M1 - 105237
ER -
ID: 131232926