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
Copy file name to clipboardExpand all lines: docs/Teaching/Algorithms and Data Structures/CS-2420(Summer)/Mid Term Study Guide.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,17 @@
14
14
15
15
## Searches
16
16
17
+
How many searches to find something?
18
+
Steps involved in the algorithm
19
+
Best case runtime for a search
20
+
21
+
- Linear Search
22
+
- Binary Search
23
+
17
24
## Sorts
18
25
19
26
### Insertion Sort
20
-
- swaps (how many comparisons in worst case? tricky question. how do we calculate the number of swaps -> (n-1) * n/2 or the sum of all possible swaps for a given iteration) 3.4.3
27
+
-num swaps (how many comparisons in worst case? tricky question. how do we calculate the number of swaps -> (n-1) * n/2 or the sum of all possible swaps for a given iteration) visit section 3.4.3
0 commit comments