@utkarsh i was just about to put Huffman algo ..yes it is optimized
answer to solve the problem

@all basicaly we have to minimize the cost of intermediate path ,final
o/p will  obvious be the same

Try Huffman algo 1st read what it is..dan u will able to figure out
soln of this problem


Hope i am clear , if missing something , correct me


Thanks & Reagrds
Shashank Mani
CSE,BIT Mesra

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to