16

I encountered an algorithm to solve a real world problem, and I remember a class I took where I made something very similar for some for a homework problem. it looks like this

Basically it's a plot of points, and the lines are drawn to be equidistant between two points. It forms a perfect partition where the lines around the point form the shape of area that is closest to that point. Does this ring a bell to anyone? I've had a tough time googling descriptions and getting results. And I don't know how else to describe it. Hopefully the picture helps.

John L.
  • 39,205
  • 4
  • 34
  • 93
Brian
  • 161
  • 3

2 Answers2

33

What you described is Voronoi diagram.

Here is an excerpt from Wikipedia.

Picture of Voronoi diagram from Wikipedia

In the simplest case, shown in the first picture, we are given a finite set of points ${p_1, \cdots, p_n}$ in the Euclidean plane. In this case each site $p_k$ is simply a point, and its corresponding Voronoi cell $R_k$ consists of every point in the Euclidean plane whose distance to $p_k$ is less than or equal to its distance to any other points. Each such cell is obtained from the intersection of half-spaces, and hence it is a convex polygon. The line segments of the Voronoi diagram are all the points in the plane that are equidistant to the two nearest sites. The Voronoi vertices (nodes) are the points equidistant to three (or more) sites.

John L.
  • 39,205
  • 4
  • 34
  • 93
3

You are looking for a Multi-Class Classification Algorithm. I suggest you have a look at:

Sagnik
  • 904
  • 7
  • 20