STAR-SHAPED POLYGONS | |
Section: Maths Workshop | |
1.-THE DEFINITION OF A STAR-SHAPED POLYGON | ||
The star-shaped polygon (M, N) is a geometric shape which can be drawn by carrying out the following algorithm:
STEP 2: Select any one of the vertices and label it 'visited'. STEP 3: Draw a segment from the last vertex you 'visited' to the next one by jumping M vertices in an anti-clockwise direction. Label the new vertex you reach as 'visited'. STEP 4: Repeat STEP 3 until the segment you draw joins up with a vertex you have already visited.
To start with, you can see different star-shaped polygons in the following window. |
||
1.-
Try putting in
different combinations of the parameters M and N such as M=5
& N=7, M=3 & N=17, M=9 & N=17, etc.
2.- Give N a fixed value (not very big) and click on M and hold. You should see something like a fast-moving film which, if you look at carefully, is actually the same sequence repeated over and over again, even though the value of M keeps changing.
|
||
3.- Write an algorithm in order to fry an egg (try it), or to put the students in a class into alphabetical order (this algorithm is slightly more difficult to explain). In both cases note that precision, the stopping rule and accuracy all play an important role. It wouldn't be possible to describe how to write a poem using an algorithm, or would it? |
2. CONSTRUCTING A STAR-SHAPED POLYGON | ||
The following window puts the algorithm described above into practice. |
||
Will it ever stop? You will probably be able to answer this question yourself. As the number of vertices on the parent polygon is finite then we will reach the point where we draw a segment which joins up with a vertex we have already visited. |
||
This way of reasoning is common in maths and is sometimes referred to as the 'Pigeon-hole Principle'. This principle states that ' if there are more pigeons than holes in a dovecote then there must be at least two pigeons in one of the pigeon holes'. Try to use this principle to explain why if 366 people attend the same meeting at least two of them will share the same birthday. 2. - As far as accuracy is concerned: At the end of the process will the final result always be a star-shaped polygon? This question is more difficult to answer. However, to begin with you should see the need to ask yourself 'is it possible for the two numbers (N, M) to produce something other than a star-shaped polygon?' Let's look at a few problems that may arise:
There is a clear connection between the answers to the first two problems. The anomaly in the first example is fairly obvious. The pairs of numbers (2,8) and (3,15) illustrate this case where M, the number of vertices we jump, divided into N, the number of sides of the polygon gives us the number of 'visits' we make (N/M) before returning to the vertex we started with. The result is a regular (non star-shaped) polygon with this number of sides (N/M). We cannot form a star as by just going round the polygon once we can see that the lines do not cross each other at any point. Therefore, we must make sure that in our algorithm M cannot be divided exactly into N.
This also means that the first vertex we 'visit' is also the first one to be 'visited' twice as the others are all 'visited' after the first one. |
Agustín Muñoz Núñez | ||
Spanish Ministry of Education. Year 2001 | ||
Except where otherwise noted, this work is licensed under a Creative Common License