@sharad.. sorry bt i dint get how to use bellman ford or topological sort here... can u plz explain...
On 8 June 2010 05:53, sharad kumar <[email protected]> wrote: > for placing police man we can use bellman ford bfs.or even make use of > topological sort. > > > On Mon, Jun 7, 2010 at 9:59 PM, divya <[email protected]> wrote: > >> consider a tree. policemen is to be placed such that for each edge of >> tree, there is a policeman on atleast one side of each edge. tell the >> min no. of policemen and their locatn in time O(n) >> >> -- >> 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]<algogeeks%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> >> > > > -- > yezhu malai vaasa venkataramana Govinda Govinda > > -- > 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]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- 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.
