Proving the Existence/Non-Existence of a Grid Tour

  • Thread starter AUCTA
  • Start date
  • Tags
    Grid
In summary, the conversation discusses the concept of a tour on a grid with dimensions p and q, where p and q are either both even or both odd. It is shown that if either p or q is even, then a tour exists. However, if both p and q are odd, a tour does not exist. This is proven by coloring the grid like a chessboard and considering the parity of the number of steps taken on a tour.
  • #1
AUCTA
10
0

Homework Statement



Consider a grid with height p >= 2 and width q >= 2, so there are pq squares in the grid. A valid walk on the grid is a walk that starts on one square and subsequently moves to adjacent squares (you cannot move diagonally). Define a tour to be a valid walk on the grid that touches each and every square exactly once and begins and ends on the same square. First show that if either p or q is even then there exists a tour. Prove that if p and q are odd, there does not exist a tour.

Homework Equations



No idea.

The Attempt at a Solution



No induction. I have no idea how to go about this proof. I would love some guidance on how to get started.
 
Physics news on Phys.org
  • #2
Hello AUCTA,

I cannot help you guarantee a tour if p or q are even but I can definitely help you show that a tour is non existent for both p and q being odd.

Firstly, color your grid like a chess board i.e. alternative black and white. Once you have done that, think about how many steps must you take on a tour?
 
  • #3
Since a tour is all squares, then it is pq.
 
  • #4
Yes that is correct. Now what happens to the color of the square as you take each step?
 
  • #5
The colors change. From black to white.
 
  • #6
Correct again, So how is the color of the square you are on (after the taking the first step) depend on the number of steps you take?
 
  • #7
0, 2, 4, 6, ... (all the even number of steps) have the same color and all the odds have the same color.
 
  • #8
Okay, Think about it like this: From the first square (assuming black), what would be the color of the square you are on after
a)even number of steps and
b)Odd number of steps

Once you figure that out, what should be the parity of the number of steps you must take to complete a tour?
 
  • #9
How do I calculate parity?
 
  • #10
Parity (in this case) means whether the number is even or odd.
 
  • #11
Well the parity must be even for a tour to be able to be completed.
 
  • #12
AUCTA said:
Well the parity must be even for a tour to be able to be completed.

Bingo. You have the desired result!
What does this tell about p and q?
 
  • #13
Then they must be both even. But my question is, how can I proof that the parity must be even. I just said it because I did a few examples and it made sense. But how do you actually know it must be even?
 
  • #14
AUCTA said:
Then they must be both even. But my question is, how can I proof that the parity must be even. I just said it because I did a few examples and it made sense. But how do you actually know it must be even?

It is sufficient if one is even.

As for the parity; If you start on a black square, you must end on a black square right? So what will be the parity of the number of steps?

(go back to post#8, first question for a hint)
 
  • #15
Ah it makes sense now. Thanks a lot Sunil, you have helped me greatly.
 
  • #16
You are welcome.

Did you get any lead on proving the other part of the question?
(draw some grids and see if there can be a general method to tour )
 

Related to Proving the Existence/Non-Existence of a Grid Tour

1. What is a grid tour?

A grid tour is a path that visits every point on a grid in a specific order, without repeating any point. It is also known as a knight's tour, as it follows the movements of a knight on a chessboard.

2. How do you prove the existence of a grid tour?

To prove the existence of a grid tour, you must show that there is a specific sequence of movements that will cover all points on the grid without repeating any. This can be done through mathematical proofs or by physically demonstrating the tour.

3. Can a grid tour exist on any size grid?

Yes, a grid tour can exist on any size grid as long as there are enough points to form a complete tour without repeating any. However, the complexity of finding a solution may increase with larger grids.

4. Are there any known patterns or algorithms for finding a grid tour?

Yes, there are several known patterns and algorithms for finding a grid tour, including the Warnsdorff's rule and the Knight's tour graph. These methods use specific rules and strategies to determine the sequence of movements for the tour.

5. Is it possible to prove the non-existence of a grid tour?

Yes, it is possible to prove the non-existence of a grid tour by showing that there is no sequence of movements that can cover all points on the grid without repeating any. This can also be done through mathematical proofs or by demonstrating that all potential solutions fail to meet the criteria.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
1K
  • Math Proof Training and Practice
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
  • Programming and Computer Science
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Programming and Computer Science
Replies
17
Views
981
  • Math Proof Training and Practice
Replies
10
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
2K
Back
Top