What is a Bitwise Operator - Introduction to Bitwise Operators and How to Use Them

Subscribers:
58,000
Published on ● Video Link: https://www.youtube.com/watch?v=SSvHrrbhCCI



Category:
Guide
Duration: 13:28
11,829 views
118


Learn more advanced front-end and full-stack development at: https://www.fullstackacademy.com

Bitwise Operators are similar to Logical Operators, but they work on a smaller scale: binary representations of integers. In this video, we talk about what a Bitwise Operator is, how to use Bitwise Operators, and showcase a few demos of ways that they can be commonly used. One of those demonstrations involves Brian Kernighan’s Algorithm for counting bits. We explain what is happening behind the scenes of the algorithm as well as its efficiency and then conclude with a simple benchmark of three different bit counting algorithms.

Watch this video to learn:

- What are Bits and Bytes
- The difference between Bitwise Operators and Logical Operators
- Bitwise Operators use cases

Below is the code used for the demonstrations:

Bit Counting Visual - https://repl.it/FLAy/5
Bit Counting Benchmarks - https://repl.it/FLBQ/11







Tags:
Bitwise Operators
how to use Bitwise Operators
What is a Bitwise Operator
Brian Kernighan’s Algorithm