lexiographically smallest TOPOSORT

Правка en1, от iamdumb, 2015-07-04 15:36:35

I was doing this question from spoj.And as far as I have understood it,it requires to find lexiographically smallest toposorting of a DAG.I have studied toposorting from here but implementing it leads me to different toposorting.Can anybody explain me is there any way to find lexiographical toposort ?

Теги toposort, graphs

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский iamdumb 2015-07-04 15:36:35 423 Initial revision (published)