Skip to content

Instantly share code, notes, and snippets.

View zippi-MD's full-sized avatar
:octocat:

Alejandro Mendoza zippi-MD

:octocat:
View GitHub Profile
@professormahi
professormahi / search.py
Created November 30, 2016 10:14
UCS, BFS, and DFS Search in python
from queue import Queue, PriorityQueue
def bfs(graph, start, end):
"""
Compute DFS(Depth First Search) for a graph
:param graph: The given graph
:param start: Node to start BFS
:param end: Goal-node
"""