Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making sure a shape-sorter works

Status
Not open for further replies.

lionelhill

Technical User
Joined
Dec 14, 2002
Messages
1,520
Location
GB
I hardly dare put this one in, because it's so simple, but it's sort of cute, too:

Everyone knows a small child's shape-sorter. It's a box with holes in the side of different shapes, circles, squares, crosses, pentagons, banana-shapes, whatever. It comes with a set of shapes that the baby can post through each hole.

Obviously it's no fun if the shapes can be squeezed through the wrong holes. The square mustn't be so small that it can go through the circle's hole, nor should it be so big that the circle can go through its hole.

How can we choose sizes of arbitrary shapes so that they can never pass through the hole of any other shape?
 
I'm guessing it has something to do with the shortest distance through the centre of each shape?



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top