Skip to content

Commit

Permalink
add starter
Browse files Browse the repository at this point in the history
  • Loading branch information
jonzamora committed Oct 16, 2022
1 parent fc2f5f1 commit 413b354
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/__pycache__
11 changes: 11 additions & 0 deletions FA22/intro-ai-series/workshop-1-ai-search-algorithms/src/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from search import *

def main():
search = Search(environment="Frozen-Lake")
search.dfs()
search.bfs()
search.ucs()
search.a_star()

if __name__ == "__main__":
main()
26 changes: 26 additions & 0 deletions FA22/intro-ai-series/workshop-1-ai-search-algorithms/src/search.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
'''
Search Algorithms
'''

class Search:
def __init__(self, environment):
self.environment = environment

def dfs(self):
print("Algo: Depth-First Search")
# TODO: Implement DFS


def bfs(self):
print("Algo: Breadth-First Search")
# TODO: Implement BFS


def ucs(self):
print("Algo: Uniform Cost Search")
# TODO: Implement UCS


def a_star(self):
print("Algo: A* Search")
# TODO: Implement A*

1 comment on commit 413b354

@vercel
Copy link

@vercel vercel bot commented on 413b354 Oct 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.