<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Fast Convex Hull Algorithm</title>
	<atom:link href="http://www.advancedmcode.org/fast-convex-hull-algorithm.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.advancedmcode.org/fast-convex-hull-algorithm.html</link>
	<description>Open Blog with: Engineering Solutions, Algorithms, Advanced Matlab Source Code and Science related contents</description>
	<lastBuildDate>Fri, 12 Mar 2010 02:19:56 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Luigi Giaccari</title>
		<link>http://www.advancedmcode.org/fast-convex-hull-algorithm.html/comment-page-1#comment-716</link>
		<dc:creator>Luigi Giaccari</dc:creator>
		<pubDate>Tue, 15 Dec 2009 19:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.advancedmcode.org/?p=559#comment-716</guid>
		<description>Oh you seem pretty expert! :-)

can you please send me the paper, I would like to give it a look!

giaccariluigi@msn.com

Thanks</description>
		<content:encoded><![CDATA[<p>Oh you seem pretty expert! <img src='http://www.advancedmcode.org/home/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>can you please send me the paper, I would like to give it a look!</p>
<p><a href="mailto:giaccariluigi@msn.com">giaccariluigi@msn.com</a></p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JackM</title>
		<link>http://www.advancedmcode.org/fast-convex-hull-algorithm.html/comment-page-1#comment-713</link>
		<dc:creator>JackM</dc:creator>
		<pubDate>Tue, 15 Dec 2009 18:51:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.advancedmcode.org/?p=559#comment-713</guid>
		<description>Yes, this is nothing new but just a variation of Graham&#039;s scan (FYI, you don&#039;t need to calculate angles in Graham&#039;s scan). If you are looking for fast convex hull methods, there is for example a paper &quot;Optimal Output-Sensitive Convex Hull Algorithms in Two and Three Dimensions&quot; by Timothy Chan, which explains a method which run in O(n*log(h)) time.</description>
		<content:encoded><![CDATA[<p>Yes, this is nothing new but just a variation of Graham&#8217;s scan (FYI, you don&#8217;t need to calculate angles in Graham&#8217;s scan). If you are looking for fast convex hull methods, there is for example a paper &#8220;Optimal Output-Sensitive Convex Hull Algorithms in Two and Three Dimensions&#8221; by Timothy Chan, which explains a method which run in O(n*log(h)) time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luigi Giaccari</title>
		<link>http://www.advancedmcode.org/fast-convex-hull-algorithm.html/comment-page-1#comment-224</link>
		<dc:creator>Luigi Giaccari</dc:creator>
		<pubDate>Sat, 26 Sep 2009 11:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.advancedmcode.org/?p=559#comment-224</guid>
		<description>My routine is faster if all points are already part of the convex hull.
Run the following test:
&lt;pre lang=&quot;matlab&quot; escaped=&quot;true&quot;&gt;N=1000000;
teta=linspace(0,2*pi,N);
x=cos(teta);
y=sin(teta);

tic
chull1=ConvHull2D(x,y);
fprintf(&#039;ConvHull2D took : %4.4f s\n&#039;, toc);

tic
chull2=convhull(x,y);
fprintf(&#039;Matlab Routine: %4.4f s\n&#039;, toc);&lt;/pre&gt;
it leads to:
&lt;pre&gt;ConvHull2D took : 0.6692 s&lt;/pre&gt;
&lt;pre&gt;Matlab Routine: 5.5856 s&lt;/pre&gt;
The built-in uses the quick hull algorithm this point cofiguration is patological.

My routine suffers logspace data where generally the convhull is formed by only a few points. On this data the filtering step erases no points. Anywa it should be  faster in this case too, since ConvHull2D doesn&#039;t call the unique fucntion which is the main bottlenech for the Matlab convhull.

We also have to consider that Convhull2D, apart from the sort function, is totally m-coded, no precompiled files. Convhull instead is a MEX routine.

If you need more infos just ask.

Luigi</description>
		<content:encoded><![CDATA[<p>My routine is faster if all points are already part of the convex hull.<br />
Run the following test:</p>

<div class="wp_syntax"><div class="code"><pre class="matlab" style="font-family:monospace;">N=<span style="color: #33f;">1000000</span>;
teta=<span style="color: #0000FF;">linspace</span><span style="color: #080;">&#40;</span><span style="color: #33f;">0</span>,<span style="color: #33f;">2</span>*<span style="color: #0000FF;">pi</span>,N<span style="color: #080;">&#41;</span>;
x=<span style="color: #0000FF;">cos</span><span style="color: #080;">&#40;</span>teta<span style="color: #080;">&#41;</span>;
y=<span style="color: #0000FF;">sin</span><span style="color: #080;">&#40;</span>teta<span style="color: #080;">&#41;</span>;
&nbsp;
<span style="color: #0000FF;">tic</span>
chull1=ConvHull2D<span style="color: #080;">&#40;</span>x,y<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">fprintf</span><span style="color: #080;">&#40;</span><span style="color:#A020F0;">'ConvHull2D took : %4.4f s\n'</span>, <span style="color: #0000FF;">toc</span><span style="color: #080;">&#41;</span>;
&nbsp;
<span style="color: #0000FF;">tic</span>
chull2=<span style="color: #0000FF;">convhull</span><span style="color: #080;">&#40;</span>x,y<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">fprintf</span><span style="color: #080;">&#40;</span><span style="color:#A020F0;">'Matlab Routine: %4.4f s\n'</span>, <span style="color: #0000FF;">toc</span><span style="color: #080;">&#41;</span>;</pre></div></div>

<p>it leads to:</p>
<pre>ConvHull2D took : 0.6692 s</pre>
<pre>Matlab Routine: 5.5856 s</pre>
<p>The built-in uses the quick hull algorithm this point cofiguration is patological.</p>
<p>My routine suffers logspace data where generally the convhull is formed by only a few points. On this data the filtering step erases no points. Anywa it should be  faster in this case too, since ConvHull2D doesn&#8217;t call the unique fucntion which is the main bottlenech for the Matlab convhull.</p>
<p>We also have to consider that Convhull2D, apart from the sort function, is totally m-coded, no precompiled files. Convhull instead is a MEX routine.</p>
<p>If you need more infos just ask.</p>
<p>Luigi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taywin</title>
		<link>http://www.advancedmcode.org/fast-convex-hull-algorithm.html/comment-page-1#comment-221</link>
		<dc:creator>Taywin</dc:creator>
		<pubDate>Fri, 25 Sep 2009 19:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.advancedmcode.org/?p=559#comment-221</guid>
		<description>I&#039;m trying again... Last time it submitted an empty text...

Have you every tried to compare for the case when all points are vertices of convex hull as well? I mean all 1 million points are actually vertices of a convex hull. Because your algorithm speed seems to rely heavily filtering. If there is a case that your filtering does not benefit the speed at all, I just want to know whether the built-in function is still slower than yours or how much faster it is compared to yours. Of course, this is an extreme case, but I just want to see how it goes. Thank you.</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying again&#8230; Last time it submitted an empty text&#8230;</p>
<p>Have you every tried to compare for the case when all points are vertices of convex hull as well? I mean all 1 million points are actually vertices of a convex hull. Because your algorithm speed seems to rely heavily filtering. If there is a case that your filtering does not benefit the speed at all, I just want to know whether the built-in function is still slower than yours or how much faster it is compared to yours. Of course, this is an extreme case, but I just want to see how it goes. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luigi Giaccari</title>
		<link>http://www.advancedmcode.org/fast-convex-hull-algorithm.html/comment-page-1#comment-151</link>
		<dc:creator>Luigi Giaccari</dc:creator>
		<pubDate>Fri, 18 Sep 2009 21:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.advancedmcode.org/?p=559#comment-151</guid>
		<description>Umh,

You should really study :-)
In Graham scan there is a sorting operation based on the angle others points forms with the first one. Here sort is performed on y (or x ) coordinate, plus there is a filtering preprocessor step.
I actually thing this algorithm is not something new since it seems just too easy. Anyway it works, it is very fast.

Please report comments on http://www.advancedmcode.org/
I don&#039;t usually go on Youtube.

Last question, no I don&#039;t have no code about incremental convex hull, this one was coded for fun, I don&#039;t work in the convex hull field.....Sorry

For any more question just ask,

Bye

Luigi</description>
		<content:encoded><![CDATA[<p>Umh,</p>
<p>You should really study <img src='http://www.advancedmcode.org/home/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
In Graham scan there is a sorting operation based on the angle others points forms with the first one. Here sort is performed on y (or x ) coordinate, plus there is a filtering preprocessor step.<br />
I actually thing this algorithm is not something new since it seems just too easy. Anyway it works, it is very fast.</p>
<p>Please report comments on <a href="http://www.advancedmcode.org/" rel="nofollow">http://www.advancedmcode.org/</a><br />
I don&#8217;t usually go on Youtube.</p>
<p>Last question, no I don&#8217;t have no code about incremental convex hull, this one was coded for fun, I don&#8217;t work in the convex hull field&#8230;..Sorry</p>
<p>For any more question just ask,</p>
<p>Bye</p>
<p>Luigi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r0l0kcs</title>
		<link>http://www.advancedmcode.org/fast-convex-hull-algorithm.html/comment-page-1#comment-150</link>
		<dc:creator>r0l0kcs</dc:creator>
		<pubDate>Fri, 18 Sep 2009 21:28:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.advancedmcode.org/?p=559#comment-150</guid>
		<description>This looks like Graham Scan to me.
May I ask: Do you have any sources on incremental convex hull algorithms &quot;for dummies&quot; like me? That would be great. :o Or is Graham Scan﻿ the same as incremental convex hull?</description>
		<content:encoded><![CDATA[<p>This looks like Graham Scan to me.<br />
May I ask: Do you have any sources on incremental convex hull algorithms &#8220;for dummies&#8221; like me? That would be great. <img src='http://www.advancedmcode.org/home/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' />  Or is Graham Scan﻿ the same as incremental convex hull?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
