Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementation of Chazelle's triangulation algorithm

There is an algorithm for triangulating a polygon in linear time due to Chazelle (1991), but, AFAIK, there aren't any standard implementations of his algorithm in general mathematical software libraries.

Does anyone know of such an implementation?

like image 870
JeremyKun Avatar asked Oct 19 '11 23:10

JeremyKun


2 Answers

See this answer to the question Powerful algorithms too complex to implement:

According to Skiena (author of The Algorithm Design Manual), "[the] algorithm is quite hopeless to implement."

I've looked for an implementation before, but couldn't find one. I think it's safe to assume no-one has implemented it due to its complexity, and I think it also has quite a large constant factor so wouldn't do well against O(n lg n) algorithms that have smaller constant factors.

like image 185
Jason Davies Avatar answered Oct 30 '22 09:10

Jason Davies


This is claimed to be an Implementation of Chazelle's Algorithm for Triangulating a Simple Polygon in Linear Time (mainly C++ and C).

like image 25
Alessandro Jacopson Avatar answered Oct 30 '22 07:10

Alessandro Jacopson