Skip to content

Add comments for State methods - #521

Merged
yui-knk merged 1 commit into
ruby:masterfrom
yui-knk:comments_for_state
Jan 22, 2025
Merged

yui-knk merged 1 commit into
ruby:masterfrom
yui-knk:comments_for_state

Conversation

@yui-knk

@yui-knk yui-knk commented Jan 22, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread lib/lrama/state.rb

# Definition 3.14 (goto_follows, via successor_follows)
#
# TODO: This method uses `#always_follows` but the original papar uses `successor_follows`,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@junk0612 JFYI.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yui-knk
What you say in your comment is true, but I used definition 3.24(goto_follows, via always_follows) for the implementation.
These sets are equivalent, as proved in Theorem 3.25.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got it, thank you. Fixed by #522.

@yui-knk
yui-knk merged commit 27f30e2 into ruby:master Jan 22, 2025
@yui-knk
yui-knk deleted the comments_for_state branch January 22, 2025 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants