Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug In CYK PseudoCode [READY TO CLOSE] #32

Open
thundergolfer opened this issue Jul 23, 2016 · 2 comments
Open

Bug In CYK PseudoCode [READY TO CLOSE] #32

thundergolfer opened this issue Jul 23, 2016 · 2 comments

Comments

@thundergolfer
Copy link
Contributor

Steps to Replicate:

  1. Implement the CYK loop structure in Java 1.7+
  2. run the code

Expected Output:
Successful exit

Actual Output:
NullPointerException

Reason For Bug:
when length = 2 (first iteration of outer loop), start = N-1 (last iteration of middle loop), and len1 = N-1 (last iteration of inner loop),
second index of the reference to P which is start + len1 equals
2*N - 2, that is out of the array bounds for N > 1

Solution:
Fixed in #31

@harsh-2711
Copy link

I am interested in working on this issue. Can u please send me the link of CYK loop structure so that I can work on it.

@thundergolfer
Copy link
Contributor Author

thundergolfer commented Feb 13, 2018

Hey @harsh-2711, this already got fixed when #31 merged. So this issue should have been closed ages ago.

I don't have permissions to close this issue, so I've just amended the title to hopefully get someone's attention.

@thundergolfer thundergolfer changed the title Bug In CYK PseudoCode Bug In CYK PseudoCode [SHOULD BE CLOSED Feb 13, 2018
@thundergolfer thundergolfer changed the title Bug In CYK PseudoCode [SHOULD BE CLOSED Bug In CYK PseudoCode [READY TO CLOSE] Feb 13, 2018
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

No branches or pull requests

2 participants