Help with this problem

Let's talk about algorithms!

Moderator: Board moderators

Post Reply
paulmcvn
New poster
Posts: 34
Joined: Sat Nov 13, 2004 12:15 pm

Help with this problem

Post by paulmcvn »

Alessandro
New poster
Posts: 27
Joined: Mon Jun 14, 2004 10:33 pm
Location: Latina, Italy

Post by Alessandro »

I solved Clocks (IOI 1994) and it's easily solvable with a breadth-first search (imagine every configuration is a node and every move is an edge). Otherwise, because there are only 4^9 possible configurations, do exaustive search.

Ciao
Ale
Alessandro Piva, Member of the Italian Team at the International Olimpiad in Informatics 2004
Email: alex.ander@infinito.it
jakabjr
Learning poster
Posts: 56
Joined: Wed Mar 23, 2005 9:21 pm
Location: Timisoara, Romania

Post by jakabjr »

I've solved this with branch and bound, and did pretty good time
Understanding a problem in a natural way will lead to a natural solution
Post Reply

Return to “Algorithms”