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, 24.06.2019 14:00
In simple terms, how would you define a protocol?
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
Emma is using an artificial intelligence system, which contains information on botany, to identify a type of plant from an image. what type of ai is emma using?
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
Anew author is in the process of negotiating a contract for a new romance novel. the publisher is offering three options. in the first option, the author is paid $5,000 upon delivery of the final manuscript and $20,000 when the novel is published. in the second option, the author is paid 12.5% of the net price of the novel for each copy of the novel sold. in the third option, the author is paid 10% of the net price for the first 4,000 copies sold, and 14% of the net price for the copies sold over 4,000. the author has some idea about the number of copies that will be sold and would like to have an estimate of the royal- ties generated under each option. write a program that prompts the author to enter the net price of each copy of the novel and the estimated number of copies that will be sold. the program then outputs he royalties under each option and the best option the author could choose. (use appropriate named constants to store the special values such as royalty rates and fixed royalties.
Answers: 1
question
Computers and Technology, 25.06.2019 01:00
Your computer will organize files into order. alphabetical chronological size no specific
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, 22.07.2019 15:30
question
Mathematics, 22.07.2019 15:30
question
History, 22.07.2019 15:30
question
Mathematics, 22.07.2019 15:30