karan / Projects

:page_with_curl: A list of practical projects that anyone can solve in any programming language.
https://twitter.com/karangoel
MIT License
45.06k stars 10.57k forks source link

Problem: Routable Spaces #130

Open ChuckM opened 5 years ago

ChuckM commented 5 years ago

Create a set of point pairs [(x,y),(x',y')), ((x,y),(x',y')),... bound the points by the rectangle min(x),min(y) by max(x), max(y). Create routes between every pair of points while staying within the bounding rectangle and not crossing any existing path.

This is a simple precursor to the planar routing problem faced by autorouters on PCBs and FPGAs etc. It makes for a fun graphical puzzle to solve arithmetically.