More
See all Show me
6. The City
5 months ago
1. Node Painter
6 months ago
This was my first Processing Sketch. It came about as I was trying to find a way to graphically represent the Nearest Neighbor Problem. I just ended up using brute force instead of employing a more efficient function. I once came across a Library for the nearest neighbor problem and the traveling salesman problem. If you happen to know of one, shoot me a link. Source code can be found here, openprocessing.org/visuals/?visualID=307
Credits
Tags
2 Likes
  • meushi 6 months ago
    hi, isn't it "just" a backtracking problem ? optimizable with a branch and bound implementation ?
  • Baoquoc Doan 6 months ago
    I've read about various solutions for it, I just didn't know how to express the solutions in terms of processing code. I suppose if i took the time I could figure it out. But thanks for the tip. The reason I'd like to find an improved Nearest neighbor solution is for some of my other sketches that require the recognition of other elements nearby, and when your managing many elements, things can quickly get bogged down. Meushi, you've got cool stuff by the way
  • meushi 6 months ago
    thanks. btw if you feel like decoding the code (at the very end of the page), there's a java implementation of the nearest neighbour there: cgm.cs.mcgill.ca/~soss/cs644/projects/perrier/Nearest.html
  •  
  • Ryan Bateman 6 months ago
    I found some great classes for the travelling salesmen and generally Applied Maths issues on Heaton Research: heatonresearch.com/
  • Baoquoc Doan 6 months ago
    awesome, thanks a lot Ryan...that was really helpful
  • Ryan Bateman 6 months ago
    No worries. :)
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Sponsored by:

Statistics
  •  
    plays
    likes
    comments
  • Total
    plays 186
    plays 2
    plays 6
  • Jan 9th
    plays 0
    plays 0
    plays 0
  • Jan 8th
    plays 0
    plays 0
    plays 0
  • Jan 7th
    plays 0
    plays 0
    plays 0
  • Jan 6th
    plays 0
    plays 0
    plays 0
  • Jan 5th
    plays 0
    plays 0
    plays 0
  • Jan 4th
    plays 0
    plays 0
    plays 0
  • Jan 3rd
    plays 0
    plays 0
    plays 0
  • Jan 2nd
    plays 0
    plays 0
    plays 0
Previous Week

See referrers
Downloads
Please join Vimeo or log in to download the original file. It only takes a few seconds.