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

Cursor Function of the ART #413

Closed
bprovot opened this issue Oct 23, 2019 · 6 comments
Closed

Cursor Function of the ART #413

bprovot opened this issue Oct 23, 2019 · 6 comments

Comments

@bprovot
Copy link

bprovot commented Oct 23, 2019

I don't really understand the goal of the Cursor function in this case. I understand how the cursor is built but I can't understand what it should do in this case. Is the goal to iterate on the tree here to return the cursor associated with a key ?

@jeehoonkang
Copy link
Member

  • A cursor is meant to point to a point (which is either the node or on an edge) in the tree.
  • What do you mean by the "cursor function"? Please refer to the lines of code in GitHub.

@Shynar88
Copy link

Shynar88 commented Oct 24, 2019

I guess it's line 110 from art.rs.

fn cursor<'a, I>(&'a mut self, key: &mut Peekable<I>) -> Cursor<'a, V>
    where
        I: 'a + Iterator<Item = u8>,
    {
        unimplemented!()
    }

@jeehoonkang
Copy link
Member

@bprovot
Copy link
Author

bprovot commented Oct 25, 2019

Ok then I'm not sure to understand what a cursor pointing to an edge is. Could you please illustrate ?

@Shynar88
Copy link

Maybe #394 can help? As far as I understood, the purple line is the cursor pointing to the edge

@bprovot
Copy link
Author

bprovot commented Oct 25, 2019

OK this helped. Thanks a lot

@bprovot bprovot closed this as completed Oct 25, 2019
@kyeongmincho kyeongmincho transferred this issue from kaist-cp/helpdesk Oct 14, 2021
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

3 participants