Question on graph theory regarding roads connecting a pair of cities
I have the following question with me from "Problem Solving Strategies" by Arthur Engel, given as an example in page 44
"Every road in Sikinia is one-way. Every pair of cities is connected exactly by one direct road. Show that there exists a city which can be reached from every city directly or via at most one another city"
Isn't the statement that is required to be proved obvious from the given condition, if I connect any two cities, then obviously I can reach that city by the road right?
graph-theory
add a comment |
I have the following question with me from "Problem Solving Strategies" by Arthur Engel, given as an example in page 44
"Every road in Sikinia is one-way. Every pair of cities is connected exactly by one direct road. Show that there exists a city which can be reached from every city directly or via at most one another city"
Isn't the statement that is required to be proved obvious from the given condition, if I connect any two cities, then obviously I can reach that city by the road right?
graph-theory
3
No, because the roads are one-way.
– Lucas Henrique
Dec 11 '18 at 14:41
@LucasHenrique That's an answer, not a comment.
– bof
Dec 11 '18 at 16:54
add a comment |
I have the following question with me from "Problem Solving Strategies" by Arthur Engel, given as an example in page 44
"Every road in Sikinia is one-way. Every pair of cities is connected exactly by one direct road. Show that there exists a city which can be reached from every city directly or via at most one another city"
Isn't the statement that is required to be proved obvious from the given condition, if I connect any two cities, then obviously I can reach that city by the road right?
graph-theory
I have the following question with me from "Problem Solving Strategies" by Arthur Engel, given as an example in page 44
"Every road in Sikinia is one-way. Every pair of cities is connected exactly by one direct road. Show that there exists a city which can be reached from every city directly or via at most one another city"
Isn't the statement that is required to be proved obvious from the given condition, if I connect any two cities, then obviously I can reach that city by the road right?
graph-theory
graph-theory
edited Dec 11 '18 at 16:52
bof
50.4k457119
50.4k457119
asked Dec 11 '18 at 14:38
saisanjeev
943212
943212
3
No, because the roads are one-way.
– Lucas Henrique
Dec 11 '18 at 14:41
@LucasHenrique That's an answer, not a comment.
– bof
Dec 11 '18 at 16:54
add a comment |
3
No, because the roads are one-way.
– Lucas Henrique
Dec 11 '18 at 14:41
@LucasHenrique That's an answer, not a comment.
– bof
Dec 11 '18 at 16:54
3
3
No, because the roads are one-way.
– Lucas Henrique
Dec 11 '18 at 14:41
No, because the roads are one-way.
– Lucas Henrique
Dec 11 '18 at 14:41
@LucasHenrique That's an answer, not a comment.
– bof
Dec 11 '18 at 16:54
@LucasHenrique That's an answer, not a comment.
– bof
Dec 11 '18 at 16:54
add a comment |
3 Answers
3
active
oldest
votes
This is an extrema principal problem in the book I think:
Consider the city $v$ with maximum incoming roads. The claim is that that $v$ is the right one. Why? Consider a city $u$ that does not have a directed road to $v$. And for all the cities $a$ that has a road into $v$, the road between $u$ and $a$ is from $a$ to $u$, well that says $u$ is actually the city with the most number of road that goes in, contradicting the choice of $v$. Hence, there is a city $a$, that has a road into $v$, such that the road between $u$ and $a$ is from $u$ to $a$ and then as the road between $a$ and $v$ is from $a$ into $v$, we can get from $u$ to $v$ using at most two road.
add a comment |
Considering the way the question was put, the answer is “no”, since the roads are one-way. But I suppose you need help with the problem, so there’s my proof below.
I’ll proceed with a proof that is, basically, an inductive algorithm. In graph theory this is very common, so take a moment to understand what I did.
Take the $n=2$ vertices. Then it holds trivially. Suppose by induction that it holds for all $n leq n’$. For each vertex $v_i$, take the graph $G_i$ obtained by removing it and its edges. By hypothesis, $G_i$ has at least one vertex $v’_i$ with such property. If $v_i$ has only incoming edges, we’re done; it’s also done if $v_i to v_j to v’_i$ or $v_i to v’_i$. We’ll proceed to prove that there must be such $v_i$ (in an algorithm, you can just test case by case; here we prove it exists).
Suppose now that the cases above do not hold and fix some $i$. Then $v’_i to v_i$. Take all the vertices $w to v’_i$. Then $w to v_i$ by hypothesis. Take all the vertices $w’$ reaching $v’_i$ with necessarily and exactly 2 steps. But then $w’ to w_j to v_i$. Since every vertex (but $v_i$) of the initial graph is of one of the two types, we have that all the vertices of the graph reach $v_i$ in 2 or fewer steps, as we wanted. $blacksquare$
add a comment |
For a (directed) graph $G$ by $V(G)$ denote the set of its vertices and by $E(G)$ the set of its edges. For each vertex $v$ of $G$ let $$N’(v)={uin V(G):(u,v)in E(G)}$$ be the set of vertices $u$ of $G$ such that $v$ can be directly reached from $u$.
Then the natural graph theory formalization of the problem is that in any directed graph $G$ such that each two distinct vertices $v$, $u$ of $G$ are connected either by an edge $(v,u)$ or by and edge $(u,v)$
there exists a vertex $v$ such that $$V(G)={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}.$$
Prove this claim by induction with respect to the number $nge 1$ of vertices. For $n=1$ the claim is trivial. Assume that the claim is already proven for $n$. Let $G$ be a graph on $n+1$ vertices satisfying the claim condition. Pick any vertex $w$ of $G$. By the induction hypothesis, there exists a vertex $v$ of $Gsetminus{w}$ such that $V(G) setminus {w}subset V’$, where $$V’={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}.$$ If $win V’$ then we are done. Otherwise ${v}cup N’(v)subset N’(w)$, so
$$V(G) setminus {w}subset V’={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}subset N’(w)cup bigcup{N’(u):uin N’(v)}.$$
Then $$V(G)subset{w}cup N’(w)cupbigcup{N’(u):uin N’(v)}.$$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3035351%2fquestion-on-graph-theory-regarding-roads-connecting-a-pair-of-cities%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is an extrema principal problem in the book I think:
Consider the city $v$ with maximum incoming roads. The claim is that that $v$ is the right one. Why? Consider a city $u$ that does not have a directed road to $v$. And for all the cities $a$ that has a road into $v$, the road between $u$ and $a$ is from $a$ to $u$, well that says $u$ is actually the city with the most number of road that goes in, contradicting the choice of $v$. Hence, there is a city $a$, that has a road into $v$, such that the road between $u$ and $a$ is from $u$ to $a$ and then as the road between $a$ and $v$ is from $a$ into $v$, we can get from $u$ to $v$ using at most two road.
add a comment |
This is an extrema principal problem in the book I think:
Consider the city $v$ with maximum incoming roads. The claim is that that $v$ is the right one. Why? Consider a city $u$ that does not have a directed road to $v$. And for all the cities $a$ that has a road into $v$, the road between $u$ and $a$ is from $a$ to $u$, well that says $u$ is actually the city with the most number of road that goes in, contradicting the choice of $v$. Hence, there is a city $a$, that has a road into $v$, such that the road between $u$ and $a$ is from $u$ to $a$ and then as the road between $a$ and $v$ is from $a$ into $v$, we can get from $u$ to $v$ using at most two road.
add a comment |
This is an extrema principal problem in the book I think:
Consider the city $v$ with maximum incoming roads. The claim is that that $v$ is the right one. Why? Consider a city $u$ that does not have a directed road to $v$. And for all the cities $a$ that has a road into $v$, the road between $u$ and $a$ is from $a$ to $u$, well that says $u$ is actually the city with the most number of road that goes in, contradicting the choice of $v$. Hence, there is a city $a$, that has a road into $v$, such that the road between $u$ and $a$ is from $u$ to $a$ and then as the road between $a$ and $v$ is from $a$ into $v$, we can get from $u$ to $v$ using at most two road.
This is an extrema principal problem in the book I think:
Consider the city $v$ with maximum incoming roads. The claim is that that $v$ is the right one. Why? Consider a city $u$ that does not have a directed road to $v$. And for all the cities $a$ that has a road into $v$, the road between $u$ and $a$ is from $a$ to $u$, well that says $u$ is actually the city with the most number of road that goes in, contradicting the choice of $v$. Hence, there is a city $a$, that has a road into $v$, such that the road between $u$ and $a$ is from $u$ to $a$ and then as the road between $a$ and $v$ is from $a$ into $v$, we can get from $u$ to $v$ using at most two road.
edited Dec 12 '18 at 14:49
Alex Ravsky
39.3k32181
39.3k32181
answered Dec 11 '18 at 22:30
mathnoob
1,797422
1,797422
add a comment |
add a comment |
Considering the way the question was put, the answer is “no”, since the roads are one-way. But I suppose you need help with the problem, so there’s my proof below.
I’ll proceed with a proof that is, basically, an inductive algorithm. In graph theory this is very common, so take a moment to understand what I did.
Take the $n=2$ vertices. Then it holds trivially. Suppose by induction that it holds for all $n leq n’$. For each vertex $v_i$, take the graph $G_i$ obtained by removing it and its edges. By hypothesis, $G_i$ has at least one vertex $v’_i$ with such property. If $v_i$ has only incoming edges, we’re done; it’s also done if $v_i to v_j to v’_i$ or $v_i to v’_i$. We’ll proceed to prove that there must be such $v_i$ (in an algorithm, you can just test case by case; here we prove it exists).
Suppose now that the cases above do not hold and fix some $i$. Then $v’_i to v_i$. Take all the vertices $w to v’_i$. Then $w to v_i$ by hypothesis. Take all the vertices $w’$ reaching $v’_i$ with necessarily and exactly 2 steps. But then $w’ to w_j to v_i$. Since every vertex (but $v_i$) of the initial graph is of one of the two types, we have that all the vertices of the graph reach $v_i$ in 2 or fewer steps, as we wanted. $blacksquare$
add a comment |
Considering the way the question was put, the answer is “no”, since the roads are one-way. But I suppose you need help with the problem, so there’s my proof below.
I’ll proceed with a proof that is, basically, an inductive algorithm. In graph theory this is very common, so take a moment to understand what I did.
Take the $n=2$ vertices. Then it holds trivially. Suppose by induction that it holds for all $n leq n’$. For each vertex $v_i$, take the graph $G_i$ obtained by removing it and its edges. By hypothesis, $G_i$ has at least one vertex $v’_i$ with such property. If $v_i$ has only incoming edges, we’re done; it’s also done if $v_i to v_j to v’_i$ or $v_i to v’_i$. We’ll proceed to prove that there must be such $v_i$ (in an algorithm, you can just test case by case; here we prove it exists).
Suppose now that the cases above do not hold and fix some $i$. Then $v’_i to v_i$. Take all the vertices $w to v’_i$. Then $w to v_i$ by hypothesis. Take all the vertices $w’$ reaching $v’_i$ with necessarily and exactly 2 steps. But then $w’ to w_j to v_i$. Since every vertex (but $v_i$) of the initial graph is of one of the two types, we have that all the vertices of the graph reach $v_i$ in 2 or fewer steps, as we wanted. $blacksquare$
add a comment |
Considering the way the question was put, the answer is “no”, since the roads are one-way. But I suppose you need help with the problem, so there’s my proof below.
I’ll proceed with a proof that is, basically, an inductive algorithm. In graph theory this is very common, so take a moment to understand what I did.
Take the $n=2$ vertices. Then it holds trivially. Suppose by induction that it holds for all $n leq n’$. For each vertex $v_i$, take the graph $G_i$ obtained by removing it and its edges. By hypothesis, $G_i$ has at least one vertex $v’_i$ with such property. If $v_i$ has only incoming edges, we’re done; it’s also done if $v_i to v_j to v’_i$ or $v_i to v’_i$. We’ll proceed to prove that there must be such $v_i$ (in an algorithm, you can just test case by case; here we prove it exists).
Suppose now that the cases above do not hold and fix some $i$. Then $v’_i to v_i$. Take all the vertices $w to v’_i$. Then $w to v_i$ by hypothesis. Take all the vertices $w’$ reaching $v’_i$ with necessarily and exactly 2 steps. But then $w’ to w_j to v_i$. Since every vertex (but $v_i$) of the initial graph is of one of the two types, we have that all the vertices of the graph reach $v_i$ in 2 or fewer steps, as we wanted. $blacksquare$
Considering the way the question was put, the answer is “no”, since the roads are one-way. But I suppose you need help with the problem, so there’s my proof below.
I’ll proceed with a proof that is, basically, an inductive algorithm. In graph theory this is very common, so take a moment to understand what I did.
Take the $n=2$ vertices. Then it holds trivially. Suppose by induction that it holds for all $n leq n’$. For each vertex $v_i$, take the graph $G_i$ obtained by removing it and its edges. By hypothesis, $G_i$ has at least one vertex $v’_i$ with such property. If $v_i$ has only incoming edges, we’re done; it’s also done if $v_i to v_j to v’_i$ or $v_i to v’_i$. We’ll proceed to prove that there must be such $v_i$ (in an algorithm, you can just test case by case; here we prove it exists).
Suppose now that the cases above do not hold and fix some $i$. Then $v’_i to v_i$. Take all the vertices $w to v’_i$. Then $w to v_i$ by hypothesis. Take all the vertices $w’$ reaching $v’_i$ with necessarily and exactly 2 steps. But then $w’ to w_j to v_i$. Since every vertex (but $v_i$) of the initial graph is of one of the two types, we have that all the vertices of the graph reach $v_i$ in 2 or fewer steps, as we wanted. $blacksquare$
answered Dec 11 '18 at 20:26
Lucas Henrique
968314
968314
add a comment |
add a comment |
For a (directed) graph $G$ by $V(G)$ denote the set of its vertices and by $E(G)$ the set of its edges. For each vertex $v$ of $G$ let $$N’(v)={uin V(G):(u,v)in E(G)}$$ be the set of vertices $u$ of $G$ such that $v$ can be directly reached from $u$.
Then the natural graph theory formalization of the problem is that in any directed graph $G$ such that each two distinct vertices $v$, $u$ of $G$ are connected either by an edge $(v,u)$ or by and edge $(u,v)$
there exists a vertex $v$ such that $$V(G)={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}.$$
Prove this claim by induction with respect to the number $nge 1$ of vertices. For $n=1$ the claim is trivial. Assume that the claim is already proven for $n$. Let $G$ be a graph on $n+1$ vertices satisfying the claim condition. Pick any vertex $w$ of $G$. By the induction hypothesis, there exists a vertex $v$ of $Gsetminus{w}$ such that $V(G) setminus {w}subset V’$, where $$V’={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}.$$ If $win V’$ then we are done. Otherwise ${v}cup N’(v)subset N’(w)$, so
$$V(G) setminus {w}subset V’={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}subset N’(w)cup bigcup{N’(u):uin N’(v)}.$$
Then $$V(G)subset{w}cup N’(w)cupbigcup{N’(u):uin N’(v)}.$$
add a comment |
For a (directed) graph $G$ by $V(G)$ denote the set of its vertices and by $E(G)$ the set of its edges. For each vertex $v$ of $G$ let $$N’(v)={uin V(G):(u,v)in E(G)}$$ be the set of vertices $u$ of $G$ such that $v$ can be directly reached from $u$.
Then the natural graph theory formalization of the problem is that in any directed graph $G$ such that each two distinct vertices $v$, $u$ of $G$ are connected either by an edge $(v,u)$ or by and edge $(u,v)$
there exists a vertex $v$ such that $$V(G)={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}.$$
Prove this claim by induction with respect to the number $nge 1$ of vertices. For $n=1$ the claim is trivial. Assume that the claim is already proven for $n$. Let $G$ be a graph on $n+1$ vertices satisfying the claim condition. Pick any vertex $w$ of $G$. By the induction hypothesis, there exists a vertex $v$ of $Gsetminus{w}$ such that $V(G) setminus {w}subset V’$, where $$V’={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}.$$ If $win V’$ then we are done. Otherwise ${v}cup N’(v)subset N’(w)$, so
$$V(G) setminus {w}subset V’={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}subset N’(w)cup bigcup{N’(u):uin N’(v)}.$$
Then $$V(G)subset{w}cup N’(w)cupbigcup{N’(u):uin N’(v)}.$$
add a comment |
For a (directed) graph $G$ by $V(G)$ denote the set of its vertices and by $E(G)$ the set of its edges. For each vertex $v$ of $G$ let $$N’(v)={uin V(G):(u,v)in E(G)}$$ be the set of vertices $u$ of $G$ such that $v$ can be directly reached from $u$.
Then the natural graph theory formalization of the problem is that in any directed graph $G$ such that each two distinct vertices $v$, $u$ of $G$ are connected either by an edge $(v,u)$ or by and edge $(u,v)$
there exists a vertex $v$ such that $$V(G)={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}.$$
Prove this claim by induction with respect to the number $nge 1$ of vertices. For $n=1$ the claim is trivial. Assume that the claim is already proven for $n$. Let $G$ be a graph on $n+1$ vertices satisfying the claim condition. Pick any vertex $w$ of $G$. By the induction hypothesis, there exists a vertex $v$ of $Gsetminus{w}$ such that $V(G) setminus {w}subset V’$, where $$V’={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}.$$ If $win V’$ then we are done. Otherwise ${v}cup N’(v)subset N’(w)$, so
$$V(G) setminus {w}subset V’={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}subset N’(w)cup bigcup{N’(u):uin N’(v)}.$$
Then $$V(G)subset{w}cup N’(w)cupbigcup{N’(u):uin N’(v)}.$$
For a (directed) graph $G$ by $V(G)$ denote the set of its vertices and by $E(G)$ the set of its edges. For each vertex $v$ of $G$ let $$N’(v)={uin V(G):(u,v)in E(G)}$$ be the set of vertices $u$ of $G$ such that $v$ can be directly reached from $u$.
Then the natural graph theory formalization of the problem is that in any directed graph $G$ such that each two distinct vertices $v$, $u$ of $G$ are connected either by an edge $(v,u)$ or by and edge $(u,v)$
there exists a vertex $v$ such that $$V(G)={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}.$$
Prove this claim by induction with respect to the number $nge 1$ of vertices. For $n=1$ the claim is trivial. Assume that the claim is already proven for $n$. Let $G$ be a graph on $n+1$ vertices satisfying the claim condition. Pick any vertex $w$ of $G$. By the induction hypothesis, there exists a vertex $v$ of $Gsetminus{w}$ such that $V(G) setminus {w}subset V’$, where $$V’={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}.$$ If $win V’$ then we are done. Otherwise ${v}cup N’(v)subset N’(w)$, so
$$V(G) setminus {w}subset V’={v}cup{N’(v)}cupbigcup{N’(u):uin N’(v)}subset N’(w)cup bigcup{N’(u):uin N’(v)}.$$
Then $$V(G)subset{w}cup N’(w)cupbigcup{N’(u):uin N’(v)}.$$
answered Dec 11 '18 at 21:04
Alex Ravsky
39.3k32181
39.3k32181
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3035351%2fquestion-on-graph-theory-regarding-roads-connecting-a-pair-of-cities%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
No, because the roads are one-way.
– Lucas Henrique
Dec 11 '18 at 14:41
@LucasHenrique That's an answer, not a comment.
– bof
Dec 11 '18 at 16:54