-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path12-16-18-class-notes
More file actions
67 lines (46 loc) · 938 Bytes
/
12-16-18-class-notes
File metadata and controls
67 lines (46 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
12-16-18 class notes
Array
ArrayList, LinkedList: Linear data structure
Map, HashMap….
212- 546-7689
212——>
254
546
Tree: non linear Data structure
Graph: non linear Data structure
Swap:
Sorting:
Selection Sort
Insertion Sort
Bubble Sort
Merge Sort
Heap Sort
Bucket Sort
Quick Sort
Selection Sort: 9, 7, 8, 6, 4, 1, 5
9, 7, 8, 6, 4, 1, 5
1 7 8 6. 4 9 5
1 4. 8. 6. 7. 9. 5
1 4 5 6. 7. 9. 8
1. 4. 5. 6. 7. 9. 8
1. 4 5 6. 7 9. 8
1. 4. 5 6. 7. 8. 9
1. 4. 5. 6. 7. 8. 9
Insertion Sort: 9, 7, 8, 6, 4, 1, 5
9, 7, 8, 6, 4, 1, 5
7. 9. 8. 6 4. 1. 5
7 8 9 6. 4. 1. 5
6. 7. 8 9. 4. 1. 5
4. 6 7. 8. 9. 1. 5
1. 4. 6 7 8. 9 5
1. 4. 5. 6. 7. 8. 9
Bubble Sort: 9, 7, 8, 6, 4, 1, 5. O(nXn)
9, 7, 8, 6, 4, 1, 5
7 8. 6. 4. 1. 5. 9
7. 6. 4. 1. 5. 8. 9
6. 4. 1. 5. 7. 8. 9
4 1 5 6 7 8 9
1 4 5 6 7 8 9
Merge Sort: 9, 7, 8, 6, 4, 1, 5
9, 7, 8, 6, 4, 1, 5