• Breaking News

    Monday, February 17, 2020

    Trying to Understand LR/LALR Parsing Computer Science

    Trying to Understand LR/LALR Parsing Computer Science


    Trying to Understand LR/LALR Parsing

    Posted: 16 Feb 2020 06:28 PM PST

    (A) My instructor keeps talking about "the LR(1) parsing algorithm" and "the LALR(1) parsing algorithm". He hasn't finished with the latter, but, reading ahead, it appears to operate the same way as the former. We have a state machine with a stack that holds symbols and states. We have an action table and a goto table, and at each time step we do one of four actions: (1) accept, (2) error, (3) shift, (4) reduce-then-goto.

    Now, I understand that when we use LALR we generate the parsing tables differently. But it appears that as parsing algorithms, LR(1) and LALR(1) are identical. That is, they consist of a single parsing algorithm applied to tables that are generated in different ways.

    Am I missing something?

    (B) Also, I read somewhere (can't find it right now) something like "there are LR parsers that are not table driven". Does that make any sense? If LR is a parsing algorithm that uses tables, how can there be an LR parser that does not use tables?

    submitted by /u/questionhuman
    [link] [comments]

    A massive collection of fraud detection research papers

    Posted: 16 Feb 2020 08:12 AM PST

    https://preview.redd.it/ontjlo9r8bh41.png?width=1280&format=png&auto=webp&s=dc78f5f73a0c717b610cf0978b99fc3156364ad8

    https://github.com/benedekrozemberczki/awesome-fraud-detection-papers

    A curated list of papers about fraud detection from the following conferences:

    Similar collections about graph embedding, classification/regression tree, gradient boosting and community detection papers with implementations.

    submitted by /u/benitorosenberg
    [link] [comments]

    Turnstile+: Dependent Type Systems as Macros

    Posted: 17 Feb 2020 03:07 AM PST

    Implementing the Merge Sort in JS (Video tutorial)

    Posted: 16 Feb 2020 09:13 AM PST

    Hey guys, here's my implementation of the merge sort in JS: https://youtu.be/x_Z9FcAPmbk

    How would you implement the merge sort? This algorithm seems to be hard for a lot of people I tried explaining too. Do you have any other, more intuitive way, of implementing this algorithm?

    I would love to see alternative methods

    submitted by /u/justinkim943
    [link] [comments]

    No comments:

    Post a Comment