recitation01

recitation01 - Document Distance Big Intimidating Mathy...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
MIT OpenCourseWare http://ocw.mit.edu 6.006 Introduction to Algorithms Spring 2008 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms .
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6.006 Recitation Build 2008.2
Background image of page 2
Outline Introductions Document Distance -- What It Is Python Code
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Why Algorithms? Pwn interviews Keep your brain in shape Build better systems Save the world
Background image of page 4
Word from our Sponsors Do not copy someone else’s code
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Document Distance Big Intimidating Mathy Metric Comes down to For each word W in both docs Q = number of occurrences in doc 1 R = number of occurrences in doc 2 Sum up Q * R Daily Python: Lists fruits = [cat,window,defenestration] fruits[1] fruits[1] = wall fruits + [lawsuit] fruits.append(lawsuit) fruits.extend([lawsuit])...
View Full Document

Page1 / 7

recitation01 - Document Distance Big Intimidating Mathy...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online