Path: utzoo!utgpu!news-server.csri.toronto.edu!qucdn!spraggej Organization: Queen's University at Kingston Date: Saturday, 15 Dec 1990 16:21:06 EST From: John G. Spragge Message-ID: <90349.162107SPRAGGEJ@QUCDN.QueensU.CA> Newsgroups: comp.lang.pascal Subject: Re: Penny - Dime Problem References: <1298@lehi3b15.csee.Lehigh.EDU> In article <1298@lehi3b15.csee.Lehigh.EDU>, kdunn@lehi3b15.csee.Lehigh.EDU (Kevin Dunn) says: > The problem is called the penny-dime problem. You start with a ring with >13 spaces on it, and 6 pennies and 6 dimes. The arrangement is > PDPDPDPDPDPD. The object is to get PPPPPPDDDDDD. > Only 4 moves are allowed: A left shift into the space, a right shift into >the space, or a left or write jump over 1 into the space. > Kdunn@lehi3b15.Csee.lehigh.edu This looks to me like a problem that was invented to give students some insight into the problems of sorting. I'd suggest that you look at a book on sorts, and just offhand, you might want to pay some special attention to bubble sorts.