生成一个大的随机平面图 [英] Generate a large random planar graph

查看:617
本文介绍了生成一个大的随机平面图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是最有效的方式来产生一个大的(〜300K顶点)随机平面图形(随机在这里是指均匀分布)?

What is the most efficient way to generate a large (~ 300k vertices) random planar graph ("random" here means uniformly distributed)?

推荐答案

另一种可能性在于随机选择坐标,然后计算Delaunay三角网,这是一个平面图形(和外表美观大方为好)。请参阅<一href="http://en.wikipedia.org/wiki/Delaunay_triangulation">http://en.wikipedia.org/wiki/Delaunay_triangulation还有为O(n日志(n))的算法来计算这样一个三角。

Another possibility consists in randomly choosing coordinates and then compute a Delaunay Triangulation, which is a planar graph (and looks nice as well). See http://en.wikipedia.org/wiki/Delaunay_triangulation There are O(n log(n)) algorithms to compute such a triangulation.

这篇关于生成一个大的随机平面图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆