Question: Question 1 Determine the Big-O for the following algorithm: You are in a market to do shopping. You want to buy some cheese from
Question 1 Determine the Big-O for the following algorithm: You are in a market to do shopping. You want to buy some cheese from the aisleway. So, you walk in there and there are 10 people in charge here. You start with the first person and ask if she is available. She says no, then you ask the next person, and the next, and the next until you find one or there is nobody else to ask.
Step by Step Solution
3.32 Rating (149 Votes )
There are 3 Steps involved in it
The scenario describes a linear search algorithm You are in a market and to find someone to help you ... View full answer
Get step-by-step solutions from verified subject matter experts
