21,042 views
3 votes
3 votes
Suppose a large group of people in a room were all born in the same year. Consider the following three algorithms, which are each intended to identify the people in the room who have the earliest birthday based on just the month and day. For example, a person born on february 10 is considered to have an earlier birthday than a person born on march 5. Which of the three algorithms will identify the correct people?.

User Gyula
by
2.9k points

1 Answer

13 votes
13 votes

Answer:

Algorithm is a computer program which solves complex problems within minutes. The algorithms has different variants which are used according to user demand. In the given scenario the choice no II is correct. All standing people can form a pair with another standing person and the person standing in the last will have the earliest birthday.

User Ravindra HV
by
2.7k points