Link to home
Start Free TrialLog in
Avatar of Simon Leung
Simon Leung

asked on

Data structure (stack)

Given 5 points foming a regular pentagon together with another point at the center of the pentagon (altogeher 6 points), if you run Graham Scan to find the convex hull of these 6 points, you will do 11 pushes and 7 pops.


I do not get why there is 11 pushes and 7 pops in this case. Can someone explaine it? Thank you.

ASKER CERTIFIED SOLUTION
Avatar of Am P
Am P
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial