Question: this is a divide-and-conquer algorithm to find the subset of points that are Pareto-optimal. if n==1: return(x1, y1) m=n/2 L={(x1,y1),...,(xm,ym)} U={(xm+1,ym+1),...,(xn,yn)}PL=ParetoOptimal(L) PU=ParetoOptimal(U) create empty listPO
this is a divide-and-conquer algorithm to find the subset of points that are Pareto-optimal.
if n==1:
return(x1, y1)
m=n/2
L={(x1,y1),...,(xm,ym)}
U={(xm+1,ym+1),...,(xn,yn)}PL=ParetoOptimal(L)
PU=ParetoOptimal(U)
create empty listPO
ymax = 0
for(xU,yU) inPU:
ymax =maximum(yU,ymax)for(xL,yL)inPL:
ifyLymax:
delete(xL, yL) fromP L
returnPLPU
It would be great if you could give a recurrence for the time taken by the above algorithm ,and solve it up to order.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
