Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

MakerSquare Clustering

Avatar for Elben Shira Elben Shira
June 08, 2014
85

MakerSquare Clustering

Clustering lesson.

Avatar for Elben Shira

Elben Shira

June 08, 2014
Tweet

Transcript

  1. Why data structures and algorithms?
 
 So we can build

    fast, stable systems.
 
 Well-designed systems require wisely-chosen data structures and algorithms.
  2. My day-to-day ! Millions requests/minute.
 10,000 Tweets/second.
 
 We think

    about data structures and algorithms every day.
 
 We want people who know this stuff.
  3. Weight Height Humans are good! Can we make a computer

    just as good? Example: T-shirt sizes
  4. Use-cases of clustering algorithms ! Search engines! ! Pattern recognition!

    ! Faces.! ! Tracking cars in videos.! ! Bioinformatics! ! Gene expressions in cancer cells.! ! Social graph search! ! Who are your closest (online) friends?!
  5. Input ! numClusters = 3; ! data = [ [123,

    145], [152, 190], [170, 184], … ]; Output ! clusters = [ // cluster 0 [[123, 145], …], ! // cluster 1 [[152, 190], …], ! // cluster 2 [[170, 184], …] ];
  6. Some tips ! Observe every step of your own thinking.

    How did your brain conclude those clusters?! ! Play around with different examples. See how your thinking and proposed algorithm would be affected.
  7. Don’t write any code until you have a strategy.! !

    Use paper and pencil.! ! Progress is possible only if we train ourselves to think about programs without thinking of them as pieces of executable code.! ! — Dijkstra