How to Create a Dictionary in C

  Рет қаралды 18,606

Eric O Meehan

Eric O Meehan

Күн бұрын

Пікірлер: 23
@Brad_Script
@Brad_Script Жыл бұрын
10:30 : why are you using free(entry) ? entry was not created with malloc in the constructor
@philipphortnagl2486
@philipphortnagl2486 Жыл бұрын
thanks for these videos. Hope you come back anytime soon with new projects and tutorials!
@BabyBalla3score
@BabyBalla3score 3 жыл бұрын
jeez louis. Just started "learning" C this weekend by doing last year's Advent of Code and wanted to implement a dictionary. I paused the video at 9:04 and googled for a good 15 minutes why you were placing the function declarations in the header file. The next words to come out of your mouth were regarding that very subject lol
@eom-dev
@eom-dev 3 жыл бұрын
haha honestly I do that all the time with KZbin tutorials!
@RichardLRogers
@RichardLRogers 3 жыл бұрын
Thank you. Kind note - larger font could be helpful for easier viewing/following.
@sau-da-de
@sau-da-de 3 жыл бұрын
That Washington OOP in C paper is really good
@jahoopyjaheepu497
@jahoopyjaheepu497 7 ай бұрын
Well-presented and well-spoken, thank you
@MrSomethingdark
@MrSomethingdark 2 ай бұрын
a rarity after the Indian takeover
@bonehelm
@bonehelm Жыл бұрын
Hmmm. The advantage of a dictionary style data structure is to make access of an element O(1). So using a binary search tree instead of a hash function defeats the entire purpose. You're simply adding syntax sugar on top of a binary search tree.
@itspurelypassionate
@itspurelypassionate 2 жыл бұрын
27:45 I don't understand how it converts a void pointer (result) to a struct Entry pointer. how does it work? I am confused. struct has 2 pointers but result is only one pointer so i donno how it is possible to cast it. Very in depth tutorial though 👍
@shahil__malik9633
@shahil__malik9633 3 жыл бұрын
I came to watch this video as I'm stuck with my college programming homework
@eom-dev
@eom-dev 3 жыл бұрын
I hope it was helpful!
@shahil__malik9633
@shahil__malik9633 3 жыл бұрын
@@eom-dev yes, It was .but, you're doing some complex programming. I am a beginner level programmer.
@OhhBabyATriple
@OhhBabyATriple Ай бұрын
Great vid
@markuscwatson
@markuscwatson 2 жыл бұрын
Nice job Eric
@alirezabahrami340
@alirezabahrami340 10 ай бұрын
If you use hashmap it will be O(1) for search why do you find O(long n) more efficient? P.s: i have not watched until the end yet
@draco5991rep
@draco5991rep 2 жыл бұрын
This IDE looks cool, which one is it and how hard is it to get familiar with it? Using Code::Blocks at the moment but I am not sure how happy I am with it, so I constantly looking for other interesting IDEs to toy around with until I find the one that fits me the most.
@AlanStreams
@AlanStreams 2 жыл бұрын
xcode
@AlanStreams
@AlanStreams 2 жыл бұрын
@085Pushpraj Singh Pawar xcode
@ed6393
@ed6393 3 жыл бұрын
Have you considered using hashing for your dictionary? It would be faster than a bst based implementation.
@eom-dev
@eom-dev 3 жыл бұрын
I though of using a hash table but wanted to make a more custom object. Eventually, this lets me add additional functionality; for example, I added a list of keys to the dictionary off camera that allows me to do something akin to a "for each" statement in a loop.
@rafaelbrustolin4687
@rafaelbrustolin4687 2 ай бұрын
light theme nooooooo
Really Big Numbers in C for Cryptography
33:26
Eric O Meehan
Рет қаралды 8 М.
📚What is a Dictionary in C#?
27:26
tutorialsEU
Рет қаралды 31 М.
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
Война Семей - ВСЕ СЕРИИ, 1 сезон (серии 1-20)
7:40:31
Семейные Сериалы
Рет қаралды 1,6 МЛН
Parsing Strings in C
41:28
Eric O Meehan
Рет қаралды 4,9 М.
Understanding and implementing a Linked List in C and Java
18:15
Jacob Sorber
Рет қаралды 255 М.
Hash Table in C
2:11:31
Tsoding Daily
Рет қаралды 75 М.
Dictionary Comprehension - Create Complex Data Structures Step by Step
21:58
Make your Data Type more Abstract with Opaque Types in C
13:41
Jacob Sorber
Рет қаралды 52 М.
5 Tips For Object-Oriented Programming Done Well - In Python
16:08
computers suck at division (a painful discovery)
5:09
Low Level
Рет қаралды 1,8 МЛН
Multithreading with a Thread Pool in C
44:19
Eric O Meehan
Рет қаралды 9 М.
The Dictionary Data Structure in C# in 10 Minutes or Less
10:20
IAmTimCorey
Рет қаралды 44 М.
you will never ask about pointers again after watching this video
8:03
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН