23 pros and cons of binary search, computer science homework help

pros and cons of binary search, computer science homework help

Short answer questions

1.Why are vectors safer to use than arrays? Explain.

2. What is the difference between function prototype and function signature?

3. What are the pros and cons of binary search?

4. Define the concept growth rate and how it relates to determining the complexity of algorithms.

5. Define the concept of encapsulation.

6, what are the manipulators used for?

7. When would you pass an object as function argument by value?

8. What is the time complexity of the following code block? Justify. for (int i 0; i