I walked, although the problems in graph theory published by Prof, Ericksson from my alma-mater , came across this rather unique question about pigeons and their innate tendency to form hierarchical orders. The question is:
When groups of pigeons gather, they instinctively place an order. For any pair of pigeons, one pigeon always pecks another; driving is far from food or potential mates. The same pair of pigeons always selects the same hierarchy order, even after several years of separation, regardless of what other pigeons are around. Surprisingly, the general beak of the order can contain cycles - for example, dove A pecks dove B, which pecks dove C, which pecks dove A.
Prove that any finite set of pigeons can be arranged in a row from left to right so that each pigeon pecks a pigeon right from the left.
Since this is a question of graph theory, the first things that came to my mind were simply asking for the topological type of relationship graphs (relationships are the hierarchy order). What made it a little more complicated is that there can be a cyclic relationship between pigeons. If we have a cyclic dependence as follows:
A-> B-> C-> A
where A pecks on B, B pecks on C and C returns and clings to A
If we present it in accordance with the proposed problem, we have the following: CBA
But the above row ordering does not affect the hierarchy between C and A.
I had a different idea of ββsolving it using mathematical induction, where the base case for two pigeons arranged according to their hierarchy order, assuming that the order of the beak order is valid for n pigeons, and then proves that this is true for n + 1 pigeons.
I'm not sure I'm wrong here. Some information on how I should analyze this problem would be helpful.
thanks
sorting algorithm graph
sc_ray
source share