subject

Submit 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?
1. All the people in the room stand up. All standing people form pairs where possible, leaving at most one person not part of a pair. For each pair, the person with the earlier
birthday remains standing, while the other person in the pair sits down. If there is a tie, both people sit down. Any individual not part of a pair remains standing. Continue
doing this until only one person remains standing. That person has the earliest birthday
II. All the people in the room stand up. All standing people form pairs with another standing person that they have not previously been paired with where possible, leaving at
most one person not part of a pair. For each pair, the person with the earlier birthday remains standing, while the other person in the pair oito down. If there is a tie, both
people in the pair remain standing. Any individual not part of a pair remains standing. Continue doing this until only one person remains standing of all persone standing have
the same birthday. Anyone still standing has the earliest birthday.
III. Beginning with the number 1, ask if anyone was born on that day of any month. Continue with the numbers 2, 3, and so on until a positive response is received. If only one
person responds, that person has the earliest birthday, If more than one person responds, determine which person was born in the earliest month, and that person or those
persons have the earliest birthday

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:10
Technician a says that if a valve is open when a piston rises to the very top of a cylinder, the piston may actually strike the valve head and cause serious engine damage. technician b says if the camshaft is located in the engine block, then the engine is called an overhead valve engine, ohv engine, or an in-block camshaft. who is right? a. b only b. both a and b c. a only d. neither a nor b
Answers: 3
question
Computers and Technology, 22.06.2019 13:00
Why the bear has a slunky tail determine the meaning of the word slunk in the story
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
question
Computers and Technology, 22.06.2019 23:50
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
You know the right answer?
Submit Suppose a large group of people in a room were all born in the same year. Consider the follo...
Questions
question
Mathematics, 10.08.2021 21:30
question
Chemistry, 10.08.2021 21:30
Questions on the website: 13722367