what is rmq

On Fri, Mar 4, 2011 at 7:21 AM, Vipin Agrawal <vipin.iitr....@gmail.com>wrote:

> There are many way to find out least common ancestor.
> Best Solution is RMQ.
>
> On Mar 4, 3:59 pm, Sudhir mishra <sudhir08.mis...@gmail.com> wrote:
> > binary tree, nodes, each node has an ID
> >
> >  root node of the tree
> >
> > structure node{
> >
> >             int id;
> >
> >             node  *left;
> >
> > node  *right;}
> >
> > - problem: given node id 1, and node id 2, determine the
> > lowest common ancestor of these 2 nodes
> >
> >             - input:
> > id1, id2, root
> >
> >             - out: node
> > id of this ancestor node
> >
> > --
> >
> ____________________________________________________________________________
> > *
> > *
> > Thanks & Regards...*
> > SUDHIR MISHRA <sudhir08.mis...@gmail.com>*
> > *IT 3rd YEAR*
> > *Motilal Nehru National institute Of Technology-ALLAHABAD.
> >
> > *
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>


-- 
____________________________________________________________________________
*
*
Thanks & Regards...*
SUDHIR MISHRA <sudhir08.mis...@gmail.com>*
*IT 3rd YEAR*
*Motilal Nehru National institute Of Technology-ALLAHABAD.

*

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

Reply via email to