﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-xianglj-文章分类-计算几何</title><link>http://www.cnitblog.com/xianglj/category/600.html</link><description /><language>zh-cn</language><lastBuildDate>Mon, 10 Oct 2011 16:04:23 GMT</lastBuildDate><pubDate>Mon, 10 Oct 2011 16:04:23 GMT</pubDate><ttl>60</ttl><item><title>Computational Geometry code</title><link>http://www.cnitblog.com/xianglj/articles/2123.html</link><dc:creator>模式识别技术</dc:creator><author>模式识别技术</author><pubDate>Tue, 16 Aug 2005 01:43:00 GMT</pubDate><guid>http://www.cnitblog.com/xianglj/articles/2123.html</guid><wfw:comment>http://www.cnitblog.com/xianglj/comments/2123.html</wfw:comment><comments>http://www.cnitblog.com/xianglj/articles/2123.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/xianglj/comments/commentRss/2123.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/xianglj/services/trackbacks/2123.html</trackback:ping><description><![CDATA[<A href="http://compgeom.cs.uiuc.edu/~jeffe/compgeom/code.html">http://compgeom.cs.uiuc.edu/~jeffe/compgeom/code.html</A>&nbsp; 该网页包含大量计算几何代码的链接。<BR><img src ="http://www.cnitblog.com/xianglj/aggbug/2123.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/xianglj/" target="_blank">模式识别技术</a> 2005-08-16 09:43 <a href="http://www.cnitblog.com/xianglj/articles/2123.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>KD树伪码</title><link>http://www.cnitblog.com/xianglj/articles/2103.html</link><dc:creator>模式识别技术</dc:creator><author>模式识别技术</author><pubDate>Mon, 15 Aug 2005 07:34:00 GMT</pubDate><guid>http://www.cnitblog.com/xianglj/articles/2103.html</guid><wfw:comment>http://www.cnitblog.com/xianglj/comments/2103.html</wfw:comment><comments>http://www.cnitblog.com/xianglj/articles/2103.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnitblog.com/xianglj/comments/commentRss/2103.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/xianglj/services/trackbacks/2103.html</trackback:ping><description><![CDATA[<P><B>Algorithm BUILDKDTREE(<I>P</I>,<I>depth</I>)</B><BR>Input: A set of points P and the current depth <I>depth</I>.&nbsp;<BR>Output: The root of a kd-tree storing P.<BR>1.&nbsp;&nbsp;&nbsp; <B>if</B> P contains only one point <B>then</B><BR>2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B> return</B> a leaf storing this point<BR>3.&nbsp;&nbsp;&nbsp; <B>else if</B> depth is even <B>then<BR></B>4.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Split P into two subsets with a vertical line l through the median x-coordinate of the points in P. Let P1 be the set of points to the left and P2 be the set of points to the right. Points exactly on the line belong to P1.<BR>5.&nbsp;&nbsp;&nbsp; <B>else</B><BR>6.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Split P into two subsets with a horizontal line l through the median y-coordinate of the points in P. Let P1 be the set of points above l and P2 be the points below l. Points exactly on the line belong to P1.<BR>7.&nbsp;&nbsp;&nbsp; V<SUB>right</SUB> := BUILDKDTREE(P1,depth+1)<BR>8.&nbsp;&nbsp;&nbsp; V<SUB>left</SUB> := BUILDKDTREE(P2,depth+1)<BR>9.&nbsp;&nbsp;&nbsp; Create a node V with V<SUB>right</SUB> and V<SUB>left </SUB>as its right and left children, respectively.&nbsp;<BR>10.&nbsp;&nbsp;&nbsp; <B>return</B> V.</P><img src ="http://www.cnitblog.com/xianglj/aggbug/2103.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/xianglj/" target="_blank">模式识别技术</a> 2005-08-15 15:34 <a href="http://www.cnitblog.com/xianglj/articles/2103.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>