depth first search algorithm | DFS | Uninformed | Artificial intelligence | Lec-14 | Bhanu Priya

Поділитися
Вставка
  • Опубліковано 27 сер 2019
  • DFS: depth first search algo in artificial intelligence

КОМЕНТАРІ • 65

  • @balasiva9089
    @balasiva9089 4 роки тому +119

    6:04 from E node it should backtrack to B and again it should backtrack to A and then it reaches c node

    • @Adarshsahni1
      @Adarshsahni1 4 роки тому +1

      ya bro

    • @mehmetayparyangozalumni2606
      @mehmetayparyangozalumni2606 4 роки тому +3

      it does but since you dont take the value twice, this is even a better representation

    • @abharathi5193
      @abharathi5193 3 роки тому +1

      Exactly

    • @Monkeydluffy-we2fk
      @Monkeydluffy-we2fk 2 роки тому +1

      Yes

    • @aryankali5446
      @aryankali5446 2 роки тому +1

      @Bloody Kheeng teacher not explain properly. this is wrong way to explain this algorithm you can watch gate smashers UA-cam channel for this algorithm

  • @satyasrujan2349
    @satyasrujan2349 3 роки тому +157

    Hi to all the cse students!

  • @Yua2252
    @Yua2252 Рік тому +7

    Not only the contents but the "Hi, Students" motivates me to watch all the videos related to my study ❤️🙌 Thank you so much mam ❤️🙏

  • @sanjusingha1714
    @sanjusingha1714 2 роки тому +33

    Notes
    ●QUEUE:-A type of a data structure in which the elements are inserted and
    deleted according to the FIFO (First In First Out) principle.
    ●Working:-
    A Queue can be implemented using an ARRAY in which
    > every new element which is inserted in the END: Enqueue
    > If any element has to be removed, it is removed from the
    starting point: Dequeu
    -------------------------------------------------------------------
    ●STACK :- A type of a data structure in which the elements are inserted and
    deleted according to the LIFO (Last In First Out) principle.
    ● Working:-A STACK can be implemented using an array in which
    > every new element which is inserted, is inserted at theTOP (PUSH)
    > If any element has to be removed, it is removed from the TOP (POP)

    • @sanjusingha1714
      @sanjusingha1714 2 роки тому +3

      For Example
      Mujhe lgta hai yeh "B" pr wapis hi nahi jayega,yeh "D"->"E"->"C"->"G" jayega.
      -------------------------------------------------------------------
      Algorithm of DFS:-
      1. START WITH EMPTY STACK
      2. INSERT THE ROOT NODE (INITIAL STATE) IN THE STACK
      3. CHECK IF THE ROOT NODE IS THE GOAL NODE
      IF THE ROOT NODE IS THE GOAL NODE, SEARCH IS SUCCESSFUL ELSE REMOVE ROOT
      4. PUSH: INSERT CHILD (SUCCESSOR) NODES OF THE NODE REMOVED FROM THE QUEUE
      5. POP: Remove the topmost node from the STACK
      6. CHECK IF THE POPPED NODE IS THE GOAL NODE
      7. IF THE POPPED NODE IS THE GOAL NODE, PRINT (SEARCH SUCCESSFUL) AND EXIT
      ELSE, REPEAT STEPS 4 TO 7 UNTIL THE SEARCH IS SUCCESSFUL OR ALL THE NODES OF THE TREE
      HAVE BEEN TRAVERSED AND THE STACK IS EMPTY
      IF THE GOAL STATE IS NOT FOUND , PRINT (SEARCH UNSUCCESSFUL) AND EXIT
      _______________________________________
      Step1: Insert (PUSH) the initial state (root node) S on TOP of
      STACK
      Step 2: POP S and PUSH it’s child nodes H and A
      Step 3: POP A and PUSH it’s child nodes C and B
      Step 4: POP B and PUSH it’s child nodes E and D
      Step 5: POP D but D has no child ! Move to the next node E
      Step 6: POP E but E has no child ! Move to the next node C
      To reach node C, we will have to backtrack from level 3 to level 2
      Step 7: POP C and PUSH it’s child node G
      Step 8: POP G.
      G is the GOAL STATE !! SUCCESS !!

    • @akrishnasamysamy3857
      @akrishnasamysamy3857 4 місяці тому

      Mm

  • @mahalakshmia3287
    @mahalakshmia3287 2 місяці тому +8

    Aiml students assemble

  • @ashutoshdurgule4011
    @ashutoshdurgule4011 Рік тому +2

    Thanks mam you made this topic easier... 🙏

  • @ankitdahiya5367
    @ankitdahiya5367 4 роки тому +5

    Thank u mam...best wishes

  • @tannubajpai4782
    @tannubajpai4782 2 роки тому +1

    Nice one Bhanu Priya Ma'am

  • @sadanandacharb8284
    @sadanandacharb8284 Рік тому +1

    When a weighted graph is given, what is the order we should select the adjacent edge in DFS, should we select the least cost edge first ? please answer this

  • @mehmetayparyangozalumni2606
    @mehmetayparyangozalumni2606 4 роки тому +2

    What, how many values does DFS holds on its stack at once?
    (unlike BFS that holds B^L)
    Thanks again and again ,this is a topic of 3 semesters just in between 10-20

  • @MandeepSingh-td2ic
    @MandeepSingh-td2ic Місяць тому

    A relatively simple real-world processes made so complex and ambigious in computer programing

  • @isaacfash580
    @isaacfash580 3 роки тому +24

    For the backtracking how did E connect straight with C? No connection exist between them, it should go back to B, A, C and then G. Am I right?

    • @rohan8758
      @rohan8758 2 роки тому +2

      you are right dude

    • @027_fervezahamed.a7
      @027_fervezahamed.a7 2 роки тому

      while back track it already visited b and a so only

    • @abhinay_2004
      @abhinay_2004 Місяць тому

      My thinking....once it backtracks it deletes the appropriate node as it is already visited.Hemce B,C,A are not present in tree while backtracking and hence visits G directly

  • @dikshakaushal9711
    @dikshakaushal9711 3 роки тому +5

    E node should be back toh A nd then it traversed to C nd G

  • @kaviya1146
    @kaviya1146 2 роки тому +1

    Tqq sis for this useful session 👌👌

  • @reyy9220
    @reyy9220 4 місяці тому

    you're awesome thank you sm for these videos

  • @chethanm3694
    @chethanm3694 2 роки тому

    good teaching..
    thank u..

  • @mohamedessam3054
    @mohamedessam3054 3 роки тому +1

    BFS is optimal assuming uniform cost across edges otherwise it is not optimal

  • @learnandgetresult5754
    @learnandgetresult5754 3 роки тому +1

    Nice presentation mem

  • @daredevilrbl1254
    @daredevilrbl1254 3 роки тому +1

    What "n" in time complexity ?

  • @user-pe6xp6yo2q
    @user-pe6xp6yo2q Місяць тому

    Thank you mam

  • @sunnysai8811
    @sunnysai8811 2 роки тому +4

    At 9:16 some aunty in telugu speaking " Ha em anavu" 😂😂

  • @Naveen.1431
    @Naveen.1431 2 місяці тому

    TQ Mam ❤

  • @Parikarthik369
    @Parikarthik369 Рік тому

    Tq so much mam love ❤️ u mam

  • @srichandanajada9603
    @srichandanajada9603 3 роки тому +3

    BFS implemented by FIFO Principle.
    Similarly, DFS implemented by what??

  • @alberthmckenzie2772
    @alberthmckenzie2772 4 роки тому +7

    Thank you for allowing me to survive University.

  • @manikantareddymanikantared557
    @manikantareddymanikantared557 3 роки тому +1

    Thank you 🤗

  • @Saiteja-uz5og
    @Saiteja-uz5og 28 днів тому +1

    Where is f

  • @FundamentalofElectronicsbyDrHa
    @FundamentalofElectronicsbyDrHa 3 роки тому +3

    backtracking node E to C How?

    • @greeshma-sp9tv
      @greeshma-sp9tv 3 роки тому +2

      Not possible ryt ? I too had same doubt. !!

  • @user-tu9kl7kz9y
    @user-tu9kl7kz9y Рік тому

    everything is from javatpoint

  • @Yourtutorsahil
    @Yourtutorsahil 2 роки тому +1

    maam please provide notes

  • @satorugojo6881
    @satorugojo6881 Рік тому

    I'm the .8K liker

  • @ilovekdrama4207
    @ilovekdrama4207 Рік тому

    What is n?

  • @techwithkiran9956
    @techwithkiran9956 Місяць тому

    Hii to all the ponjeslians 😂😎

  • @ramuvasupalli3329
    @ramuvasupalli3329 2 роки тому +1

    Mam can i see you face mam😊

  • @poovarasus5905
    @poovarasus5905 2 роки тому

    hi to all CSE (ksr students)

  • @xiaomichina5884
    @xiaomichina5884 4 роки тому +8

    Please mam show your face I have a great wish to see our teachers at least once

  • @tamoorahmad5070
    @tamoorahmad5070 4 роки тому +3

    not really helping.

  • @sankarsarkar2740
    @sankarsarkar2740 3 роки тому

    You don't know what you say