You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have implemented the visualisation of two sorts and two graph traversals.
10
+
11
+
## Sorting algorithms
12
+
13
+
I have implemented the visualisation of the insertion sort and merge sort algorithms. I have stored snapshots of every step of the sort so users can go through all the steps fast with the arrow keys or step by step with the mouse 1 and 2 buttons.
14
+
15
+
## Graph builder
16
+
17
+
I implemented a graph builder where the user can place nodes and edges and thereafter run a DFS or BFS on that graph.
18
+
19
+
# Installation
20
+
21
+
22
+
23
+
# Code structure
24
+
25
+
The main menu runs in main.cpp.
26
+
27
+
## Sorting algorithms
28
+
The sorting window is run by a function in the sortingAlgorithms/sortingVisualiser.cpp, the sorting algorithms which create the snapshots are in the same folder. When the user presses one of the sorting buttons in the main menu the sorting algorithm is run, and the list of snapshots sent back to be displayed.
29
+
30
+
## Graph builder
31
+
The graph builder window is run by a function in the GraphBuilding/runGraphBuilder.cpp, the DFS and BFS algorithms are in traversal.cpp in the same folder. When the user creates a graph the first node created is the startpoint, this can only be changed by clearing the graph and making a new one. The nodes save their neighbours in an adjacency list which is used in the searching algorithms.
32
+
33
+
# More information
34
+
35
+
More of the development process can be found on my [portfolio](https://arthurjerlstrom.wixsite.com/arthurjerlstrom/cpp).
0 commit comments