Question: c++ Other user orting in collections Lab 1 Part One: 1) Create code that allows you to see, in average, how many elements of an

c++
Other user orting in collections Lab 1 Part One: 1) Create code that allows you to see, in average, how many elements of an unordered array/vector need to be visited before you can find a random element in it. 2) In a text processor document, write your answer and explain how you used your program to arrive to your answer. Express the answer in terms of a percentage, if in average you need to explore 750 out of 1000 elements of an array before finding the one you are searching for, say that you need to explore 75.5% of the elements of an array in average
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
