-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
FA22/intro-ai-series/workshop-1-ai-search-algorithms/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/__pycache__ |
11 changes: 11 additions & 0 deletions
11
FA22/intro-ai-series/workshop-1-ai-search-algorithms/src/main.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
26
FA22/intro-ai-series/workshop-1-ai-search-algorithms/src/search.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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* |
413b354
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
acm-ai-workshops – ./
acm-ai-workshops-git-main-acmucsd.vercel.app
acm-ai-workshops-acmucsd.vercel.app
acm-ai-workshops.vercel.app
wiki.ai.acmucsd.com