Algorithms: Bit Manipulation

Поділитися
Вставка
  • Опубліковано 19 жов 2024

КОМЕНТАРІ • 242

  • @griffintoal4410
    @griffintoal4410 7 років тому +533

    still a little 'bit' lost ;)))

    • @SumoCumLoudly
      @SumoCumLoudly 6 років тому +35

      this is not a good explanation video

    • @jasperzanjani
      @jasperzanjani 5 років тому +3

      @Juan2003gtr your GTR needs a new transmission Juan, ve te a la chingada

    • @pwn0x80
      @pwn0x80 5 років тому +3

      Yep better watch xorpd assembly lecture

    • @ohdude6643
      @ohdude6643 4 роки тому +2

      Boomm drop da maik

    • @3deeguy
      @3deeguy 3 роки тому +4

      @@pwn0x80 Thanks. I just subbed xorpd. I tried to read some code that had a lot of bit shifting.

  • @FWTteam
    @FWTteam 4 роки тому +35

    It's all the bits and pieces into one video, represented very interestingly. Thank you!

  • @dorondavid4698
    @dorondavid4698 4 роки тому +60

    Great video, but the masking section was done too quickly... You needed a bit more in depth examples for each type.

  • @simplelife8722
    @simplelife8722 3 роки тому +3

    I came to youtube understand bit manipulation after reading first chapter of your book.... And boom I have the author explaining me herself... Thank you soo much Gayle😀

  • @rydmerlin
    @rydmerlin Рік тому

    It has to be said Gayle is a superwoman. Looking at what she was wearing it appears as though she did this series of videos in the same day and that’s just amazing to me that she can offer this instruction like that.

  • @MichielDeSnuyter
    @MichielDeSnuyter 4 роки тому +111

    I'm still trying to compute all of this information. It's a bit overwhelming.

    • @SK-yb7bx
      @SK-yb7bx 3 роки тому

      wah wah whaaaaa

    • @ivanleon6164
      @ivanleon6164 3 роки тому +1

      shift to another things and then come back to continue w the video.

    • @shanmukh111
      @shanmukh111 3 роки тому +2

      It's a "bit" too much I agree

    • @SkeleCrafteronYT
      @SkeleCrafteronYT 3 роки тому +3

      You need the basics of binary to understand. It will help to learn binary conversion to hexa-decimal and base-10.
      Also learning "signed" binary, will help with understanding the twos complement which I think she explained quite well.
      You'll get there!

    • @enesabdulla5872
      @enesabdulla5872 3 роки тому

      @@SkeleCrafteronYT ​ @Ivan Leon I think the person was making a joke (a 'bit' overwhelming).

  • @JackWootton
    @JackWootton 5 років тому +21

    If anyone tries this in Python, be careful because shifting 1 "i times" will not provide the correct bit mask for the "i th" bit: 1

    • @solisoma1012
      @solisoma1012 Рік тому +1

      let your counting start from 0 down to the left

  • @quirkyquester
    @quirkyquester 4 роки тому +5

    the best video talks about bit operation i've ever found! Thank you so much!

  • @shankar7435
    @shankar7435 Рік тому +5

    After watching several videos of others, I finally landed on the right one, which is precisely what I was looking for. Thanks a lot.

  • @laurenortiz2120
    @laurenortiz2120 6 років тому +34

    This REALLY helped clarify the shifting and mask business for me. Thanks!

  • @KentoNishi
    @KentoNishi 6 років тому +95

    I'm a *bit* interested

  • @MonjurulIslamKhan
    @MonjurulIslamKhan 7 років тому +43

    For 2's complement, you don't have to do that much work. Just keep same all the bits till you encounter first 1 from right to left. After first 1 complement each bit. For example, 010100 -> xxx100 ->101100. :D

    • @Pignemo
      @Pignemo 6 років тому +13

      but that's a slower algorithm than inverting the bits and adding one.

    • @ghostriley22
      @ghostriley22 6 років тому +13

      I think it's faster on paper but slower for the computer

    • @RickeyBowers
      @RickeyBowers 5 років тому +2

      Subtracting one and then inverting the bits also works - each of these methods have utility depending on the environment. For example, they could simplify a more complex bit twiddling, or have dedicated hardware. Thanks for sharing this alternative.

  • @zongweifan2353
    @zongweifan2353 4 роки тому +5

    you helped me get much more clear with the bit manipulation things, thanks!

  • @HackerUC
    @HackerUC 6 років тому +46

    I got a little lost at 7:23 when she starts talking about shifting the number to the left by i spots

    • @shanthureddy4234
      @shanthureddy4234 5 років тому +3

      yeah exactly she didnt bother to explain why original number % (random) mask should not be zero in the first place ,,,

    • @ohdude6643
      @ohdude6643 4 роки тому +41

      What you need to keep in mind is: if you shift too much to the left, you end up with communism. Too much to the right you've got a Facist state. Neither are good.

    • @gulammohiddin5747
      @gulammohiddin5747 4 роки тому +5

      The part you mentioned was regarding getting the bit at the 'i' th position. To get that bit we need to do a Bitwise AND with the binary number which has 1 at the 'i'th position.
      So to create that binary number we take 1, which is represented as 00000001, shifting the 1 to 'i'th position, (which gives 00100000 in the video, actually depends on i) and do a bitwise AND with the binary representation of the given number.
      If the result is a zero then you know that the 'i'th bit is zero else its a 1.

    • @ognimoddd
      @ognimoddd 4 роки тому +3

      don't you mean a little BIT lost?

    • @edgar6705
      @edgar6705 3 роки тому

      @@gulammohiddin5747 Hi Gulam, so you always start with one and then start shifting?

  • @SoyJayP
    @SoyJayP 5 років тому +4

    Excellent video. It feels good to finally understand something about Bit Manipulation

  • @mj-sv7ep
    @mj-sv7ep 4 роки тому +3

    At 2:45, she says "So let's think about this. What number would we have to add to 00 100 10 to get 1 000 000 0." I know about 2s complement, but I donot get why we need to get 1 000 000 0?

  • @cbade993
    @cbade993 2 роки тому +2

    She understands English, Spanish, Russian and Korean given the books on her desk?

  • @ashutoshbichare
    @ashutoshbichare 5 років тому +3

    Number:23
    Left shift:Number*2=23*2=46
    Right Shift:Number/2=23/2=11

    • @SJHunter86
      @SJHunter86 3 роки тому

      Hey :) Just so you can see why its -12:
      1 1 1 1 0 1 0 0 in artihmetic base 10 numbers works out to be:
      -128 + 64 + 32 + 16 + 0 + 4 + 0 + 0 = -12
      When the signed bit is a 1, the value is -128, then you add left to right as usual. Hope this helps!

  • @snlgrg
    @snlgrg 8 років тому +28

    explanation of concept is very good but only one thing is missing i.e some real world problem, just introduce some real world problem without solution, You can post solution in some other video.. ;)

    • @jorgeherrera1074
      @jorgeherrera1074 7 років тому +6

      go to their website and sign up and you'll have examples, really worth it, just signed up a few days ago, probably the best free help ive found

    • @ryantay87
      @ryantay87 7 років тому +1

      Completely agree. Been doing the 30 day code challenge to better myself.

    • @MarioRugeles
      @MarioRugeles 7 років тому +2

      snlgrg your concern is fair, altough I would also encourage you to dive more into the conceptual approach just for fun. Real world applications will always be there waiting 😀

    • @shanthureddy4234
      @shanthureddy4234 5 років тому

      check out the geeks for geek

  • @sakshamjain6900
    @sakshamjain6900 4 роки тому +6

    you guys provide a great explanation, but I still think you need to go a little slower so the people can understand it much better and please try to explain videos in depth a little bit ;)

  • @kardashevr
    @kardashevr 4 роки тому +8

    9:00 The only thing I understood 100%

  • @led07zeppelin
    @led07zeppelin 4 роки тому +3

    1. convert 123 to binary. 2 Invert bits, and then add 1. Why do we add one? 4:22

    • @edgar6705
      @edgar6705 3 роки тому

      I think 1(0000001) is the number you need to add to your inverted number so you can get the negative version of 123

  • @cooldeep7492
    @cooldeep7492 5 років тому +2

    Jump to the 5:20 if you want to know the difference between logical and arithmetic right shift.

  • @jvsnyc
    @jvsnyc 6 років тому

    This is solid, but I've been somewhat impressed how tricky some of the more advanced bit manipulation problems on HackerRank can get even for someone who's known the basics for years. Sure, you know XOR, but do you REALLY know XOR....

  • @barisbasar3909
    @barisbasar3909 2 роки тому

    This lady is lowkey one of the biggest g's in coding lol

  • @antoniotorga5371
    @antoniotorga5371 3 роки тому

    great video LOVING this channel

  • @emilyhuang2759
    @emilyhuang2759 5 років тому +5

    8:19 for big picture of getting, setting, and clearing

  • @DarkSpydaIV
    @DarkSpydaIV 3 роки тому +1

    Very wordy and much technical jargon. Hard to follow for someone new to the topic.
    The curse of knowledge means that the more you know, the easier it is to talk like an expert and
    alienate non-experts. The way to explain this bit manipulation information to beginners is to keep it in very simple wording.
    Such is understanding your audience and who is receiving the information. If that audience is people who are new to the topic, they will be lost in translation.

  • @crackcodinginterview4995
    @crackcodinginterview4995 4 роки тому +4

    Very clear! Would have been great if it is shown with coding examples.

  • @sunnyhours84
    @sunnyhours84 7 років тому +8

    Whatta hell?? How ignorant I have been! I've never had to deal with bit operations until now, but I have always presumed that you just use the exact same bits (except the first sign bit) to differentiate between positive or negative numbers. Like say the number 18 in base 10 is 00010010, and -18 is 10010010. Why is this a bad idea, someone?

    • @sunnyhours84
      @sunnyhours84 7 років тому +1

      Thanks a bunch for the answer! I've been reading up on different signed representations after my first post, and turns out that some architectures actually do use the "magnitude representation", but they are outdated, so my hunch was not totally wrong. Looks like all modern x86/x84 machines uses "two's complement".

    • @jvsnyc
      @jvsnyc 6 років тому

      Not just those, but 19 of 20 others are thereabouts as well.

    • @homotopf9461
      @homotopf9461 5 років тому

      @@sunnyhours84 yeah it is not a stupid idea, in your own project you can totally do somethings like that!

  • @geraldinejns
    @geraldinejns 6 років тому

    Never mind, got it. It's just an example of how to add up 2 digits. Can't believe i had to watch the video twice to get it.

  • @SahilRallySuperStar
    @SahilRallySuperStar 7 років тому +2

    Which software are you using to explain things ?

  • @sachiniyer7148
    @sachiniyer7148 4 роки тому +2

    Thanks.. Yours lectures have been very helpful!!

  • @MURDR63
    @MURDR63 7 років тому +2

    Couldn't you just use x^1

  • @mohanaddarwish2307
    @mohanaddarwish2307 6 років тому +5

    Did anyone got interested about the pile of books behind her and if they are well known or just decoration?

    • @aishwaryaramesh4877
      @aishwaryaramesh4877 6 років тому +2

      They are indeed well known books! She has authored two of them, the other books are like Bible: CLRS, Algo design from Springer , etc.

    • @mohanaddarwish2307
      @mohanaddarwish2307 6 років тому

      Aishwarya Ramesh if you are free can you share their names? If you u know them or can read it from the video :)

    • @aishwaryaramesh4877
      @aishwaryaramesh4877 6 років тому +4

      @Mohanad Darwish , sure!
      Cracking the Coding Interview, Cracking the tech career , CLRS , Algorithm Design by Springer, some Russian book and I'm not sure about the others... Hope that helps

  • @namankeshari7332
    @namankeshari7332 Рік тому

    The legend herself!!

  • @asawanted
    @asawanted 2 роки тому

    Regarding clearing the ith bit, can't we do x xor (1

  • @kevinrodriguez7403
    @kevinrodriguez7403 Місяць тому

    does she show us how to actually add "1" to the binary inverse of the positive binary representation? like its a pretty big step she just glosses over

  • @blank336
    @blank336 6 років тому +4

    so how can you tell the difference of -123 and 133 in binary? they both are 10000101

    • @APaleDot
      @APaleDot 6 років тому +13

      This is where the distinction between signed and unsigned integers comes in. If the data-type we're talking about is an unsigned 8-bit integer, then 10000101 is 133. If it's a signed 8-bit integer, then 10000101 is -123.
      Unsigned 8-bit integers can be in the range 0 to 255.
      Signed 8-bit integers are in the range -128 to 127.
      Both can hold 256 different values, but the signed ones are centered around zero.

    • @OhsoLosoo
      @OhsoLosoo 2 роки тому

      @@APaleDot clearest explanation I've seen on this in a while.

  • @ultimatesin3544
    @ultimatesin3544 6 років тому +4

    When is this practical? You know I saw this used in some Google code for a particular object in Android SDK a while back, and it looked like the developer was trying to be clever in squeezing every last bit of efficiency possible out of his/her algorithm.. however if you extended their object in a certain way (which was for a popular use-case at the time) the algorithm then broke for certain situations causing a very elusive bug.. I wish I remember the specifics, think it may have been one of the support libraries.. I do remember it was a pain to track down and I had to override alot of the base methods because of it.. it scared me off of ever using this technique in commercial code..

    • @CerealLover56
      @CerealLover56 6 років тому +4

      Have you never looked at the source code for the java.util packages? The collections defined in that package are going to be used in pretty much every Java application on the planet. They're full of bit operations. They're a fast and efficient way of doing a lot of basic mathematics that would otherwise cause unnecessary slowdown.

    • @KingOfAceZ1
      @KingOfAceZ1 5 років тому +1

      embedded systems? you know, electronics that you can't just download a magical sdk for?
      you're standing on the shoulders of giants, lol.

    • @OhsoLosoo
      @OhsoLosoo 2 роки тому +2

      @@KingOfAceZ1 alot of CompSci students today don't understand that the stuff they use is built on these very operations that they think no longer serve any practical purpose.

    • @ipodtouch470
      @ipodtouch470 Рік тому

      @@KingOfAceZ1 I programmed a digital lock in assembly using an 8bit pic microcontroller and you are correct we are indeed standing on the shoulders of giants. The people that are the most guilty are probably web devs, they seem like they have a package for everything...

  • @icono__7136
    @icono__7136 3 роки тому

    You introduced the concept of "inverse" without even defining it. What does inverse mean??

  • @crapadopalese
    @crapadopalese 7 років тому +12

    Sounds like Rebecca Black is narrating this.

  • @FlyThanos
    @FlyThanos 2 роки тому

    for the twos component you said we just add the inverse so why did you put a 1 if there's already a 1?

  • @ryzen980
    @ryzen980 4 роки тому +1

    Atleast the voice in this video is clear

  • @vikashh384
    @vikashh384 6 років тому

    Nice Short and Clear.

  • @crackcodinginterview4995
    @crackcodinginterview4995 4 роки тому

    Good way to explain bits!

  • @_ashout
    @_ashout 7 років тому

    In the last example @8:20, could you not shift a 0 instead of inverting a 1? So (0

  • @muhammadroohallah6091
    @muhammadroohallah6091 3 роки тому +1

    Than. You random lady
    U just explained in a few seconds what my teacher couldn’t over the course of a few lectures (maybe that’s cause i wasn’t listening 🌚)

    • @Saykey20111
      @Saykey20111 3 роки тому

      1 minute into the video do you know where she got 637? Thanks a lot if you can explain.

    • @moj8301
      @moj8301 3 роки тому

      @@Saykey20111 She was just showing you how to add up numbers

  • @jarrodburns6339
    @jarrodburns6339 3 роки тому

    Excellent video, thank you.

  • @MadForCs16
    @MadForCs16 4 роки тому +1

    m a bit overwhelmed after seeing this video

  • @OhhOmni
    @OhhOmni 4 роки тому +1

    @8:12 when Gayle is explaining how to "clear the ith bit", she mentions that all you have to do is invert your existing binary number, then AND it with the inverted number. But if you pay attention, you will see that she doesn't invert the two 1's near the right side of the binary number. Does anyone have any idea why she may have done it this way?

    • @design48art
      @design48art 4 роки тому

      OhhOmni I had the same question. Hopefully someone can chime in with some insight

    • @graham5774
      @graham5774 4 роки тому +1

      "AND it with a mask with a 1 everywhere else but that one spot". She then said to get this by inverting the previous mask, not the existing number.

  • @proggenius2024
    @proggenius2024 3 роки тому

    Great content with good explanation. Thank you👍

  • @PepeTostado
    @PepeTostado 2 роки тому

    Are there coding challenges (excercises) that deal with bit manipulation? To nail the foundations.

    • @jackwindensky5606
      @jackwindensky5606 2 роки тому

      Go to leetcode and filter the problems by bit manipulation, I recommend then sorting by most frequent so you are more likely to find an accompanying video tutorial on youtube if you get stuck.

  • @IChowdhury01
    @IChowdhury01 3 роки тому

    7:20 is the !=0 necessary? Wouldn't just returning the result also work? If it's a 1, 1 != 0 is 1. If it's a 0, 0 != is 0.

  • @MuhZubairAli
    @MuhZubairAli 6 років тому

    In binary there is no 2, as being explained 1:38 instead it's 1+1=10 (from this result 0 is placed while 1 is carried to next calculation...

    • @jackmocherman1296
      @jackmocherman1296 6 років тому +1

      Right, which is why she carries it. Same as in decimal where there is not single symbol for 10. We still describe the condition for carrying a number as two digits in the same place adding up to 10 or more even though there is no "10" symbol, or what is represented as "A" in hexadecimal.

  • @phil_ka
    @phil_ka 2 роки тому

    that -18 from 18 was damn cool

  • @satyamsingh4653
    @satyamsingh4653 6 місяців тому

    in clearing the bit, the invert bits are wrong at the 3& 4th place?

  • @ShubhamSingh-wm1gh
    @ShubhamSingh-wm1gh 7 років тому

    one of the best video I've ever seen ..
    really appreciate your work
    big thumbs up 👍

  • @plunk6774
    @plunk6774 2 роки тому

    Огромное спасибо за столь хорошее объяснение материала!

  • @jibreelkeddo7030
    @jibreelkeddo7030 5 років тому

    Good video but wish it spent more time explaining why we use two's compliment vs one's compliment and the difference. I got stuck on that for a little bit.

    • @skilz8098
      @skilz8098 4 роки тому

      The simplest reason that 2's complement is preferred over 1's complement is that with 1's complement you end up with two zeros, a + and a - zero which can lead to ambiguity within the hardware-software implementation of the adders. Also, 2's complement has the effect that when you add any two signed numbers you will get the correct result for both positives and negatives whereas with 1's complement in some situations the result will be off by 1 due to the two zeros that are produced by 1's complement.

  • @onionsandwich
    @onionsandwich 5 місяців тому

    Masterclass !

  • @vamseekotha
    @vamseekotha 3 роки тому

    i like the way she says hi

  • @weho_brian
    @weho_brian 3 роки тому +1

    Gail is a fantastic teacher!

  • @johnaweiss
    @johnaweiss 8 місяців тому

    7:23 I don't understand this notation.
    (x&(1

    • @johnaweiss
      @johnaweiss 8 місяців тому

      ok, i think `x` is the byte we're evaluating, and `

  • @gosnooky
    @gosnooky 7 років тому

    Bit masking and bit manipulation is where we programmers separate the boys from the men. Or girls from the women.

  • @johnjonjhonjonathanjohnson3559
    @johnjonjhonjonathanjohnson3559 6 років тому +26

    what if a 1 sexually identifies as a 0

    • @RickeyBowers
      @RickeyBowers 5 років тому +5

      life gets a bit complicated

    • @morguhnburke685
      @morguhnburke685 5 років тому

      cant even miss gender numbers anymore can we

  • @Saykey20111
    @Saykey20111 3 роки тому +1

    where did you get that 637. You to explain for those who are not gifted too.

    • @ryangriffin5036
      @ryangriffin5036 3 роки тому

      It's a random number that she chose because it nicely demonstrates "carrying the one"

  • @magnuschase2694
    @magnuschase2694 4 роки тому

    Hello so when i want to use the arithmeric shift to the right for example on 1011 then i get 1101 and by 0101 i get 0010?

  • @anuvavashishtha3124
    @anuvavashishtha3124 Місяць тому

    Everyone around here is a bit too good at making puns.

  • @aysehasan8402
    @aysehasan8402 5 років тому +2

    what about when you shift a negative number to the left ?

    • @bradfin12
      @bradfin12 2 роки тому

      Depends on if it is logical or arithmetic. Logical will push the last bit before the sign bit. Arithmetic will multiply the number by two and keep the sign bit.

  • @sagunpandit6314
    @sagunpandit6314 3 роки тому

    this is really good.

  • @FernandoBasso
    @FernandoBasso 4 роки тому

    The Hackerrank link doesn't work any longer.

  • @imsubratabiswas
    @imsubratabiswas Рік тому

    what she told from 3:38 ? little confusing. can anybody explain ? why to add 1 to both of those ?

  • @azatakhunov6061
    @azatakhunov6061 Рік тому

    good video) after watching this i took a certificate at HackerRank

  • @FilipMakaroni_xD
    @FilipMakaroni_xD 2 роки тому

    Oh lord, I've been doing this to "clear a bit" in one of my programs
    x &= (0

  • @wkal1443
    @wkal1443 3 роки тому

    Now my left ear knows about bit manipulation

  • @geraldinejns
    @geraldinejns 6 років тому +2

    greate video, but where did you get the numbers 637 and 011.

    • @anonymousExposure
      @anonymousExposure 5 років тому +1

      It's a random number that she uses for the purpose of just showing how to add them. So she could have used any other numbers, I got confused by it at first as well.

  • @ohdude6643
    @ohdude6643 4 роки тому

    That "manipulation" square wave got me distracted.

  • @bnetjail
    @bnetjail 6 років тому +3

    What is "Bitpul Ian Man Tio" ?

  • @AmirHamedZakeri
    @AmirHamedZakeri 4 роки тому

    thanks very good explanation

  • @mehdibouchene3208
    @mehdibouchene3208 3 роки тому

    how the hell is 8 bit used does the computer have the right to only use 8 at one time or how?

  • @ba1anse
    @ba1anse 5 років тому

    good video but it is so densely packed, it is not good for beginner to learn at such rapid pace.

  • @trainofthought5733
    @trainofthought5733 4 роки тому

    how is arithmetic shift of -23 12 i does not work bit wise right??

  • @quirkyquester
    @quirkyquester 4 роки тому

    how do you flip the bit in python? "~" in python does not flip the bits

  • @AhmadAsmndr
    @AhmadAsmndr 4 роки тому

    Thank you very helpful..🌹

  • @sackratte24
    @sackratte24 7 років тому +1

    great quality

  • @halo3gamer15
    @halo3gamer15 7 років тому +1

    wait, what did i miss ? Binär: 101 isn´t 583 ?!

    • @iloveanime9226
      @iloveanime9226 7 років тому +1

      101 is 1x2^2+0x2^1+1x2^0 = 5
      It just like how 105 = 1×10^2+0×10^1+5×10^0
      But in binary you have 2 possible number (0 & 1)
      while in decimal you have 10 possible numbers (0 to 9) and the power is just the index of the number starting at 0 from the right side incrementing as you move to the left
      so in binary
      0 = 0x2^0 = 0 in decimal
      1 = 1×2^0 = 1 in d
      10 = 1×2^1+0×2^0 = 2 in d
      11 = 1×2^1+1×2^1=3 in d
      100 = 1×2^2+0×2^1+0×2^0 = 4 in decimal
      Anything multiplied by 0 is 0 so we can skip that
      So 100 = 2^2 = 4
      583 = 2^9+2^6+2^2+2^1+2^0
      So these will be ones and everything in between will be zeros
      so 583 = 1001000111

  • @chiting765
    @chiting765 5 років тому +3

    A little confused at the masks

  • @Uniqtech
    @Uniqtech 7 років тому +1

    Pretty amazing

  • @phamanghung2318
    @phamanghung2318 5 років тому +4

    I will fail the interview if asked bitwise operations now lol

    • @pwn0x80
      @pwn0x80 5 років тому

      Me to

    • @depshallburn
      @depshallburn 5 років тому

      They don't even teach this shit in my college.

    • @huey1153
      @huey1153 5 років тому

      Dx D
      You don’t take discrete math or low level systems?

  • @muhammadfouad1792
    @muhammadfouad1792 7 років тому

    Really thank you so much for your clear explanation!
    waiting for more videos (Y)

  • @mohamedfouad2304
    @mohamedfouad2304 7 років тому

    What are the books on the table???

  • @Sergeeg
    @Sergeeg 7 років тому +22

    How are you so smart?

    • @chrisE815
      @chrisE815 7 років тому +10

      Sergeeg Hard work.

    • @Lightbringer_prime
      @Lightbringer_prime 7 років тому +9

      you must be pretty dumb if you think shes SO SMART lmao

    • @DrAero0
      @DrAero0 7 років тому +48

      Or maybe he wanted to express his gratitude- give a compliment ? Don't forget there are different types of intellgience, you might lack social/emotional intelligence when you call out people for no good reason...

    • @jerslo9037
      @jerslo9037 6 років тому +29

      She's pretty fucking smart. She has multiple graduate degrees from top tech schools, a career of working at the top tech companies, is a writer and a teacher. Look at her linkedin for godsakes!
      Her genotype is superior to ours in every way, caveman.

    • @blank336
      @blank336 6 років тому +1

      go flip more burgers, you pathetic fuck lol

  • @pulsar3108
    @pulsar3108 5 років тому +3

    She reminds me of Jan from The Office

  •  6 років тому

    hope some one help me with my question minute 2:45, i completely understand how we inverse the number, but why arbitrary 10 00 00 00(128)? from e where does it come that?

    • @serkandemirel5075
      @serkandemirel5075 4 роки тому

      For example after +127 (01111111) we get -(0) which is 1000000. Although that zero is basically 128 as unsigned 8-bit number, it becomes the first zero before we get to the first negative number, -127 (10000001).

  • @arnav_0397
    @arnav_0397 Рік тому

    I watch whole video for masking, and ended up not understanding it, total
    waste

  • @_inetuser
    @_inetuser 2 роки тому

    very good vid

  • @luisriveragonzalez9052
    @luisriveragonzalez9052 2 роки тому

    I feel a Bit better now ;)

  • @techfornoobs4241
    @techfornoobs4241 6 років тому

    do i really need to know this for tech internships?

  • @Tea-Spin
    @Tea-Spin 7 років тому

    How do you tell the difference between -123 and 133?

    • @APaleDot
      @APaleDot 6 років тому +3

      This is where the distinction between singed and unsigned integers comes in. If the data-type we're talking about is an unsigned 8-bit integer, then 10000101 is 133. If it's a signed 8-bit integer, then 10000101 is -123.
      Unsigned 8-bit integers can be in the range 0 to 255.
      Signed 8-bit integers are in the range -128 to 127.
      Both can hold 256 different values, but the signed ones are centered around zero.

    • @sebastiangudino9377
      @sebastiangudino9377 4 роки тому

      I'm late, but i want to add that the point of representing signed numbers this way, is that we can use the same adition operation on both signed and unsigned types and still get the correct result. So we can use the same adition circuit to add signed and unsigned integers, we can also implement subtraction by adding A + (-B) and that also works for signed and unsigned numbers, it's a really convenient and powerfull practice