0

I want to create a binary tree out of 2d points. What should be the key to be compared for the binary tree?

3
  • don't use tags merely to attract users. When I get attracted to a question by a tag just to find that nothing in the question needs the tag my first reflex is to downvote. And the second to edit ;) Commented Aug 30, 2024 at 8:21
  • coordinates maybe? Commented Aug 30, 2024 at 8:34
  • When you have two dimensions, you would not use a plain binary tree, but a k-d tree, with k=2, or a quadtree Commented Aug 30, 2024 at 8:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.