A while back I interviewed with a networking company in the bay area and one of the things the interviewer asked me do was to devise an algorithm to walk the fully connected graph without visiting any edge twice if possible. Was a nice problem to discuss, he moved me along nicely in my thought process and we eventually reached a recursive solution. So the length of this walk is basically this formula.He told me they are using such an algorithm in some of their products and he picks the brain of potential hires to see if they find a more elegant way of doing so. Left a great impression, he really cared about thought processes and communicating! (I didn't end up taking the job for reasons unrelated to the company or the offer.)
dcanelhas|2 years ago
a_e_k|2 years ago
A fully connected graph with an even number of vertices will have odd degrees for all of them, and so can't have an Eulerian path.
phalf|2 years ago
hgsgm|2 years ago
bibanez|2 years ago
sorokod|2 years ago
vince3455|2 years ago
JadeNB|2 years ago