def search( graph, root): sequence =[ root ] visited =set() while sequence: node = sequence. pop()
if node not in visited: visited. add (node) sequence.extend ( graph [ node ]) return visited Which
searching algorithm the above code uses and what data structure it employs? What is the
difference between uninformed and informed search algorithms in Al? Can you provide an
example of informed search algorithm in a few sentences?

def search graph root sequence root visited set .pdf

  • 1.
    def search( graph,root): sequence =[ root ] visited =set() while sequence: node = sequence. pop() if node not in visited: visited. add (node) sequence.extend ( graph [ node ]) return visited Which searching algorithm the above code uses and what data structure it employs? What is the difference between uninformed and informed search algorithms in Al? Can you provide an example of informed search algorithm in a few sentences?