A parallel algorithm for counting parse trees

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...

Full description

Saved in:
Bibliographic Details
Published in:Information and computation Vol. 303; p. 105237
Main Authors: Mikhelson, Margarita, Okhotin, Alexander
Format: Journal Article
Language:English
Published: Elsevier Inc 01.03.2025
Subjects:
ISSN:0890-5401
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
Abstract 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(log2⁡n)2+O(log⁡n) 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((log⁡n)2).
AbstractList 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(log2⁡n)2+O(log⁡n) 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((log⁡n)2).
ArticleNumber 105237
Author Okhotin, Alexander
Mikhelson, Margarita
Author_xml – sequence: 1
  givenname: Margarita
  surname: Mikhelson
  fullname: Mikhelson, Margarita
  email: mn.mikhelson@gmail.com
– sequence: 2
  givenname: Alexander
  surname: Okhotin
  fullname: Okhotin, Alexander
  email: alexander.okhotin@spbu.ru
BookMark eNp1j01PwzAMhnMYEtvgzrF_oCXfTblNE1_SJC5wjlLXGam6ZkoKEv-eVuPKxZb16rH9bMhqjCMScsdoxSjT930VoOKUy3lUXNQrsqamoaWSlF2TTc49pYwpqdek3BVnl9ww4FC44RhTmD5PhY-pgPg1TmE8LnnGYkqI-YZceTdkvP3rW_Lx9Pi-fykPb8-v-92hBC7raa6tmW85rWvDofVUgxBGdUaKTmlkjW8M1-B0o3UrPW-cAvRSomBdrTkXW0IveyHFnBN6e07h5NKPZdQuira3AeyiaC-KM_JwQXD-6ztgshkCjoBdSAiT7WL4H_4Fn0xa0Q
Cites_doi 10.1016/j.tcs.2013.09.011
10.1016/S0747-7171(08)80013-2
10.1016/j.ic.2020.104672
10.1121/1.2017061
10.1007/BF02165411
10.1016/S0022-0000(75)80046-8
10.1016/0020-0190(88)90164-0
10.1145/2287718.2287719
ContentType Journal Article
Copyright 2024 Elsevier Inc.
Copyright_xml – notice: 2024 Elsevier Inc.
DBID AAYXX
CITATION
DOI 10.1016/j.ic.2024.105237
DatabaseName CrossRef
DatabaseTitle CrossRef
DatabaseTitleList
DeliveryMethod fulltext_linktorsrc
Discipline Engineering
Computer Science
ExternalDocumentID 10_1016_j_ic_2024_105237
S0890540124001020
GroupedDBID --K
--M
--Z
-~X
.~1
0R~
1B1
1~.
1~5
29I
4.4
457
4G.
5GY
5VS
6TJ
7-5
71M
8P~
9JN
AACTN
AAEDT
AAEDW
AAIKJ
AAKOC
AALRI
AAOAW
AAQFI
AAQXK
AAXKI
AAXUO
AAYFN
ABAOU
ABBOA
ABDPE
ABFNM
ABJNI
ABMAC
ABTAH
ABWVN
ABXDB
ACDAQ
ACGFS
ACNNM
ACRLP
ACRPL
ACZNC
ADBBV
ADEZE
ADFGL
ADMUD
ADNMO
ADVLN
AEBSH
AEIPS
AEKER
AENEX
AEXQZ
AFJKZ
AFTJW
AGHFR
AGUBO
AGYEJ
AHHHB
AHZHX
AIALX
AIEXJ
AIKHN
AITUG
AKRWK
ALMA_UNASSIGNED_HOLDINGS
AMRAJ
ANKPU
AOUOD
ARUGR
ASPBG
AVWKF
AXJTR
AZFZN
BKOJK
BLXMC
CAG
COF
CS3
DM4
DU5
E3Z
EBS
EFBJH
EJD
EO8
EO9
EP2
EP3
FDB
FEDTE
FGOYB
FIRID
FNPLU
FYGXN
G-Q
GBLVA
GBOLZ
HVGLF
HZ~
H~9
IHE
IXB
J1W
KOM
LG5
LX9
M41
MHUIS
MO0
MVM
N9A
O-L
O9-
OAUVE
OK1
OZT
P-8
P-9
P2P
PC.
Q38
R2-
RIG
RNS
ROL
RPZ
SDF
SDG
SDP
SES
SEW
SPC
SPCBC
SSV
SSW
SSZ
T5K
TN5
WH7
WUQ
XJT
XPP
ZMT
ZU3
ZY4
~G-
9DU
AATTM
AAYWO
AAYXX
ACLOT
ACVFH
ADCNI
AEUPX
AFPUW
AGQPQ
AIGII
AIIUN
AKBMS
AKYEP
APXCP
CITATION
EFKBS
EFLBG
~HD
ID FETCH-LOGICAL-c247t-c2b8540a66782cbf06c3385d843d56e19f9826ca6966b4f29a5cef44e31d76223
ISICitedReferencesCount 0
ISICitedReferencesURI http://www.webofscience.com/api/gateway?GWVersion=2&SrcApp=Summon&SrcAuth=ProQuest&DestLinkType=CitingArticles&DestApp=WOS_CPL&KeyUT=001367455800001&url=https%3A%2F%2Fcvtisr.summon.serialssolutions.com%2F%23%21%2Fsearch%3Fho%3Df%26include.ft.matches%3Dt%26l%3Dnull%26q%3D
ISSN 0890-5401
IngestDate Sat Nov 29 08:13:10 EST 2025
Sat Mar 08 15:44:18 EST 2025
IsPeerReviewed true
IsScholarly true
Keywords Weighted grammars
Matrix multiplication
Parsing
Parallel algorithms
Context-free grammars
Language English
LinkModel OpenURL
MergedId FETCHMERGED-LOGICAL-c247t-c2b8540a66782cbf06c3385d843d56e19f9826ca6966b4f29a5cef44e31d76223
ParticipantIDs crossref_primary_10_1016_j_ic_2024_105237
elsevier_sciencedirect_doi_10_1016_j_ic_2024_105237
PublicationCentury 2000
PublicationDate March 2025
2025-03-00
PublicationDateYYYYMMDD 2025-03-01
PublicationDate_xml – month: 03
  year: 2025
  text: March 2025
PublicationDecade 2020
PublicationTitle Information and computation
PublicationYear 2025
Publisher Elsevier Inc
Publisher_xml – name: Elsevier Inc
References Lafferty (br0080) 2000
Rytter (br0100) 1984; vol. 208
Brent, Goldschlager (br0040) 1984; 6
Bakinova, Basharin, Batmanov, Lyubort, Okhotin, Sazhneva (br0020) 2022; 283
Gazit, Miller (br0060) 1988; 28
Coppersmith, Winograd (br0050) 1990; 9
Valiant (br0130) 1975; 10
Vassilevska Williams, Xu, Xu, Zhou (br0140) 2024
Wegener (br0150) 1987
Baker (br0010) 1979; 65
Okhotin (br0090) 2014; 516
Gelade, Marquardt, Schwentick (br0070) 2012; 13
Volker (br0120) 1969; 13
Benedí, Sánchez (br0030) 2007; vol. 4477
Schmidt, Schwentick, Todtenhoefer (br0110) 2023; vol. 272
Vassilevska Williams (10.1016/j.ic.2024.105237_br0140) 2024
Coppersmith (10.1016/j.ic.2024.105237_br0050) 1990; 9
Schmidt (10.1016/j.ic.2024.105237_br0110) 2023; vol. 272
Benedí (10.1016/j.ic.2024.105237_br0030) 2007; vol. 4477
Lafferty (10.1016/j.ic.2024.105237_br0080) 2000
Rytter (10.1016/j.ic.2024.105237_br0100) 1984; vol. 208
Gelade (10.1016/j.ic.2024.105237_br0070) 2012; 13
Volker (10.1016/j.ic.2024.105237_br0120) 1969; 13
Brent (10.1016/j.ic.2024.105237_br0040) 1984; 6
Bakinova (10.1016/j.ic.2024.105237_br0020) 2022; 283
Gazit (10.1016/j.ic.2024.105237_br0060) 1988; 28
Wegener (10.1016/j.ic.2024.105237_br0150) 1987
Okhotin (10.1016/j.ic.2024.105237_br0090) 2014; 516
Valiant (10.1016/j.ic.2024.105237_br0130) 1975; 10
Baker (10.1016/j.ic.2024.105237_br0010) 1979; 65
References_xml – volume: 6
  year: 1984
  ident: br0040
  article-title: A parallel algorithm for context-free parsing
  publication-title: Aust. Comput. Sci. Commun.
– volume: 13
  start-page: 354
  year: 1969
  end-page: 356
  ident: br0120
  article-title: Gaussian elimination is not optimal
  publication-title: Numer. Math.
– year: 1987
  ident: br0150
  article-title: The Complexity of Boolean Functions
– start-page: 3792
  year: 2024
  end-page: 3835
  ident: br0140
  article-title: New bounds for matrix multiplication: from alpha to omega
  publication-title: Proceedings of the 2024 ACM-SIAM Symposium on Discrete Algorithms, SODA 2024
– volume: vol. 4477
  start-page: 80
  year: 2007
  end-page: 88
  ident: br0030
  article-title: Fast stochastic context-free parsing: a stochastic version of the Valiant algorithm
  publication-title: Pattern Recognition and Image Analysis, Third Iberian Conference, IbPRIA 2007, Proceedings, Part I
– volume: 28
  start-page: 61
  year: 1988
  end-page: 65
  ident: br0060
  article-title: An improved parallel algorithm that computes the BFS numbering of a directed graph
  publication-title: Inf. Process. Lett.
– volume: 9
  start-page: 251
  year: 1990
  end-page: 280
  ident: br0050
  article-title: Matrix multiplication via arithmetic progressions
  publication-title: J. Symb. Comput.
– volume: 13
  start-page: 19:1
  year: 2012
  end-page: 19:36
  ident: br0070
  article-title: The dynamic complexity of formal languages
  publication-title: ACM Trans. Comput. Log.
– year: 2000
  ident: br0080
  article-title: A derivation of the inside-outside algorithm from the em algorithm
– volume: 10
  start-page: 308
  year: 1975
  end-page: 315
  ident: br0130
  article-title: General context-free recognition in less than cubic time
  publication-title: J. Comput. Syst. Sci.
– volume: vol. 208
  start-page: 318
  year: 1984
  end-page: 325
  ident: br0100
  article-title: On the recognition of context-free languages
  publication-title: Computation Theory - Fifth Symposium, Proceedings
– volume: 516
  start-page: 101
  year: 2014
  end-page: 120
  ident: br0090
  article-title: Parsing by matrix multiplication generalized to Boolean grammars
  publication-title: Theor. Comput. Sci.
– volume: vol. 272
  year: 2023
  ident: br0110
  article-title: On the work of dynamic constant-time parallel algorithms for regular tree languages and context-free languages
  publication-title: 48th International Symposium on Mathematical Foundations of Computer Science, MFCS 2023
– volume: 283
  year: 2022
  ident: br0020
  article-title: Formal languages over GF(2)
  publication-title: Inf. Comput.
– volume: 65
  start-page: 132
  year: 1979
  ident: br0010
  article-title: Trainable grammars for speech recognition
  publication-title: J. Acoust. Soc. Am.
– year: 1987
  ident: 10.1016/j.ic.2024.105237_br0150
– year: 2000
  ident: 10.1016/j.ic.2024.105237_br0080
– volume: 516
  start-page: 101
  year: 2014
  ident: 10.1016/j.ic.2024.105237_br0090
  article-title: Parsing by matrix multiplication generalized to Boolean grammars
  publication-title: Theor. Comput. Sci.
  doi: 10.1016/j.tcs.2013.09.011
– volume: 9
  start-page: 251
  issue: 3
  year: 1990
  ident: 10.1016/j.ic.2024.105237_br0050
  article-title: Matrix multiplication via arithmetic progressions
  publication-title: J. Symb. Comput.
  doi: 10.1016/S0747-7171(08)80013-2
– volume: 283
  year: 2022
  ident: 10.1016/j.ic.2024.105237_br0020
  article-title: Formal languages over GF(2)
  publication-title: Inf. Comput.
  doi: 10.1016/j.ic.2020.104672
– volume: vol. 272
  year: 2023
  ident: 10.1016/j.ic.2024.105237_br0110
  article-title: On the work of dynamic constant-time parallel algorithms for regular tree languages and context-free languages
– volume: 65
  start-page: 132
  year: 1979
  ident: 10.1016/j.ic.2024.105237_br0010
  article-title: Trainable grammars for speech recognition
  publication-title: J. Acoust. Soc. Am.
  doi: 10.1121/1.2017061
– volume: vol. 208
  start-page: 318
  year: 1984
  ident: 10.1016/j.ic.2024.105237_br0100
  article-title: On the recognition of context-free languages
– volume: 13
  start-page: 354
  year: 1969
  ident: 10.1016/j.ic.2024.105237_br0120
  article-title: Gaussian elimination is not optimal
  publication-title: Numer. Math.
  doi: 10.1007/BF02165411
– volume: 10
  start-page: 308
  issue: 2
  year: 1975
  ident: 10.1016/j.ic.2024.105237_br0130
  article-title: General context-free recognition in less than cubic time
  publication-title: J. Comput. Syst. Sci.
  doi: 10.1016/S0022-0000(75)80046-8
– start-page: 3792
  year: 2024
  ident: 10.1016/j.ic.2024.105237_br0140
  article-title: New bounds for matrix multiplication: from alpha to omega
– volume: vol. 4477
  start-page: 80
  year: 2007
  ident: 10.1016/j.ic.2024.105237_br0030
  article-title: Fast stochastic context-free parsing: a stochastic version of the Valiant algorithm
– volume: 6
  issue: 7
  year: 1984
  ident: 10.1016/j.ic.2024.105237_br0040
  article-title: A parallel algorithm for context-free parsing
  publication-title: Aust. Comput. Sci. Commun.
– volume: 28
  start-page: 61
  issue: 2
  year: 1988
  ident: 10.1016/j.ic.2024.105237_br0060
  article-title: An improved parallel algorithm that computes the BFS numbering of a directed graph
  publication-title: Inf. Process. Lett.
  doi: 10.1016/0020-0190(88)90164-0
– volume: 13
  start-page: 19:1
  issue: 3
  year: 2012
  ident: 10.1016/j.ic.2024.105237_br0070
  article-title: The dynamic complexity of formal languages
  publication-title: ACM Trans. Comput. Log.
  doi: 10.1145/2287718.2287719
SSID ssj0011546
Score 2.4017496
Snippet 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...
SourceID crossref
elsevier
SourceType Index Database
Publisher
StartPage 105237
SubjectTerms Context-free grammars
Matrix multiplication
Parallel algorithms
Parsing
Weighted grammars
Title A parallel algorithm for counting parse trees
URI https://dx.doi.org/10.1016/j.ic.2024.105237
Volume 303
WOSCitedRecordID wos001367455800001&url=https%3A%2F%2Fcvtisr.summon.serialssolutions.com%2F%23%21%2Fsearch%3Fho%3Df%26include.ft.matches%3Dt%26l%3Dnull%26q%3D
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
journalDatabaseRights – providerCode: PRVESC
  databaseName: Elsevier SD Freedom Collection Journals 2021
  issn: 0890-5401
  databaseCode: AIEXJ
  dateStart: 20211209
  customDbUrl:
  isFulltext: true
  dateEnd: 99991231
  titleUrlDefault: https://www.sciencedirect.com
  omitProxy: false
  ssIdentifier: ssj0011546
  providerName: Elsevier
link http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwtV1NT9wwELXKx4EeaPkSlFL5wAWhoDi2k_i4QiBALe0B0N6i2LHZLJBdsUvFz-84sbNZBBIcerEiJ3Ecv2gytt-8QWjfMM5lSFmgtMgDJnkYpLEkgSwKwnIZG15LCt38TC4v035f_HG5yid1OoGkqtLnZzH-r1BDHYBtQ2c_AHfbKFTAMYAOJcAO5buA7x1aOe_7e225x7cjmPwPHmoyYZsWAs5PtKWYO_7g0LPZ20hGH-02fprfqf9V3g2013dscuSW09aw_74bjLwmgY-b6a4qRHxGq_LGR4SWNEG6lpKGtGPriF1RTl41w82KwPCotCKRETuaXTqveP3iT9TyAz31bJiVKrMtZE0LC2gpSrgA67XUOz_pX7T7RcSFZPleuw3phsk334vXHZCOU3H1Fa262QDuNSiuoU-6WkdffKYN7AzvOvrckY3cQEEPe4hxCzEG8LCHGNcQ4xriTXR9enJ1fBa4tBeBilgyhVKm8A55DH5EpKQJY0VpyouU0YLHmggjYE6o8hhmqpKZSORcacOYpqSAX1tEt9BiNar0NsKaSCFzFZoiJSwpaBpxYyyLjlMZF6HZQQd-LLJxo26SvTX2O4j6wcqcd9Z4XRmg_uZd3z7whF20MvsUv6PF6eOT3kPL6u-0nDz-cJD_A_Y5VuQ
linkProvider Elsevier
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=A+parallel+algorithm+for+counting+parse+trees&rft.jtitle=Information+and+computation&rft.au=Mikhelson%2C+Margarita&rft.au=Okhotin%2C+Alexander&rft.date=2025-03-01&rft.issn=0890-5401&rft.volume=303&rft.spage=105237&rft_id=info:doi/10.1016%2Fj.ic.2024.105237&rft.externalDBID=n%2Fa&rft.externalDocID=10_1016_j_ic_2024_105237
thumbnail_l http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/lc.gif&issn=0890-5401&client=summon
thumbnail_m http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/mc.gif&issn=0890-5401&client=summon
thumbnail_s http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/sc.gif&issn=0890-5401&client=summon