For the diameter, we invoke two instantiations of convex hull W-stream algorithms simultaneously. One reports the extreme point starting at pℓ (leftmost) and the other starts at pr (rightmost). They both output the points in the clockwise order, i.e…