Bitwise Operators in Python - Tutorial & Application Fields
HTML-код
- Опубликовано: 13 июл 2024
- In this video, we learn everything about bitwise operators and we also discuss what they are used for.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/
Timestamps:
(0:00) Intro
(1:23) Bitwise Operators Explained
(15:20) Application - Flags & Permissions
(22:35) Application - XOR Variable Swap
(26:30) Application - Even or Odd
(27:34) Application - Log2 Algorithm Shifting
(28:00) Outro Наука
Hey! Just realize you reached 100k! Congrats!
This is exactly what I've been missing about these bitwise operators!!
Thank you, great video!
I stuck on Cisco Python 3.3.5 and your explanation is much clearer. Thanks a lot.
Xor also has another interesting property. If you take a variable and xor it with some value, then xor it again with that same value, you get back the original variable. This makes it useful for encryption.
It was also used a lot during the early days for crude graphics manipulation.
All operators were used in 1s and 2s compliment integer math, logical reductions ( Karnaugh maps) and face it... digital computers, as they exist today, are composed of millions to billions of individual logic gates (and, or, nand, nor, xor, xnor).
Bit level math used to be the 1st item in the computer science curriculum. The fact that it is now only mentioned as a kind of obscure side note kinda gives you an indication of far down the abstraction rabbit hole we have traveled.
XOR is used in a similar manner in some versions of RAID. It can detect corrupted data and infer what it is to recover it
Thanks man! I really loved the Application fields. Not many youtubers list examples of applications. This is most useful.
Congrats on 100k!!
Congrats on 100k!
Very Clear! Great Examples! Thanks
Your video came in handy for interview practice problems!
quick, precise. thanks
Good video. I'm a rookie and was having trouble with bitwise.
Really a great explanation! Thank you.
Super helpful, ty so much!
Congrats to the 100k subs bro
Thanks a lot! This is really helpful.
Just learned it this weekend 😃.
thanks a lot, it was amazing 👏❤
Thanks a lot.
thanks man
GG 100k🔥❤️
Thanks a lot
thanks!
you're my hero Flori!
congrats for 100k
very good video
Danks again.
Please continue with the codewars challenges series, they're pretty entertaining and engaging
thy man you saved my life
thank youu
dude is on gear big time
Where datt Silver play button be ❤️❤️
Congratulations!
Congratulations
22:47 I believe this would be an effective way to swap two variables in any programming language; Heck, I just tried it in Java!
Nice video bro, just want to ask what is theme of your pycharm?
One dark
@@NeuralNine thankyou bro, I love your videos , direct at point , good explanation.
How much faster is it to use bitwise operators to perform math like determining divisors or dividing by 2?
I test it after watching this video. The speed is the same.
For boosting speed you should use cython.
Python has both a bin() and hex() operator, I just realized!
Pls bring on obsfucation in python plss
100 more
I don't feel smart for immediately commenting before watching the video but could you do a video on a chatbot that could hold conversation and seem a bit more intelligent. I understand if not, that would be hard, no?
Bruh
Only 400 more brother