Skip to content

Commit 3494f52

Browse files
committed
Merge remote-tracking branch 'upstream/main' into branch-bfs
2 parents 8011be5 + 79af08a commit 3494f52

File tree

34 files changed

+769
-244
lines changed

34 files changed

+769
-244
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# data-structures-and-algorithms
22
This repository contains implementation of some of the fundamental data structures and algorithms in Computer Science. It is primarily used as a teaching resource and is currently being developed by ex-2040s students.
33

4+
**Also**, the structure of the codebase is optimised for IntelliJ IDEA since implementation are mostly written in Java.
5+
6+
**Note**: This is still being developed! Those below with links mean that they are complete (alongside testing). We project to complete CS2040s course content by November and along the way, add interesting algorithms/problems. If you wish to contribute, do drop me an email at [email protected].
7+
48
## Full List of Implementation (in alphabetical order):
59
## Structures
610
- Adelson-Velskii and Landis (AVL) Binary Search Tree
@@ -14,21 +18,25 @@ This repository contains implementation of some of the fundamental data structur
1418
- Minimum Spanning Tree
1519
- Queue
1620
- Segment Tree
17-
* Improved version does not require O(2^n) space here
21+
* Array implementation
22+
* TreeNode implementation
1823
- Stack
1924
- Trie
2025

2126

2227
## Algorithms
2328
- [Counting Sort](src/algorithms/sorting/countingSort/)
24-
- Cyclic Sort
29+
- [Cyclic Sort](src/algorithms/sorting/cyclicSort/)
30+
* [Special case](src/algorithms/sorting/cyclicSort/simple) of O(n) time complexity
31+
* [Generalized case](src/algorithms/sorting/cyclicSort/generalised) of O(n^2) time complexity
32+
- [Knuth-Morris-Pratt](src/algorithms/patternFinding/) aka KMP algorithm
2533
- [Matrix Operations](others/matrix_operations/)
2634
- Merge Sort
2735
* Recursive
2836
* Bottom-up iterative
29-
- Radix Sort
3037
- Quick Sort
3138
* 3-way Partitioning
39+
- Radix Sort
3240

3341

3442
## Short-cut to CS2040S Material

assets/InsertionSort.png

32.3 KB
Loading

out/production/scripts/README.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

out/production/scripts/scripts.iml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<sourceFolder url="file://$MODULE_DIR$/algorithms" isTestSource="false" />
99
<sourceFolder url="file://$MODULE_DIR$/algorithms/sorting" isTestSource="false" />
1010
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
11+
<sourceFolder url="file://$MODULE_DIR$/algorithms/patternFinding" isTestSource="false" />
12+
<excludePattern pattern="*README.md" />
1113
</content>
1214
<orderEntry type="inheritedJdk" />
1315
<orderEntry type="sourceFolder" forTests="false" />

out/production/src/src/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

out/production/src/src/algorithms/patternFinding/README.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

out/production/src/src/algorithms/sorting/bubbleSort/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

out/production/src/src/algorithms/sorting/selectionSort/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

out/production/src/src/dataStructures/Heap/README.md

Lines changed: 0 additions & 48 deletions
This file was deleted.

out/production/src/src/src.iml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<exclude-output />
66
<content url="file://$MODULE_DIR$">
77
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" packagePrefix="src" />
8+
<excludePattern pattern="*README.md" />
89
</content>
910
<orderEntry type="inheritedJdk" />
1011
<orderEntry type="sourceFolder" forTests="false" />

0 commit comments

Comments
 (0)