Тёмный
No video :(

[Algorithm Trick] Encoding Matrix Position Into A Single Value 

srcmake
Подписаться 3,5 тыс.
Просмотров 210
50% 1

Link to webpage: www.srcmake.co...
A matrix is a 2-dimensional array, and each element in the array is represented by a row position and a column position. However, having two keys to represent one element is inconvenient for certain algorithms, such as being able to create a hash map to represent each element in the matrix.
In this video, we go over a trick to encode the position (i,j) for an element into a single value. We go through a diagram together for the encoding and decoding formulas, and then we look at some C++ code that implements the encodePosition and decodeValue functions.
Twitter: / srcmake
Twitch: / srcmake
Discord: / discord

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

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
Fast Inverse Square Root - A Quake III Algorithm
20:08
Only I get to bully my sister 😤
00:27
Просмотров 19 млн
拉了好大一坨#斗罗大陆#唐三小舞#小丑
00:11
The moment we stopped understanding AI [AlexNet]
17:38
Просмотров 959 тыс.
How algorithms shape our world - Kevin Slavin
15:24
Просмотров 435 тыс.
Premature Optimization
12:39
Просмотров 794 тыс.
Dockerizing A Project
17:02
Просмотров 841
The Worst Software Engineering Advice I've Ever Seen
12:26
What is a Monad? - Computerphile
21:50
Просмотров 600 тыс.
15 Sorting Algorithms in 6 Minutes
5:50
Просмотров 24 млн
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Only I get to bully my sister 😤
00:27
Просмотров 19 млн