Тёмный

Data Structures: Introduction to Bit Sets 

LevelUp
Подписаться 6 тыс.
Просмотров 12 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@LevelUppp
@LevelUppp 4 года назад
How do you like the new video format? With animations etc.
@dominiccatherin6661
@dominiccatherin6661 3 года назад
i really like these presentations however i got lost on this one. In the diagram at the 3:02 mark the number of 0 bits between the first two 1's is 23 so why is the 2nd bit pattern for a number of 15 (001111) and not 23 (0010111)? Also the 4th 7 bit chunk has a number 40 (0101000).
@LevelUppp
@LevelUppp 3 года назад
I know why and it's simple. A) I'm an idiot and I can't be bothered to count the bits correctly. B) This is what happens when you write the script and then tweak the animation later. Sorry about that. I will delist this video and make another one about bit sets but better, but it's going to take some time so let me add a correction in the video description.
@dominiccatherin6661
@dominiccatherin6661 3 года назад
@@LevelUppp ahh ok. It's late at night here and i was starting to think I should be counting in octal or something like that lol. No worries and thanks for your videos.
@ibrahim47
@ibrahim47 3 года назад
without this thread, my brains would have exploded
@0xgoinglower761
@0xgoinglower761 4 года назад
The new format is great. Animations are very helpful and the video professional. Well done. Visual thinking is so much easier to follow along.
@Humberd01
@Humberd01 4 года назад
This is a cool video. I didn't know this kind of structure.
@LevelUppp
@LevelUppp 4 года назад
There's more to show and explain and I will in another video(s) provided that people will like the new format. (Animating this was super difficult)
@Humberd01
@Humberd01 4 года назад
@@LevelUppp How long did it take you to animate it and in which program?
@Humberd01
@Humberd01 4 года назад
I have a problem with understanding in 2:40 how the 7-bit blocks are populated. We have numbers 0 and 1, but in this block they are in postion 0 and 5. Why?
@LevelUppp
@LevelUppp 4 года назад
In the first block we have 2 bits set to 1: So we set the 0 bit (since it tells us if we have a run of ones or zeros) and the 6th bit since counting from the right to left it's the 2nd bit and what we do here is we encode the count so 2nd bit is 2. What we do here is encoding the bits from right to left.
@Humberd01
@Humberd01 4 года назад
I think I get it now. The first bit in 7-bit block is indicating what the remaining 6 bits would mean. If its 1, then it would mean we have treat 1s as 1s in that initial big bytes block. If its 0, then it would mean we treat 1s as 0s. So if we have 100_0010 then it means that we treat te 6 right most bits as 1s, so the 6 bits are 000010 and its number 2 in decimal, so 100_0010 represents 2 consecutive ones. Then if we have 000_1111 it means we treat 6 right most bits as 0s, so 001111 in decimal is 15, so 000_1111 is 15 consecutive zeros
@Humberd01
@Humberd01 4 года назад
So in other words we take as many 7-bit blocks as there are consecutive ones or zeros, so that we can encode number of their consecutiveness (is that even a word?) inside each 7-bit block. This is cool
@LevelUppp
@LevelUppp 4 года назад
@@Humberd01 Yes :)
@rishitripathi5617
@rishitripathi5617 2 года назад
Video style toh bole toh ekdumm zhakaassss....
@IBITZEE
@IBITZEE 2 года назад
good info,,, RLE/RLL was used in the first hard drives interfaces... ;-)
@__hannibaal__
@__hannibaal__ Год назад
Bit or byte?
@taddeustentakel8598
@taddeustentakel8598 Год назад
Why is the array of bytes 20 bytes long when u have 4 ints in them? 4x4byte I thought it is?
@jinalpatel9154
@jinalpatel9154 4 года назад
Where can we find more detail around it ? Considering new to this data structure.
@LevelUppp
@LevelUppp 4 года назад
en.wikipedia.org/wiki/Bit_array en.wikipedia.org/wiki/Run-length_encoding Here's some sample code for the bit set: gist.github.com/badamczewski/9a5aa6fbec385061b430465ed043bf5b (It's in C# but the code is very simple so it shouldn't be hard to write this in your language of choice)
@lukelyu3264
@lukelyu3264 Год назад
best animation, worst explanation in detail
@LevelUppp
@LevelUppp Год назад
Agreed, would do it better now.
@saveenaks3064
@saveenaks3064 3 года назад
Oh, it's so much copied from 3blue1brown. Dialogues too! U can bring more creativity in. Explaining and content is good though.
@Speedyrides2021
@Speedyrides2021 7 месяцев назад
You can relate this to cryptocurrency
Далее
Good Book about Low-Level C++ [from a quant dev]
7:04
无意间发现了老公的小金库 #一键入戏
00:20
How Could a Good God Allow Suffering?
0:53
Just enough C to have fun
39:29
Просмотров 56 тыс.
Data Structures: Linked Lists
7:43
Просмотров 1 млн
C++ Bitsets in Competitive Programming
15:35
Просмотров 120 тыс.
How does the SET data structure really work?
6:52
Просмотров 5 тыс.
Data structures: Introduction to Trees
15:50
Просмотров 1,5 млн
Performance Optimization, SIMD and Cache
45:29
Просмотров 36 тыс.
Data Structures: Introduction to Linked Lists
13:40
Просмотров 487 тыс.
Learn std::bitset (binary operations) in C++ | Part 1
10:03
Bitset
15:28
Просмотров 1,4 тыс.
无意间发现了老公的小金库 #一键入戏
00:20