Question

c++ What are the differences and similarities between Binary Search Tree and Binary Searches of arrays.

c++

What are the differences and similarities between Binary Search Tree and Binary Searches of arrays.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Differences -

BinarySearch Tree Binary search
Its work on tree data structure It work on array data structure

In this data is arrange in such a way that data on left

side of node is smaller and on right side is larger

In this data is arranged in sorted form the array ie sorting form
Used to handle large amount of data Cant be used to handle large amount of data
Uses pointers to store the data in memory at particular location It doesnt uses pointer

Similarity -

Binary Search Tree Binary Search
Time complexity is O(Log(n)) Time complexity is O(Log(n))
Uses same technique of storing data in sorted form Here also data is stored in sorted form.
Add a comment
Know the answer?
Add Answer to:
c++ What are the differences and similarities between Binary Search Tree and Binary Searches of arrays.
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
ADVERTISEMENT