Professional Documents
Culture Documents
Harvard CS50 - Full Computer Science University Course - English
Harvard CS50 - Full Computer Science University Course - English
[Music]
thank you
[Music]
foreign
[Music]
foreign
number
know is 123.
32 64 and so forth
quite okay
alphabet
is switches
what
by having a prefixed
two yeah
pings and
straightforward so if a is 65 B is 66
be the numbers 72 73 33
33
. hey close
what one one one one one one one one one
forth
even use
as well
so Unicode as a Consortium if you will
themselves
to represent it
and ones
no oh yes
specific
corner
foreign
[Music]
process in between
information
device
or one
the like
and back
foreign
I do next
Harvard
to one
algorithms might be
oh
and more
just because
David enter
think
uh yeah
down to operators
foreign
function
new
hello banana
again
[Music]
be a little
[Music]
Okay so
sure yeah
bad about it
[Music]
repeat block
play
huh
here
ah so now
sensing
here
[Music]
measure is
slowly
the threshold
[Applause]
we'll do beginner
all right here we go Sahar
give it a moment
[Music]
one point
nice
point
that night
six seconds
there we go quick
play
can notice
go
one point
chorus here is
[Music]
program
trash can
floor
solve yeah
variables
bottom one
Letting Go
go
and back
we want
go
at this
green flag
your name
could too
example
[Music]
[Applause]
[Music]
[Applause]
[Music]
[Music]
[Music]
foreign
[Music]
[Music]
foreign
[Music]
[Music]
[Music]
foreign
[Music]
[Applause]
thank you
[Music]
foreign
[Music]
[Music]
thank you
[Music]
else presumably
programmer
screen
first programs
faster to type
line interface
file
huh
cs50
file per se
ones
yeah in front
it that is change it
name
much syntax
it is storing
here
behavior in a sec
other questions
slash hello
do this
new line
because
whoops
to say
represented Again by
percent s
zoom in here
here
or inputs
programs
or more yeah
to be representative
yeah over here
long
uh yeah in back
to ask that
yeah
right
a program in scratch
AKA Main
next week
standardio.h cs50.h
command
directory
directories with CD
hitting enter
hello
sufficient in C
front
again
for a counter
int for integer so indeed we need to
interesting
all right
so we are back we've just looked at some
in Z here
well
the Z
1 billion
uh oops
billion
count as high as
knows
2 to the 32 power
possible
about
um
places
somehow a constant
on conditionals
then
you think
divided by 2
highlighted line
yeah
yelling capital Y
it ignores me capital n
it ignores me
is kind of reasonable
so what would be the possible solutions
other questions
for
particular language
this in C
yeah
this be
the initialization
differences there
say no
stupid
let's see
n in my
sort of reasonable
expect
on these here
dollars
close
here
if I make Mario
here
at a time
you think
yeah
special as well
like this uh
calculator
the calculator
what's going on
financial implications
[Music]
thank you
[Music]
thank you
[Music]
foreign
[Music]
just to recap
program
hello.c enter
last week
[Music]
behind you
[Music]
[Music]
oh what does the Des o mean so Dash o is
pre-processing it compiling it
prompt
standard io.h2
yeah
[Music]
[Music]
instruction set
turn clang
in
hello.c
other be
yeah
this compiling
[Music]
[Music]
foreign
[Music]
[Music]
caused an issue
have
again
but automatically
time
techniques
yeah
do the following
like n is percent I
yellow
in five
all right
so let's
called scores.c
divided by three
germane to a problem we
[Music]
right my average is
[Music]
[Music]
[Music]
take up
want to sort of
that array
is an INT here the square brackets tell
indexed arrays in C
an INT
there my average is
[Music]
lost another
Yeah question
[Music]
[Music]
brackets
thank you
[Music]
[Music]
recompile High
different variables C1 C2 C3
but technically
you think
another her
High
fast
as well
[Music]
about
here yeah
[Music]
[Music]
my exclamation point is
what's a
numbers
[Music]
[Music]
the beginning
you could do that
do this
[Music]
Enter
the name
an i or a y or an A based on what I
want to
take a string as input
but yeah
say again
ourselves
on this
[Music]
questions
yeah
[Music]
[Music]
[Music]
all right
percent s
yeah
[Music]
designed
now
I've preached
though
work
to be three three
question
and
before value
fundamentally yet
capital i
force it to uppercase
even remember
what's that
second
and
uh
or false
[Music]
here
to it
lowercase
on top yeah
[Music]
[Music]
[Music]
all of that
exactly that
file called
want
that here
program
enter
here yeah
ARG V enter
part
yeah
[Music]
bracket one
you encounter
building blocks
for now
foreign
[Music]
time
[Music]
errors in fact
Bluefish
[Music]
sorry again
but here
the input
[Music]
thank you
[Music]
thank you
foreign
[Music]
this is what
array
[Music]
efficiency precisely
[Music]
algorithm
[Music]
list of commonly
any questions
you pointing to
bright
[Music]
it takes
[Music]
on down
[Music]
come on down
[Music]
[Music]
[Music]
for zero
right is correct
no no
[Music]
volunteer
four
returned false
why would that version of this code have
[Music]
[Music]
think on it
[Music]
times
step
yeah
say again
search
[Music]
[Applause]
[Music]
actually if um
I'm rave
[Applause]
locker
okay
nicely done
efficient
[Music]
terms of
Big O notation
generically n doors
no doors left
yeah
say again
is any questions
[Music]
[Music]
[Music]
[Music]
actual code
than seven
error
[Music]
for INT
this time
[Music]
characters
[Music]
zero
saying this
River
forms
of names bracket I
be called person
here
[Music]
now yeah
built in for us
other questions
[Music]
by line
[Music]
[Music]
infer
[Music]
on the screen
[Music]
remember
okay
[Music]
okay
okay
ready
over
you could
okay
did
again
algorithm
think
thoughts yeah
thoughts
[Music]
with four
swap
improvements
to is better
[Music]
yeah
swap
can't now
minus one
i starts at zero
else
how do we think about or quantify the
what
here
orchestra now
a little louder
to say
1 times
do this Loop
here
1 times
[Music]
the
potentially interesting
time
into account
point
as is necessary
[Music]
[Music]
sort
all right
looping thing
um
make iteration
is
um
this built-in
be a little different
yeah
is this if
going to happen
squared
some point
as part of my
iteration
course three
[Music]
we have hopefully
order
one six
size four
this
this
half of anything
next
remains
next the
four
okay
is log n height
here
temporarily
in the middle
[Applause]
[Music]
foreign
[Music]
[Music]
foreign
[Music]
[Music]
[Music]
thank you
[Music]
thank you
[Music]
um
blue or AKA
10 or 11 or 12 13 14 15. so using
zero f in hexadecimal
something something
screen to represent
as a
through f
actual code
yeah
by convention
namely pointers
so a pointer is a variable that stores
address of that
that's percent p
was stored at Ox
an integer in a moment
value of n again
what is an integer
to you
sorry
back here
was there
yeah
like
day to day
conjecture here
thought
so you know
32 bits is roughly
come on down
sure
say again
and Foo
labeled n
all right
thank you
again
once more
int
picture
if I'm answering your question as
good question
from another
in this example
a pointer
Char star
string
to char star
here
um
this
actually
character in EST
characters
I'm passing it s
frequently
address
chance Ox
402004 which is s
that is Ox
[Music]
yeah
thank you
consistent here
doing yeah
thank you
cs50 library
character in a string
that one
questions on this
printf of percent I
of useful here
claimed
reveal here
like uh hi
exclamation point
yeah
is s storing
slide yeah
equals yeah
good question
and TR
oh
slash copy
here
yeah they're representing the same
of problem
thoughts
this
before I copy s into T using something
before
return value
other questions
using yeah
foreign
want back
mistakes
I shouldn't
so valgrind
of making
that's it
fun
goody
can
a pointy
point to it
something
dereferencing uh
pointer why
as X
uh okay
hey look at
time but
here
come on over
trying to volunteer
that's okay
problem
your instincts
instincts are
okay good
so
make swap
top so to speak
fact buggy
yeah
own A and B
of two
a one
of only two
value
I still have uh
happens well
it's like
is
one to a 2.
addresses
more change
you
consider that
oh thank you
string
I do make scan f
me do clang of scan f
huh
again
try it hello
you type in
here
see
foreign
all right that's it for cs50 we'll see
[Music]
foreign
[Music]
foreign
[Music]
[Music]
to right
think
sorry
there
those
whole array go
that
[Music]
N More generally
time of insert
myself a list
[Music]
list
error
hopefully here
do valgrind of
[Music]
next yeah
foreign
how am I able to free list I
time passes
[Music]
array
array
this
called list
do
whereby
times
and
what could we do
called a
computer's memory
do
a bit prettier
the number
off
say again
the next
here
[Music]
result
of Direction
[Music]
question yeah
perhaps
yeah again
English
in some sense
how might you explain what that inner
[Music]
in this case
[Music]
and now
equals n
careful now
memory
this poorly
visible
addresses now
I go to you
the syntax
utilization of
yes
[Music]
distinguish
[Music]
okay
[Music]
temp
arithmetic
think then
we're good to go
now
[Music]
here
two
lists
[Music]
absolutely
Pedro come on up
come up
[Applause]
four
update yourself
doing
number five
okay
happen here
at Lauren
down
order
say again
this together
thank you
list
say again
not a bad
why would it be n
[Music]
that
nice if we somehow
now
[Music]
trees
seem
[Music]
back
it's a tree
foreign
children
make tree
child
though
speak
number
design opportunity
pointing at it
seeing here
are any questions then on
binary search
[Music]
[Music]
foreign
tree
in five
all right
vertically here
before
them together
itself is an array
of node star
here
and hearts
speak
roughly
A we do like h a a h a b h a c h z and
up to 17
would do is hash
h-a-g-r-i-d or
still possible
be a catch
and in fact tries are not actually used
be printed
foreign
go wrong yeah
yeah if they run out of space on the
up
held
pointing at
[Music]
foreign
[Music]
foreign
[Music]
is what
plus be doing
think
[Music]
there
so no curly braces
and sorry
yeah
yeah
all right
[Music]
[Music]
[Music]
three to a 99 question
far
here
code as well
syntax or Primitives
or otherwise
or otherwise
[Music]
[Music]
something operators
[Music]
object-oriented programming in a
blur dot pi
place
now go into
right in Python
Mississippi 10 Mississippi 11
seconds
alone
what do you think
[Music]
yeah
[Music]
thus far
[Music]
it feels like
calculator.pi enter
by line
all right so let's go ahead and make a
huh
on instincts
[Music]
sure yeah
[Music]
like uh
uh
division by way of
ten respectively
[Music]
and print
[Music]
here
mistake here
would I do wrong
quote unquote y
is a stretcher no yep
lower
question
[Music]
[Music]
to speak
by us the programmers
function
is not defined
[Music]
nothing
all right
before
nothing is meowing
yeah
somewhat familiar
yeah
[Music]
[Music]
[Music]
[Music]
[Music]
[Music]
to get rid of
[Music]
[Music]
yeah
code on line a
bricks
times
range of 3
long
long column
any instincts
[Music]
[Music]
on these yeah
[Music]
uh
[Music]
[Music]
oh
how about
um
all right
python.org or stackoverflow.com is
me do scores dot pi
is just to uppercase
[Music]
on strings
[Music]
you
[Music]
algorithms and
like to look up
question
in C and previously in Python anything
all
what's going on
print found
I am confused okay
what the
[Music]
okay stand by
[Music]
uh-huh
[Music]
foreign
[Music]
[Music]
what the
say again
[Music]
[Music]
whoa okay
[Music]
um so
thanks
nine five
one thousand
apparently
plus one
quote
so let's run this to summarize the data
capabilities there
hello world
pythonofspeech.pi enter
uh let me go into
all right
[Music]
hello world
[Music]
okay
one dot pi
hello world
[Music]
hello world
[Music]
wrong
[Music]
next time
[Applause]
[Music]
foreign
[Music]
foreign
[Music]
there
[Music]
all right
this file
thoughts
called
[Music]
row
was timestamp
[Music]
[Music]
for me yeah
duplicates
[Music]
[Music]
duplicates
going
any thoughts
aware
[Music]
like a
seen it before
around
elaborate on that
yeah
creating a
that
code here
[Music]
[Music]
did I do wrong
little bit
results
[Music]
[Music]
instinct
thoughts
foreign
what office
[Music]
okay
real quick
text
is an email so here's an example in
e dot search
yeah
regular expressions
[Music]
13.
the way
anything here
we'll do it better
acronym crud
um one of which
which would be
done
[Music]
yes
itself is like
the right
from
two
[Music]
questions here
oh
quote-unquote comedy
okay so there's
here
drama
okay so the office in this case was
shows
[Music]
think
[Music]
for
trouble
it's not with comedy I'm okay with
comedy but
directory
dot CSV
[Music]
oh uh give me a sec
come on
sorry
[Music]
called genre
represented by a separate
ideally somehow
search the data but a little more
back
potentially yeah
two tables
[Music]
[Music]
transfer it to a CSV
with my comedies
say again
semicolon
me go ahead and
um shows
counter
a dictionary
favorites table
that
foreign
[Music]
for instance
um
program do this
oops uh
capitalize correctly
screens over to
tables in an IMDb
table
down to
primary
others as well
shows semicolon
to do for me enter
stars in them
Carell's
in Stars
uh let's say
took
um
I think I erased it
in this world
here
speeding things up
in by typing my username
this
text yeah
[Music]
this instead
make sense
[Music]
computer
Instagram post
that egg
in the database to
foreign
[Music]
foreign
[Music]
own words
[Music]
describe it
the term
how else
oh
[Music]
[Applause]
[Music]
[Applause]
my God
through
[Music]
more
yeah
you think
my computer on Mac OS
we described it earlier
like this
requests
permanently
colon
of it's irrelevant
another
401 403
safetyschool.org
Okay so
safetyschool.org
so
okay
minutes
foreign
[Music]
[Applause]
[Music]
[Applause]
we're nice
[Music]
[Applause]
think good
dude
[Music]
[Applause]
[Applause]
[Music]
[Applause]
[Applause]
[Applause]
[Applause]
[Applause]
a moment that
let's consider for just a moment that we
two languages
command HTTP
file called
to have
[Music]
let me actually go to
give me a second
instance if I go to
browser
tab here
to be wrong
yeah
sections or subsections or in an
voila
the page
oh what am I doing wrong
yeah
well let me go to
called
browser
but that's
[Music]
do mine
Source equals
just a second
called uh
demo here
do
ID of a video
file called
Harvard
[Music]
page on a website
text here
[Music]
essence
like that
movie
my own computer
submit
uppercase by convention
google.com search
search.html
query
anything at all
Colon Center
align Center
Center
syntax now
convention
like
the page
before yeah
smarter
yeah
yeah
together
um my source 8 directory
little subtle
stylized
stylistically
yeah
paragraphs1.html
here's the actual file if I want to
[Music]
Green in RGB
enter
here to
um margin
inspect
at
bootstraps documentation
browser
uh a
www.google.com Gmail
whereby
I added to this
things
a bit further
but still after all of that all of these
in five
instead
this
um
autocomplete.html I whipped up as an
foreign
[Music]
foreign
[Music]
up and running
all right
index.html
explicit like
enter
okay nothing happens nothing changes it
want to plug in
server
function
URL
[Music]
oh no
but yeah
into my
same URL
submit here
what's going to happen
hypotheses
yeah
URL
yeah
say
any instincts
this
come on
there we go
come on
hopefully
we now oh
suppose that
adversary
feature here
yeah
function
sorry
[Music]
template
this
time yeah
Chicago
[Music]
into my
go back to layout.html
to the browser
on this application
but yeah
only supports
enter
and I go back to this URL let me go back
of
use post
[Music]
doing
[Music]
yeah what do you think
around it
comma world
post
altogether
I screwed up accidentally
[Music]
layout.html but
[Music]
myself
create
basketball
name value
request.form
was Ultimate
by success
patiently
do wrong
unintentional
[Music]
anyone
[Music]
okay
allowed
Frisbee register
huh
okay
error
text input
just intuitively
assuming exists
here
[Music]
form and
run flask
[Music]
developer tools
[Music]
color say uh
[Music]
[Music]
as they can
sports
approach
[Music]
is
[Music]
handles this
variable
templates
name
oh no sport register
dictionary now
[Music]
page
register
oh damn it uh
register
should grow
before we look at that HTML let's go
let me go into
Lite three
now
hood
specifically
how do we do this
basketball
will ignore
represent or map to
basketball
what is it
in URLs suppose we
maliciously
this yeah
you would trick her into de-registering
[Music]
[Music]
sure I follow
[Music]
which file
[Music]
okay
[Music]
sorry
be John Harvard
Jay harbored at
cs50.harvard.edu
register
works as a demonstration
[Music]
[Music]
fortifying
time
[Music]
[Music]
what's that
foreign
oh maybe
oh
features
into Gmail
code up
my preview URL
could even
have this
get
logged in
how about
URL
these headers
final
to cart button
two possibilities
like cat
enter
here
sorry search.html
shows one
code here
by pasting by
everything
code then
url
cat enter
foreign
[Music]
foreign
[Music]
today
um just wanted to acknowledge how much
foreign
[Music]
foreign
[Music]
of
hey
like
um a square
but
on Top
[Music]
[Laughter]
anyway no no
like next
squares okay
cube
that
all right
second
here
describing
primitive form
yep there we go
back
a smaller Circle
on top
a medium-sized Circle
step two
[Music]
[Applause]
[Applause]
at okay
next one
[Music]
[Music]
circle
[Applause]
oh
step six
[Music]
[Music]
can't no one do
[Music]
[Music]
seven
diagonally
[Music]
close as we can
[Music]
say hi
no
[Applause]
[Music]
okay hi
[Music]
say again
[Music]
circle
[Music]
could
if we could
machine here
long
code
compiler
Carter
[Music]
seconds to go
leaderboard
for 54 percent
weeks back
this time
video
[Music]
400 responses in
[Music]
false
false
[Music]
slowly
[Music]
process
a song Carter
[Music]
oh
question
use
use
[Music]
five seconds
[Music]
tables
answer
things
as a binary tree
in memory
[Music]
about five seconds to go almost have
everyone in
two
contiguous Carter
of movie stars
second
more questions to go
recall based on
of the above
the above
be
Heart
winner
[Music]
you to Carter
opportunity here
all right
in 1994
undergrads so
an emoji
puffed up
gonna fix
um
that so I Googled
late 2015.
were
unicode
year
Global
voting power or
and
like
October 2015.
chain
so
Kickstarter video
[Music]
um
this is
proposal this is it
subcommittee
fairly complex
subcommittee
impact
frequently requested
um
benchmark
um
like sloth
gives it a bum
companies
um so factors of exclusion
your proposal
smartphones into
this kind of
libraries
shouldn't include
character
your phone
after 2010 until 2011 when Apple
Germany
on that I was
I was um
she wrote the proposal it's and it
said
um
um Chinese School
and
bright in Chinese
a roof
um
something so
like grow up
you know so
specifically
problematic as well
together
the
is a woman plus
school
um and
um
that
um
different communities
um
worldwide
um
bit kind of um
nowhere so
register
colors but
why
of wrote in on that
Democrats
me
me change my mind
then we
things Emoji
Emoji
20 and I'm
know excited
number back up so
[Applause]
[Applause]
[Music]
thank you
[Music]
foreign
[Music]
thank you
[Music]
phone's camera
on cyber security
answers
secure
funny perhaps
better
responses so far
here
the way up to
anyone
yeah
a bigger vocabulary
have to search
codes
okay slower
slower
the code
32 punctuation symbols
or days or
why no yeah
have
sorry
use it
account
altogether
thing
crack it
anyone yeah
confidential mode
correspondence
what's the
encrypt
something
H becomes I
encryption
to end
encryption
[Music]
thank you
[Music]
[Music]
foreign
[Music]