Question
1. Linear probing is equivalent to double hashing with a secondary hash function of h2(k) = 1. True False 2. An algorithm with worst case
1. Linear probing is equivalent to double hashing with a secondary hash function of h2(k) = 1. True False 2. An algorithm with worst case time behavior of 3n takes at least 30 operations for every input of size n=10 True False 3. Building a heap from an array of N items requires O(N log N) time. True False 4. For large input sizes, merge sort will always run faster than insertion sort (on the same input). True False 5. It is possible for a member function of a class to activate another member function of the same class. True False 6. Friend functions of the class can access private member variables of a class. True False 7. Suppose that the bag is implemented with a linked list. The insertion operation is likely to have a constant worst-case time. True False 8. When a function changes *p, and we want the change to affect the object that is pointed at. So we should set the pointer parameter p be a reference parameter. True False 9. The implementation of copy constructor is the same as the implementation of an overloaded assignment operator. True False 10. In the array version of the stack class (with a fixed-sized array), push operations require linear time at worst-case
1. False Linear probing is equivalent to double hashing with a secondary hashTrue function of h2(k)-1 True False An algorithm with worst case time behavior of 3n takes at least 30 operations for eve ry input of size n-10 3. Building a heap from an array of N items requires O(N log N) time. True False 4. For large input sizes, merge sort will always run faster than insertion sort True False (on the same input) 5. It is possible for a member function of a class to activate another member True False function of the same class. 6. Friend functions of the class can access private member variables of a True False class. 7. Suppose that the bag is implemented with a linked list. The insertion True False operation is likely to have a constant worst-case time 8. When a function changes *p, and we want the change to affect the object True False that is pointed at. So we should set the pointer parameter p be a reference parameter 9. True False The implementation of copy constructor is the same as the implementation of an overloaded assignment operator 10. In the array version of the stack class (with a fixed-sized array), push True False operations require linear time at worst-caseStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started