You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to VANI_GATE_CS_2010
Answer is C. theta(n)
TEJAS JOSHI
unread,
Feb 9, 2010, 3:19:13 AM2/9/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to VANI_GATE_CS_2010
can u explain the procedure........
Varun Shinde
unread,
Feb 9, 2010, 3:53:39 AM2/9/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to VANI_GATE_CS_2010
In above equation T(n)=T(1) for n>=5 so according to definition of Big Oh notation T(n)=O(1) for all n>=n0 where n0=5
harshjpathak
unread,
Feb 10, 2010, 3:14:58 AM2/10/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vani_gat...@googlegroups.com
here you will need to use the recursion tree method. We divide n into two subproblems one of size n/5 and other of size 3n/4. Again each of n/5 is divided into 3/10 and 9n/16. Then we just do an induction on the height of the tree. At the max height cost of each subproblem will be T(1). You will need mathematics for this. Approach is given in cormen book in chapter of recurrences. It will be difficult to explain it here as it is not possible to represent diagrammatically.
harshjpathak
unread,
Feb 10, 2010, 6:41:39 AM2/10/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vani_gat...@googlegroups.com
From did u get the question?. I think either it should be n/4 or 3n/5. We are dividing the problem into subproblems so their addition must be n. Please check and let me know if im wrong