09.01.2013 Views

SESSION NOVEL ALGORIHMS AND APPLICATIONS + ...

SESSION NOVEL ALGORIHMS AND APPLICATIONS + ...

SESSION NOVEL ALGORIHMS AND APPLICATIONS + ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

38 Int'l Conf. Foundations of Computer Science | FCS'11 |<br />

Three Three Heuristic Heuristic Algorithms Algorithms Algorithms Algorithms for for for for Generation Generation Generation Generation of of of Random<br />

Random<br />

Polygons by by a a Given Given Set Set of of of Vertices<br />

Vertices<br />

A. Nourollah<br />

1<br />

Faculty of Electrical & Computer Engineering of Islamic Islamic Azad<br />

& Faculty of of Electrical Electrical & Computer Computer Engineering of of Shahid Shahid Rajaee Teacher Teacher Training Training University, University, Tehran, Tehran, Iran<br />

Iran<br />

2<br />

Department Department of Electrical & Computer Engineering of Islamic Azad University, Qazvin, Iran<br />

1 , L.Mohammadi<br />

Faculty of Electrical & Computer Engineering of Islamic Azad<br />

Faculty of Electrical & Computer Engineering of Shahid Rajaee Teacher Training University, Tehran, Iran<br />

Electrical & Computer Engineering of Islamic Azad University, Qazvin, Iran<br />

2<br />

Faculty of Electrical & Computer Engineering of Islamic Azad University, Qazvin, Iran<br />

Faculty Faculty of of Electrical Electrical & & Computer Computer Engineering Engineering of of Shahid Shahid Rajaee Rajaee Teacher Teacher Training Training University, University, Tehran, Tehran, Tehran, Iran<br />

Iran<br />

Electrical & Computer Computer Engineering of of Islamic Islamic Azad Azad University, University, Qazvin, Iran<br />

Abstract - One One of of of the the discussed discussed issues issues in in computer computer graphics<br />

graphics<br />

graphics<br />

and and computational computational geometry geometry is is the the generation generation of of random<br />

random<br />

polygons. This problem is is is of of considerable considerable considerable importance importance importance in in the<br />

the<br />

practical practical evaluation evaluation of of algorithms algorithms algorithms that that that operate operate operate on on on polygons,<br />

polygons,<br />

polygons,<br />

where where it it is is necessary necessary to to check<br />

check the correctness and and to<br />

determine determine the the actual CPU-usage CPU<br />

CPU usage of an algorithm<br />

experimentally. experimentally. To To this this time, time, no no no polynomial<br />

polynomial-time polynomial time algorithm is<br />

known known for for the the random random generation generation of of polygons polygons with with a a uniform<br />

uniform<br />

distribution distribution. . In This This paper, paper, three three new new new inventive inventive algorithms algorithms are<br />

are<br />

presented resented for generating generating random random polygons polygons using using using a a set set of<br />

of<br />

random random vertices vertices using<br />

using<br />

time.<br />

Keywords: angular scanning, convex convex hull, random Simple<br />

polygon, star star-shaped shaped polygon, polygon, computer computer graphics.<br />

graphics.<br />

1 Introduction<br />

The The computer computer graphics is the science of computing the<br />

images which would be be led to to generate generate them.<br />

them. One ne of the<br />

important important branches branches of of of computer computer graphics graphics is is the the computational<br />

computational<br />

geometry. geometry. The The computational computational geometry geometry executes executes executes some<br />

some<br />

some<br />

computing computing on on the the geometrical geometrical geometrical shapes shapes such such as as polygons. polygons. The<br />

The<br />

polyg polygons ons are appropriate shapes shapes for for for representing representing the the shapes<br />

shapes<br />

of of real real world world and and and every every object object in in the the nature nature nature nature would would be<br />

be<br />

be<br />

representable representable as as a a set set set of of polygons. polygons. For For the the reason reason of of this this issue<br />

issue<br />

importance, importance, one one one of of the the important important important discussed discussed issues issues<br />

in<br />

computer computer graphics and and comput<br />

computational comput ational geometry is the<br />

the<br />

problem problem of of generating generating random random polygons.<br />

polygons.<br />

The The problem of of random polygon polygon generati generation is defined as<br />

follows: follows: Given , a uniformly uniformly random polygon polygon on is a<br />

polygon polygon generated generated with with probability<br />

probability if there exist<br />

simple<br />

polygon on in total.<br />

Consider Consider two two two diffrenet diffrenet pairs pairs of of points points the the two two edges edges defined<br />

defined<br />

by by these these pairs. pairs. It It It is is is easy easy easy to to to observe observe observe that that that the the the number number number of of simple<br />

simple<br />

polygons polygons containing containing containing one one of of of these these edges edges by by by a a a dashed dashed line: line: For<br />

For<br />

the the first first edge edge there there exactly exactly two two simple simple simple polygons polygons (Fig 1-a, 1 Fig<br />

1-b)<br />

b) which contain contain it,whereas it,whereas for for the the second second edge edge three<br />

three<br />

simple simple polygons (Fig 1-c, Fig 1-d, Fig 1-e) e) containing it exist.<br />

Unfortunately Unfortunately no algorithm has been presented presented yet<br />

yet for the<br />

problem problem of of generating generating random random simple simple polyg<br />

polygons with linear<br />

time time complexity. complexity. This motivated researchers to pursue<br />

pursue<br />

heuristics heuristics for for generating generating generating random random simple simple polygons.<br />

polygons.<br />

The The generation generation of of of random random random simple simple polygons polygons polygons has has two two main<br />

areas of applicati application: on: The The empirical empirical verification verification of of an<br />

an<br />

algorithm algorithm oprating oprating on on polygons. polygons. The The The practical practical practical testing testing of of its<br />

its<br />

CPU CPU-usage. Too Too many many algorithms algorithms have have been been presented presented for<br />

for<br />

solving solving the the problem problem of of of random random polygons polygons and and and some some some of of of them<br />

them<br />

are briefly explained here in this paper [1]. .<br />

The following sections of of this this paper paper has has been been organized in<br />

in<br />

this way way: section 2 has been allocated to related works for<br />

generating of random polygons polygons. In section 3, , three proposed<br />

algorithms would be offered and and section section 4 investigates the<br />

performance of the discussed algorithms and finally in section<br />

5 conclusion conclusions would be discussed discussed.<br />

2<br />

Fig. 1. Two Two edges edges belonging belonging to to a a different different number number of of simple<br />

simple<br />

polygons<br />

The related work<br />

For For the the the reason reason mentioned mentioned in in section section ago, ago, the the random<br />

random<br />

generation generation of of of geometric geometric objects objects objects has has has received received received some some some attention<br />

attention<br />

attention<br />

by researchers: Epstein Epstein and Sack presented an<br />

an<br />

algorithm for generating generating of of simple simple polygons polygons polygons at at at random<br />

random random [ [2].<br />

Devroy, Devroy, Epstein Epstein and and and Sack Sack studied studied studied the the the random random random generation generation of<br />

of<br />

intervals intervals and and hyperrectangles. hyperrectangles. They They They consider consider the the the problem problem of<br />

of<br />

generating generating a a a random random random hyperrectangle hyperrectangle hyperrectangle in in a a unit unit unit hypercube hypercube<br />

hypercube [3].<br />

Atkinson and Sack Sack studied studied the the uniform uniform generation generation of of forests<br />

forests<br />

of restricted height. A -way way way tree tree is is either either empty empty or or consists<br />

consists<br />

of a a root node node and an an ordered ordered sequence sequence of subtrees. their

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!