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

makePrimesTree in fig_2_18 and fig_2_19 fails to populate tree with all values #13

Open
jnorwood opened this issue Sep 9, 2020 · 0 comments

Comments

@jnorwood
Copy link

jnorwood commented Sep 9, 2020

makePrimesTreeElem needs to have IntVector::iterator &i as last parameter and makePrimesTree needs to pass in a reference to copy of vec.begin() that can be modified.
`IntVector::iterator it = vec.begin();

currently the iterator parameter is constant, and it fills the tree with duplicates of some data.

I'll attach a copy of fig_2_19 that has this fixed. The same fix needs to go into fig_2_18.

fig_2_19b.txt

`

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

1 participant