What Is A Trie and How Do We Build One In Python?

  Рет қаралды 16,418

Nathan Patnam

Nathan Patnam

Күн бұрын

Пікірлер: 24
@Raihan-Rahoof
@Raihan-Rahoof Жыл бұрын
i've been going through a lot of youtube videos to understand trie , suddently i stumbled up on this video , and i understanded it well , thank you brother ,love you from india
@meaghanmooney4900
@meaghanmooney4900 5 ай бұрын
thank you, this video is very much appreciated!!!
@Ldoog
@Ldoog Жыл бұрын
What up cousin
@roopamrajvanshi4724
@roopamrajvanshi4724 4 жыл бұрын
nicely done
@DiasDenny
@DiasDenny 4 жыл бұрын
Can you tell me which code is more faster out of these two
@hamzaahmad1224
@hamzaahmad1224 2 жыл бұрын
this was pretty interesting!
@lavinakhushlani9668
@lavinakhushlani9668 4 жыл бұрын
Great Explanation ! kindly help us with deletion too, covering all the cases.
@mayleanpatrickamanyire7131
@mayleanpatrickamanyire7131 2 жыл бұрын
Great work thanks for the efforts
@yogeshmathur3890
@yogeshmathur3890 4 жыл бұрын
Thank you for creating this video.........
@stormarrow2120
@stormarrow2120 2 жыл бұрын
Was very helpful, thank you for putting in the time to make such an excellent video.
@tonyo3620
@tonyo3620 2 жыл бұрын
When do you use trie and when do use trieNode
@fuzzyegg4638
@fuzzyegg4638 3 жыл бұрын
Really helpful video. Can you explain why you used self.root = {"*":"*"}? I wasn't able to find much information on using an asterisk inside a dictionary. Thank you!
@workoutmotivation500
@workoutmotivation500 4 жыл бұрын
Very good explanation and very educational video... Keep up the great work! What would be the most efficient way to count total number of words in Trie? I managed to do that, but I called does_word_exist at the beginning of add_word and I was incrementing the counter if it is the first appearance of the word, but that method slows down algorithm a lot... Thanks in advance!
@imtihanrahman7170
@imtihanrahman7170 3 жыл бұрын
thanks a lot for this video
@alikafaei102
@alikafaei102 3 жыл бұрын
Thank you so much
@CompilationError
@CompilationError 3 жыл бұрын
thanks for the vid man. you are a legend . view and sub doesn't always represent a good video .
@sathyanarayanankulasekaran5928
@sathyanarayanankulasekaran5928 3 жыл бұрын
great..one doubt is, since we have only child node, how to handles multiple childs
@jamalabdisalam8578
@jamalabdisalam8578 Жыл бұрын
you would use an array/hashmap/dictionary to collect the children, then if you want to access any given child you would use the child itself as the index for the array. e.g. for child 'a' you could do something like array[asciivalue('a')] which would then access the a node. so it's effectively self indexing as long as the array can contain all expected values from a to z
@kadamraj9870
@kadamraj9870 3 жыл бұрын
What is the difference between 1st implementation method and the 2nd one ? Can anyone help me with it ?
@dooollydd2147
@dooollydd2147 3 жыл бұрын
11:00 Why does it not work when add_word is being used as an independent function?
@DiasDenny
@DiasDenny 4 жыл бұрын
I have a doubt -Won't "wait*" return True according to your first code
@DiasDenny
@DiasDenny 4 жыл бұрын
Probably if you project your code better in screen, you could had got more views .Anyway nice explanation
@rahulraghavan4553
@rahulraghavan4553 5 жыл бұрын
Ayy
Implement Trie (Prefix Tree) - Leetcode 208
18:56
NeetCode
Рет қаралды 212 М.
The Trie Data Structure (Prefix Tree)
21:07
Jacob Sorber
Рет қаралды 82 М.
When u fight over the armrest
00:41
Adam W
Рет қаралды 31 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 92 МЛН
BMW S1000RR REPLICA 2025 Model | OW MOTORS LAHORE
11:54
Bike Mate PK
Рет қаралды 857
Python Decorators in 15 Minutes
15:14
Kite
Рет қаралды 451 М.
Tree Data Structure using Python
26:59
Coding Cart
Рет қаралды 72 М.
Tries - CS50 Shorts
16:24
CS50
Рет қаралды 74 М.
SUPER() in Python explained! 🔴
13:06
Bro Code
Рет қаралды 13 М.
Understand & Implement Trie data structure - Python
15:39
Code Warrior
Рет қаралды 3,1 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 834 М.
Trie data structure - Inside code
13:26
Inside code
Рет қаралды 10 М.
Binary Trees in Python: Introduction and Traversal Algorithms
28:40
LucidProgramming
Рет қаралды 213 М.
When u fight over the armrest
00:41
Adam W
Рет қаралды 31 МЛН