this is cs50.cdn.cs50.net/2012/fall/lectures/6/week6m.pdf · in a room of n cs50 students, what’s...

12
This is CS50.

Upload: others

Post on 01-Aug-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: This is CS50.cdn.cs50.net/2012/fall/lectures/6/week6m.pdf · In a room of n CS50 students, what’s the probability that at least 2 students have the same birthday?

This is CS50.

Page 2: This is CS50.cdn.cs50.net/2012/fall/lectures/6/week6m.pdf · In a room of n CS50 students, what’s the probability that at least 2 students have the same birthday?

CS50 Checkcheck50  -­‐c  2012/pset4/resize  resize.c  bmp.h

check50  -­‐c  2012/pset4/recover  recover.c

Page 3: This is CS50.cdn.cs50.net/2012/fall/lectures/6/week6m.pdf · In a room of n CS50 students, what’s the probability that at least 2 students have the same birthday?

CS50 Library

Page 4: This is CS50.cdn.cs50.net/2012/fall/lectures/6/week6m.pdf · In a room of n CS50 students, what’s the probability that at least 2 students have the same birthday?
Page 5: This is CS50.cdn.cs50.net/2012/fall/lectures/6/week6m.pdf · In a room of n CS50 students, what’s the probability that at least 2 students have the same birthday?

typedef  struct  node{        int  n;        struct  node  *next;}node;

Page 6: This is CS50.cdn.cs50.net/2012/fall/lectures/6/week6m.pdf · In a room of n CS50 students, what’s the probability that at least 2 students have the same birthday?
Page 7: This is CS50.cdn.cs50.net/2012/fall/lectures/6/week6m.pdf · In a room of n CS50 students, what’s the probability that at least 2 students have the same birthday?

typedef  struct{        int  numbers[CAPACITY];        int  size;}stack;

Page 8: This is CS50.cdn.cs50.net/2012/fall/lectures/6/week6m.pdf · In a room of n CS50 students, what’s the probability that at least 2 students have the same birthday?

http://www.blogcdn.com/www.engadget.com/media/2008/05/iphone_line_1-1.jpg

Page 9: This is CS50.cdn.cs50.net/2012/fall/lectures/6/week6m.pdf · In a room of n CS50 students, what’s the probability that at least 2 students have the same birthday?

typedef  struct{        int  head;        int  numbers[CAPACITY];        int  size;}queue;

Page 10: This is CS50.cdn.cs50.net/2012/fall/lectures/6/week6m.pdf · In a room of n CS50 students, what’s the probability that at least 2 students have the same birthday?

hash table

Page 11: This is CS50.cdn.cs50.net/2012/fall/lectures/6/week6m.pdf · In a room of n CS50 students, what’s the probability that at least 2 students have the same birthday?

In a room of n CS50 students, what’s the probability that at least 2 students have the

same birthday?

Page 12: This is CS50.cdn.cs50.net/2012/fall/lectures/6/week6m.pdf · In a room of n CS50 students, what’s the probability that at least 2 students have the same birthday?

to be continued...