Added: 3 years ago
From: StanfordUniversity
Views: 119,108
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (211)

Sign In or Sign Up now to post a comment!
  • oh man, completely blown over by this lecture, hats off to you Prof. for sharing your knowledge with us....

  • stop saying hes a good teacher. you guys should talk about what did u really learn from this

  • Yes, a very very good lecturer.

  • Good!!!

  • i love how he always says, "does that make sense to people?" :D

  • I am 1011

  • great examples! 

  • is that make sense?

  • @karavanaoguz to people?

  • Johnny Bravo in the real life :D

  • excellent presentation...

  • Comment removed

  • @SoundsSilver He means: 2^15 - 1

    remember he started from the far right at 2^0 not 2^1

  • dudes this intro music is BAD ASSSSSS!

  • Priceless.

  • This is a great lecture. everything structured down and explained in a way that's easy to understand. Thank you Stanford.

  • I dont get binary addition :(

    i thought it would give 1110 at 14:28

  • Comment removed

  • How are longs different from ints?

  • @GeoffreyBernardo Depends on the system. Usually they are twice the size of an int in memory. But you can always check with the sizeof() operator how many bytes a type takes.

  • @GeoffreyBernardo Long is a int but just using the int keyword creates a int with long or short or whatever is natural for your architecture example

    32 bit computer int = long

    16 bit computer int = short

  • Professor Make Sense

  • Does that make sense to people? Mmk

  • @HasMilk it does to me.

  • 8:38

  • 8:37

  • It is _awesome_ that the universities provide these videos to the general public, so people who can't go to university also has the possibility to have a teacher, just even better cause they can pause/rewind etc.

  • /watch?v=a1RdzztQTjc

  • This guy say "Doo Doo" at 8:39

  • This guy say "Doo Doo" at 8:40

  • He sucks in drawing...

  • please can i get some sites to learn about programming. thanks

  • According to this lecture when I cast an INTEGER with setted bit 16 and 1 to SHORT,

    I should ideally get the value of (- 2^0) but I get the value ( - (2^16 + 2^0 - 2) )

    Anyone knows why?

  • @autonify It's unclear what you mean by "setted bit 16 and 1." Do you mean the bit for 2^16 and 2^1 or 2^15 and 2^0? And by "setted" do you mean the bits are equal to 1? If you mean what I think you do, you should not ideally get -1 (which is -2^0) and which is every bit set to 1 in 2-s complement. Instead, only having the most and least significant bits set to 1 should give you -(2^15 + 2^14 + ... + 2^0).

  • Comment removed

  • @eatme690808

    Thank you for the tip. I worked it out the number represented is negative and the value is equal to all bits on except the most significant bit -(2^14 + 2^13 + ... +2^1+ 2^0) as it should be when only the most and the least significant bit is on.

  • does a person has to have programming knowledge to start a computer science course. i want to start university but i don't have any programming knowledge, so that why I'm asking.

  • @Frass13 He says in lecture 1 that you don't need to know programming to start, and in fact knowing it can slow you down if you have bad habits.

  • Thanks. have you done this course before. If yes, how is it?

  • @Frass13 No, of course not. You'll learn how to program as you progress in your studies. But, with so many readily available and often times free resources on a number of languages on the Internet, there's no reason why you can't start on your own. If you're interested start looking for tutorials on google or YouTube et al.

  • i like the intro bit

  • GREAT TEACHER... best one Ive seen so far. He drills into you with example after example of it all... how many teachers do this?

  • @freeadplanet Does that make sense to people?

  • @freeadplanet other teachers at stanford lolz

  • @freeadplanet best teacher i've seen in a long time.

  • I have a floating point question. What would be the layout of 7 in bits for a floating point?

  • @IMakeOrWatchVideos

    0=positive 10000001=129 (129-127 = 2 for 2^2) 11000000000000000000000<=0.75 for 1.75

    I'm pretty sure that's correct.

  • I'm having problems with the floating point bit.

  • Let me warn you people.

    When you advange these lectures you should, as a smart person, start being more and more doubtfull of the usability of consepts like clock speed, treads, byte division ect. in our computing system.

    It will soon be clear.

    Somebody trolled you real hard when first computers were being designed and dummies wanted to take a part in the process fast to get financial gain.. :) :)

  • you can get the handouts here- see(dot)stanford(dot)edu/see/m­aterials/icsppcs107/handouts(d­ot)aspx

    

  • @Turkey892

    Page not found ?

  • One of the very clear and great lecturers I found anywhere.... "I think that make sense to Everyone"

  • if i had a nickle of how many times he said sense :d

  • Wow, this is incredibly ground up.  Professor Cain's makes it very clear :)

  • I really like the color of the board....

  • Is there an online book or tutorial that explains this?

  • From an engineering perspective this basic paradigm explanation to computer science and binary processing is great. Kudos to Jerry Cain and Stanford for sharing this gem of knowledge with the world and the simple math that backs it up.

  • For a basic paradigm explanation to computer science and binary processing this is a great series. Kudos to Jerry Cain and Stanford for sharing this gem of knowledge with the world.

  • He has a great handwriting on the chalkboard, unlike many professors.

  • This is great. I can't afford school but have a strong interest in programming.

  • @silverpizza100 Woah, do not let money get in the way, take advantage of our government right now, they're happy to help out the less wealthy individuals who have an apt for learning what makes them happy. Check out FAFSA, or grab a student loan. I was in the same boat, now I've claimed my CCNA in Networking and I'm now immersing myself in programming.

  • Great! The best explanation of two's complement that I've ever heard!

  • Thank you professor . U are the best

  • he is not clear enough. i ve seen better teachers

  • οΚ?

  • >:D makes sense!

  • 29:40ish...wow, he really doesn't know what he's doing? and he's teaching? Pay me to be the teacher, the children will actually learn something.

  • Comment removed

  • @sabriath With that arrongance you would be a terrible teacher. Learn some matters first and then come back to see if you deserve to be a teacher.

  • @pmelendezu : you mean manners? I only show arrogance when it comes to trolling youtube, in the real world, it's called confidence....there is no real way to convey emotion in text.

  • @sabriath According to wikipedia "Confidence is generally described as a state of being certain either that a hypothesis or prediction is correct or that a chosen course of action is the best or most effective", pointing somebody else mistakes in public and mocking of them in the real world is just being a jerk...

  • @pmelendezu : and again you show ignorance by giving me a definition of something I didn't even say I was doing. Read it again...it says...."I only show arrogance when it comes to trolling on youtube".....in the real world...I don't do that, and it comes off more toward confidence rather than trolling arrogance....because "there is no real way to convey emotion in text".

    Read much?

  • @pmelendezu how can you base anything off of wikipedia? rofl.

  • @Erictons2 does the source matter? if you want, cite any other definition and how that would change the point of my statement :S

  • @pmelendezu Uhhh yeah, the source DOES matter. I could go to wikipedia myself and change the defenition to anything I want it to be. You assume all that information is written by scholars and professionals? LOL.

  • @Erictons2 Look kiddo... As I said.. look for an alternative definition that would change my statement.. if you can find it fine, but if you don't please stop trolling the comments here.

  • @pmelendezu I don't need to find an alternative statement for the definition of "confidence".. that would prove pointless and take all the fun out of trolling you "kiddo."

  • Grate lecture. Thanks to Stanford University.

  • C With Classes rules.

  • I found the floating point part difficult to understand,

    all the other stuff made sense to me

  • Thanks much to Stanford University.. they are posting the amazing lectures and doing gr8 favour to humanity..

    @Jerry Cain

    All you taught make sense to people

  • This is exactly how this should be taught...... ammmmaaazing lecture.... Thanks for posting!!!!!

  • This is great great stuff.

  • Why am I watching hours of programming lectures on Youtube? I bloody hate programming! I don't understand any of it.... maybe the next lecture will get clearer...

  • Unless you get COMBAT shorts, then you can store even more bits (and bobs) in them than trousers. Didn't think of that now did you Mr fancypants... fancytrousers.

  • there is no subtitle so i dislike it and there is no urdu translation

  • okay

  • Comment removed

  • LOL  "you really do..do.." @8.39

  • @LAROEKOE hehehe dammit, i wanted to write a comment on this. You scumbag comment thief!!! and violator of law of causality!!! I mean, if you're gonna copy my comment at least have enough respect for the physical laws to do it AFTER I've done it!!

  • I didn't recieve my e-mail.

  • small error in the lecture: the lecturer refers to the negative number representation with the signed bit in msb as one's complement.

    while one's complement really means the notation where you simply invert every single bit. adding 1 to one's complement thus gives two's complement, which explains the name.

  • @ComicSansMS You're right, I've noticed that. The error is at 18:06

  • Professor Jerry mentions this float f = 7.0; short s = *(short *)&f;

    and that printing s would be non zero but i'm getting a zero.

    could this be due to differences in compiler or cpu?

  • @cubejube I obtained the same result as you. I think it will be due to the fact the exp. is 0 so when it is cast to a pointer to short it is carry over 2 bytes of zeroes.

  • learnt the significance of two's complement for the first time in my life.. amazing lecture!

  • you DON'T PRONOUNCE IT (to make any sense) - you use the full word in speech i.e. "character". It is also perfectly OK to SAY one thing and WRITE another on the board (as in "example"/ "eg", "that is"/"i.e.", , "hash"/"#", "dollar"/"$"

  • I had a math professor once who said, "if I make a mistake, just shout out, because I'm at that age where it's possible to think 2, say 4 and write 6!" :)

  • I think hexadecimal (0-255), say "character" and write "Char" for one language, "C" for another, UTF-16 for another, string for another, etc. That, sadly, s the nature of computer languages without earlier standards. But when I say car, I mean those things with 4 wheels that consume vast natural resources, and cause wars - but think that we cannot do without anymore - just like mobile phones that I have now not used for 6 years or so without the slightest problem !

  • If your working with PHP, PHP is very clever at working out the best data type for working out what the result is.

    But then with SQL you must decare that obviously lol.

  • why is 480p the highest resolution?

  • because that was the upload res.

  • u sure? could be youtube's fault....

  • I'm sure, here is a 1080p video that works fine (don't worry about watching it, just an example)

    watch?v=vK355fXaCv4

  • Wow.

    Ok, now find a video that is at least 50 minutes long and was uploaded in 2008!

    Just kidding... :)

  • LOL, he forget the % representation of the short.. for printf, so do i, that's why programmers bring books with them or google the signs..

  • this is very good. My major is Information Technology and I am currently in my 1st semester of college. I learned about binary numbers in Pre-Calc in College (base 2) its pretty cool working with these numbers and also hex values (characters) I'm not even up to this since C/C++ will be included in my 3rd semester lol

    some things you just have to learn from outside sources. Cool stuff. Great Video!

  • makes you wonder how much cents he is making everytime he said sense

  • I guess "does it compile?" still scares beginners...

  • @bombbombtube lool lol yea XD

  • how many little zeros does it take to fill a chark board lol

  • what doesn't make sense is constantly asking whether something makes sense. argh...

  • @ComeLeVent Well he's asking whether it makes sense to assure everything he says does make sense to people. If he didn't, there could be a few people to whom it would not make sense. Does that make sense to you?

  • Not a lot actually. Students know that it is their privilege and duty to ask if they don't understand; and i believe they are usually informed about that fact in the first couple of lessons in case they didn't already know. He's certainly good, but he is either insecure about his delivery or constantly babysitting his students to make sure they ask when they don't understand; but he shouldn't have to with this age group.

  • @ComeLeVent He is a legend. Enough said. It should all make sense to people.

  • @ComeLeVent In a perfect world, you'd be right. However, as a teacher I can tell you students just don't stop a teacher to ask questions. It incredibly frustrating to have a student in your office for a conference and have them tell you they don't understand a basic concept that you went over weeks ago and that all subsequent lessons have been based on. So some of us pause for questions in the hope that someone will ask.

  • @ComeLeVent I agree with you when you say they are already apt to ask questions when they don't understand something, but you'd be amazed at how many people actually just don't ask, be it for being shy, or because he/she doesn't want to interrupt the teacher or because he/she isn't even paying attention in the first place. Being repetitive, constantly showing that he cares if the alumni are actually enjoying the class and learning, makes a HUGE difference in the overall results of that class.

  • He hasn't made anything here complicated, he's just explaining why things are the way they are from the beginning.

  • How do you pronounce 'char', as in 'charcoal' or like 'care' as in 'character' ? I have worked with professional programmers who pronounced it all three ways. There is no authoritative rule for how to pronounce it.

  • @mfnickster

    It's pronounced char.

  • @mfnickster - think thats awkward? Try looking up the definition of "Irrationalism".... our language ACTUALLY says that trusting in our intuition, and feelings... is irrational....

  • @carolinagsings77 Not necessarily bad... there's a time and a place for rationality. :)

  • "does that make sense to people"

  • Well of course he has to say something. He is teaching a class and has to make sure everyone is keeping up.

    This instructor is capable of speaking such high level tech speak that he could easily lose this 100 level class if he isn't careful.

  • it will not if you are not major in computer science..

  • 36:38 how about saying that it is a fixed point and has a lot of unused bits and not enough precision for small values, and that's why _floating_ point would be better.

  • The lecturer is good  at it

  • What's great about programming and mathematics is that it's concept based and you can learn ALOT by "doing." All these binary operations are very simple. Once you get it it's routine, all he's really trying to get across is the sizing of types so you don't end up truncating your data. It's funny cuz I go to a community college and this is parallel to a CPS 101 class.

    Binary operations is like entry point stuff you just HAVE to know.

  • this is a lecture. you're supposed to be confused! The point is to go to a lab and experiment. He's overflowing you with new info so unless you soak info like a sponge then it's not gonna all sink in. In calculus and advanced math sometimes nothing makes sense..."as x approaches infinity what? ...from where?"

  • People who don't understand need to experiment with it. It's one thing to learn something but it's another to experience it. Experience sticks a lot more to memory than learning. You can actually do anything in this whole lesson in less than 15 lines of code. Play play play, you'll get it eventually and never forget it! It's like learning a language or to ride a bike. ;)

  • If you're starting this from the beginning it's usually hard to figure why or what the first time you're hearing it.

    From my experience from the first year at university, almost always you have to re-listen or relearn the material that you heard in a class, at home with careful study and additional reading

  • University of TEXAS

  • My head is going to explode.

    "Is that clear to all you people?" NOOOOO!!!

  • thats why your not in stanford

  • "Hey, i'm mr Wiseguy, i think in hexadecimal system". Assuming that english is not my native language, and i know mostly it's economical and law side, and not mathematical, i'm quite happy i could understand some 75% of it after 3rd watching. I would like to see you listening this in polish or russian or any other language that you know.

  • lol

  • ummm heh....there wouldn't happen to be a CS 101 is there?

  • @Rexamallion cs106a and cs106b. this is cs107

  • I think this makes sense to people xD

  • Does that make sense to people?

  • yes, it does. Its quite easy for some.

  • i should follow this study.. i can sleep through most of it and still say i passed standford university :)

  • hehe i knwe that allready. I remember watching a US university lecture about physics.. which was stuff we had in highschool. I'm thinking about a university here in the netherlands like delft or eindhoven.

  • lol. I wonder how many Nobel Laureates came out of the great WUOT as opposed to Stanford.

  • trust me, you don't know what're talking about, you don't even know how to express yourself correctly

  • I guess you don't learn proper English at warsaw

  • hahah Porozmawiajmy ponoć w jednym  z najtrudniejszych języków świata :D

    what about your polish :D:D::D:D:D:D:D

  • apparently its one of the most pointless languages in the world

  • What? If you talking about C++ then it aint but you never stated the language u were talking about.

  • warrock hacker

  • 001000111011011001101011100100­001

  • I like lecturers who have the modesty to say "I dont know" :) -- nice one!

  • My teacher asked that question over and over again too. That is actually a good thing and appreciate that he does it because for newbies this is tough stuff. You gotta have a solid foundation to build upon.

  • бля тяжело слушать((((

  • Это да...хорошо бы нашелся добрый человек и перевел бы=)

  • What kind of magic chalk is that? Not a single squeek.

  • it is very thick and comparitively loosely packed.

    on top of that, the professor is really caring that he avoids writing on flat chalk surface..

    gotta love that.

  • at 18:53:

    0000000000001110 is not 15

    0000000000001110 is 14

  • I noticed that before.

    but he only inverted the LSB verbally without written down the board. =p

    I guess you've figured that out at the end of the lecture..

  • yes i commented it before see that he noticed the error

  • Listen more carefully. He said to invert the negative number (-15). Then he wrote this inverted number (0000000000001110). And then he said to add 1 to get the positive number (+15).

  • I got that part, invert all the binary representations and add 1 to go from - to + or + to - but what exactly was the reason for adding a 1? Is it because of the zero offset?

  • Comment removed