Question

a) A team of biologists keeps information about DNA structures in an AVL tree using as...

a) A team of biologists keeps information about DNA structures in an AVL tree using as key the specific weight (an integer) of a structure. The biologists routinely ask questions of the type: “Are there any structures in the tree with specific weights between a and b (both inclusive)”, and they hope to get an answer as soon as possible. Design an efficient algorithm that given integers a and b returns true if there is a key x in the tree such that a ≤ x ≤ b, and returns false if no such key exits. Describe your algorithm in pseudo-code.
b) What (and why) is the time complexity of the algorithm?

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
a) A team of biologists keeps information about DNA structures in an AVL tree using as...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT