Question: please solve as soon as possible..it is algorithn problem b) You are playing a game in a party. There are n balloons and one of

 please solve as soon as possible..it is algorithn problem b) You

please solve as soon as possible..it is algorithn problem

b) You are playing a game in a party. There are n balloons and one of them has a gemstone [10] inside it. You are asked to find the balloon with the gemstone in it. Write an O(logn) divide and conquer algorithm to locate/find the balloon with the gemstone. Hints: 1) Balloon with the gemstone will be heavier than the other balloons. 2) Dividing the balloons into 2 halves will give you a clue which pile has the balloon with gemstone

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!