Painter's algorithm: Difference between revisions

Content deleted Content added
Citation bot (talk | contribs)
Altered title. | Use this bot. Report bugs. | Suggested by Headbomb | Linked from Wikipedia:WikiProject_Academic_Journals/Journals_cited_by_Wikipedia/Sandbox2 | #UCB_webform_linked 354/515
Sascha (talk | contribs)
m Time complexity: Stylistic simplification
Line 20:
 
=== Time complexity ===
The painter's algorithm's time-complexity is heavily dependentdepends on the [[sorting algorithm]] used to order the polygons. Assuming the use of the mostan optimal sorting algorithm, painter's algorithm has a worst-case complexity of ''[[Big O notation|O]]''(''n'' log ''n + m*n''), where ''n'' is the number of polygons and ''m'' is the number of pixels to be filled.
 
=== Space complexity ===