Problem 906

A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions. This forum is NOT meant to discuss solution methods or giving hints how a problem can be solved.
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.

This forum is NOT meant to discuss solution methods for a problem.

In particular don't post any code fragments or results.

Don't start begging others to give partial answers to problems

Don't ask for hints how to solve a problem

Don't start a new topic for a problem if there already exists one


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
Post Reply
raiden11
Posts: 5
Joined: Sat Aug 03, 2024 7:07 pm

Problem 906

Post by raiden11 »

Hello everyone,

Can you tell if my understanding of a successful agreement is correct?

Given that each of the friends have an order of preference which is a random permutation of [1, 2, 3, ..., n], which one of these is the logic for agreeing on an option?
- To agree on k, k must be the first (0th index) preference of at least 2 friends
- To agree on k, k must be the ith index preference of at least 2 friends

First logic one does not work for both P(3) and P(10) while the second does not work for P(10). It seems both logics are wrong, but I can't think of anything else from the problem's language!
brob26
Administrator
Posts: 804
Joined: Thu Nov 22, 2018 3:48 am

Re: Problem 906

Post by brob26 »

We have made a slight adjustment to wording to hopefully clarify the clause. It now reads:

"They choose option $i$ if for every alternative option $j$ at least two of the three friends prefer $i$ over $j$."

In other words, to choose $i$, it is needed that for every other option $j$, $i$ appears before $j$ in at least two of the three orders of preference.

Does that help?
raiden11
Posts: 5
Joined: Sat Aug 03, 2024 7:07 pm

Re: Problem 906

Post by raiden11 »

Understood it now. Thanks a lot!
This statement was helpful: In other words, to choose $i$, it is needed that for every other option $j$, $i$ appears before $j$ in at least two of the three orders of preference.
Post Reply