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

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ธ.ค. 2024

ความคิดเห็น • 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 6 หลายเดือนก่อน +1

    thank you, this video is very much appreciated!!!

  • @stormarrow2120
    @stormarrow2120 2 ปีที่แล้ว

    Was very helpful, thank you for putting in the time to make such an excellent video.

  • @DiasDenny
    @DiasDenny 4 ปีที่แล้ว +3

    Can you tell me which code is more faster out of these two

  • @mayleanpatrickamanyire7131
    @mayleanpatrickamanyire7131 2 ปีที่แล้ว

    Great work thanks for the efforts

  • @roopamrajvanshi4724
    @roopamrajvanshi4724 5 ปีที่แล้ว +1

    nicely done

  • @yogeshmathur3890
    @yogeshmathur3890 4 ปีที่แล้ว

    Thank you for creating this video.........

  • @CompilationError
    @CompilationError 3 ปีที่แล้ว +1

    thanks for the vid man.
    you are a legend . view and sub doesn't always represent a good video .

  • @lavinakhushlani9668
    @lavinakhushlani9668 4 ปีที่แล้ว +2

    Great Explanation ! kindly help us with deletion too, covering all the cases.

  • @hamzaahmad1224
    @hamzaahmad1224 2 ปีที่แล้ว

    this was pretty interesting!

  • @dooollydd2147
    @dooollydd2147 3 ปีที่แล้ว

    11:00 Why does it not work when add_word is being used as an independent function?

  • @workoutmotivation500
    @workoutmotivation500 4 ปีที่แล้ว +2

    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!

  • @Ldoog
    @Ldoog ปีที่แล้ว +1

    What up cousin

  • @fuzzyegg4638
    @fuzzyegg4638 3 ปีที่แล้ว +1

    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!

  • @kadamraj9870
    @kadamraj9870 4 ปีที่แล้ว +1

    What is the difference between 1st implementation method and the 2nd one ?
    Can anyone help me with it ?

  • @tonyo3620
    @tonyo3620 2 ปีที่แล้ว

    When do you use trie and when do use trieNode

  • @imtihanrahman7170
    @imtihanrahman7170 3 ปีที่แล้ว

    thanks a lot for this 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

  • @alikafaei102
    @alikafaei102 3 ปีที่แล้ว

    Thank you so much

  • @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 ปีที่แล้ว +1

    Ayy