Author Topic: Themes for new topics -={Challenge}=-  (Read 6449 times)

0 Members and 1 Guest are viewing this topic.

Jeremy

  • Guest
Re: Themes for new topics -={Challenge}=-
« Reply #15 on: December 06, 2013, 03:35:04 PM »
Looking for a fun challenge? How about this one. Write an algorithm for finding the minimal circle that will just enclose a set of circles of random radii and random centers. You are not allowed to approximate the circles with points but must use the circle data. Of course we assume that all the circles lie on the XY-plane.

Similar to an Apollonian Gasket, but the internal circles can intersect each other?

Yes, the circles can cross each other. It seems however that everyone is chasing the nearest point now, a separate challenge for another day?

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Themes for new topics -={Challenge}=-
« Reply #16 on: December 06, 2013, 03:47:52 PM »
I like these type of challenges. Although that particular one is not all that great. :)
TheSwamp.org  (serving the CAD community since 2003)

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Themes for new topics -={Challenge}=-
« Reply #17 on: December 06, 2013, 08:07:14 PM »
I think it is necessary to give a full description of what and how the program is supposed to do.

I need a faster version of this:
Code: [Select]
(defun nearest-point (pt ptlst / mindst dst npt)
  (setq npt (car ptlst)
        mindst (distance2d npt pt))
  (foreach p (cdr ptlst)
    (if (< (setq dst (distance2d p pt)) mindst)
      (setq mindst dst
            npt p)))
  npt)
http://www.theswamp.org/index.php?topic=40592.msg474213#msg474213
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Jeff H

  • Needs a day job
  • Posts: 6150

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Themes for new topics -={Challenge}=-
« Reply #19 on: December 08, 2013, 02:52:06 PM »
Interesting links Jeff  8)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

ElpanovEvgeniy

  • Water Moccasin
  • Posts: 1569
  • Moscow (Russia)
Re: Themes for new topics -={Challenge}=-
« Reply #20 on: December 08, 2013, 11:40:00 PM »