-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinfo.json
More file actions
20 lines (19 loc) · 1.74 KB
/
info.json
File metadata and controls
20 lines (19 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"//info.json": {},
"Sorting": {
"Merge Sort": "<b>Merge Sort (ascending)</b><br>Best Time: <i>O(nlogn)</i><br>Avg. Time: <i>O(nlogn)</i><br>Worst Time: <i>O(nlogn)</i><br>Space: <i>O(n)</i><br>",
"Heap Sort": "<b>Heap Sort (descending)</b><br>Best Time: <i>O(nlogn)</i><br>Avg. Time: <i>O(nlogn)</i><br>Worst Time: <i>O(nlogn)</i><br>Space: <i>O(1)</i><br>"
},
"Graph Search": {
"Depth First": "<b>Depth First Search</b><br>V: <i>Number of vertices</i><br>E: <i>Number of edges</i><br>Worst Time: <i>O(V + E)</i><br>Space: <i>O(V)</i><br>",
"Breadth First": "<b>Breadth First Search</b><br>V: <i>Number of vertices</i><br>E: <i>Number of edges</i><br>Worst Time: <i>O(V + E)</i><br>Space: <i>O(V)</i><br>"
},
"Maze Solving": {
"Dijkstra": "<b>Dijkstra's Search</b><br>Best Time: <i>O()</i><br>Avg. Time: <i>O()</i><br>Worst Time: <i>O()</i><br>Space: <i>O()</i><br>",
"A* Search": "<b>A* Search</b><br>Best Time: <i>O()</i><br>Avg. Time: <i>O()</i><br>Worst Time: <i>O()</i><br>Space: <i>O()</i><br>"
},
"Maze Generation": {
"Dijkstra": "The randomized Kruskal's min spanning tree algorithm is used to generate mazes. A minimum spanning tree (ie. a perfect maze).\n1. Generate all possible edges\n2. Randomly choose 2 edges, if it connects two disjoint trees (ie. paths), join them, else discard it.\n3. Repeat the above until no edges are left.",
"A* Search": "The randomized Kruskal's min spanning tree algorithm is used to generate mazes. A minimum spanning tree (ie. a perfect maze).\n1. Generate all possible edges\n2. Randomly choose 2 edges, if it connects two disjoint trees (ie. paths), join them, else discard it.\n3. Repeat the above until no edges are left."
}
}