Find cycle of shortest length in a directed graph with positive weights
Asked 2010-10-12T04:10:49.020
24
I was asked this question in an interview, but I couldn't come up with any decent solution. So, I told them the naive approach of finding all the cycles then picking the cycle with the least length.
I'm curious to know what is an efficient solution to this problem.