• We should now be fully online following an overnight outage. Apologies for any inconvenience, we do not expect there to be any further issues.

Extremely Tough Brain Teaser

Page 7 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

LikeLinus

Lifer
Jul 25, 2001
11,518
670
126

chuckywang

Lifer
Jan 12, 2004
20,133
1
0
Alright, it's time to end this thread once and for all.

The problem is to basically find an Eulerian path in this graph (on the bottom)..

A necessary condition for an Eulerian path to exist is that all vertices must have an even degree, or all vertices but 2 vertices must have an even degree. Note vertex 6 has a degree of 9, vertex 1 has a degree of 5, vertex 2 has a degree of 5, and vertex 4 has a degree of 5.

Therefore, four vertices have an odd degree, so the condition is violated, and no Eulerian path exists. Therefore, there is no path that goes through all the "gates".