A simple algorithm for 2D Voronoi diagrams

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024
  • In this video we will learn a simple algorithm for generating Voronoi diagrams. Given a set of points on the plane, the idea is to create, for each point, a polygon that encloses the region of the plane that is closest to that point.
    Voronoi diagrams are a type of spatial partitioning diagram that divide a plane into regions based on the distance to a set of points. They are used in a variety of applications, including computer graphics, image processing, and machine learning.
    By the end of this video, you will be able to understand and implement the Voronoi diagram algorithm in your own code.
    Pseudocode (short version): gist.github.co...
    Pseudocode (long version): gist.github.co...
    JavaScript code: gist.github.co...
    / edgardocpu

Комментарии • 11

  • @aleksandrstukalov
    @aleksandrstukalov 5 месяцев назад +3

    This is an awesome explanation of the algorithm! Thank you for sharing such a helpful content!❤❤❤

  • @shihyuehjan3835
    @shihyuehjan3835 4 месяца назад

    Thank you so much for the video!

  • @unveil7762
    @unveil7762 3 месяца назад

    This is very cool thank you

  • @starplatinum3305
    @starplatinum3305 Месяц назад

    Amazing

  • @tedlorance6968
    @tedlorance6968 4 месяца назад

    Out of curiosity, is there a known or best-guess optimal or near-optimal value for the padding in the algorithm? Perhaps related to the mean distance between the sites?

  • @gutzimmumdo4910
    @gutzimmumdo4910 4 месяца назад

    what's the time complexity of this algo?

  • @uncleole503
    @uncleole503 3 месяца назад

    this is very different from Fortune's algorithm

  • @aleksandrstukalov
    @aleksandrstukalov 5 месяцев назад

    Is there any research paper that you took this algorithm from?

    • @EdgarProgrammator
      @EdgarProgrammator  5 месяцев назад

      No, I couldn't find an easy, step-by-step algorithm for building Voronoi diagrams (unlike Delaunay triangulation algorithms, which are easy to find). That's why I created this video.

    • @Kewargs
      @Kewargs 3 месяца назад

      ​@@EdgarProgrammatorWhat about the Fortune sweep algorithm?

  • @jcaceres149
    @jcaceres149 2 месяца назад

    However, this algorithm is not optimal in the worst case, and it does not deal with unbounded Voronoi cells