Skip to content

Commit c03b0ff

Browse files
committed
Merge pull request #2 from praisetompane/refactor_consistent_naming
refactor: consistent naming
2 parents 3cc402a + aec3985 commit c03b0ff

33 files changed

Lines changed: 208 additions & 211 deletions

.DS_Store

-8 KB
Binary file not shown.

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "data_structures",
2+
"name": "algorithms_and_data_structures",
33
"image": "mcr.microsoft.com/vscode/devcontainers/cpp",
44
"customizations": {
55
"vscode": {
@@ -15,6 +15,6 @@
1515
"settings": {}
1616
}
1717
},
18-
"workspaceMount": "source=${localWorkspaceFolder},target=/data_structures,type=bind,consistency=delegated",
19-
"workspaceFolder": "/data_structures"
18+
"workspaceMount": "source=${localWorkspaceFolder},target=/algorithms_and_data_structures,type=bind,consistency=delegated",
19+
"workspaceFolder": "/algorithms_and_data_structures"
2020
}
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: data_structures
1+
name: algorithms_and_data_structures
22

33
on:
44
push:
@@ -13,16 +13,16 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- name: build_memory_allocator
1515
run: |
16-
make -C memory_cell/
17-
- name: build_datatype
16+
make -C src/memory_cell/
17+
- name: build_data_type
1818
run: |
19-
make -C datatype/
19+
make -C src/data_type/
2020
- name: build_array
2121
run: |
22-
make -C array/
23-
- name: build_linkedlist
22+
make -C src/array/
23+
- name: build_linked_list
2424
run: |
25-
make -C linkedlist/
25+
make -C src/linked_list/
2626
2727
test:
2828
runs-on: ubuntu-latest
@@ -33,19 +33,19 @@ jobs:
3333
run: mkdir -p lib/
3434
- name: test_memory_allocator
3535
run: |
36-
make -C memory_cell/ test-program
36+
make -C src/memory_cell/ test_program
3737
echo "Running tests"
38-
memory_cell/test-program
39-
- name: test_datatype
38+
src/memory_cell/test_program
39+
- name: test_data_type
4040
run: |
4141
echo "MISSING TESTS!!!"
4242
- name: test_array
4343
run: |
44-
make -C array/ test-program
44+
make -C src/array/ test_program
4545
echo "Running tests"
46-
array/test-program
47-
- name: test_linkedlist
46+
src/array/test_program
47+
- name: test_linked_list
4848
run: |
49-
make -C linkedlist/ test-program
49+
make -C src/linked_list/ test_program
5050
echo "Running tests"
51-
linkedlist/test-program
51+
src/linked_list/test_program

.gitignore

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,17 @@ modules.order
5050
Module.symvers
5151
Mkfile.old
5252
dkms.conf
53-
<<<<<<< HEAD
54-
=======
5553

5654

5755
lib/
5856

59-
test-program
60-
<<<<<<< HEAD
61-
>>>>>>> 7cec222 (feat: add dev containers)
62-
=======
57+
test_program
6358
.DS_Store
6459
.vscode
65-
>>>>>>> ac3ad98 (docs: clean up)
60+
accreditation/
61+
ecosystem/
62+
scratch_pad/
63+
journal/
64+
applications/
65+
66+
.DS_Store

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python 3.13.2

Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
build:
22
mkdir -p lib/
3-
make -C memory_cell/
4-
make -C datatype/
5-
make -C array/
6-
make -C linkedlist/
3+
make -C src/memory_cell/
4+
make -C src/data_type/
5+
make -C src/array/
6+
make -C src/linked_list/
77

88
test:
99
mkdir -p lib/
10-
make -C memory_cell/ test-program
11-
memory_cell/test-program
10+
make -C src/memory_cell/ test_program
11+
src/memory_cell/test_program
1212

13-
make -C array/ test-program
14-
array/test-program
13+
make -C src/array/ test_program
14+
src/array/test_program
1515

16-
make -C linkedlist/ test-program
17-
linkedlist/test-program
16+
make -C src/linked_list/ test_program
17+
src/linked_list/test_program
1818

1919
install: build
2020
mkdir -p /usr/local/algorithms_and_data_structures
2121
cp lib/* /usr/local/algorithms_and_data_structures
22-
cp **/*.h /usr/local/algorithms_and_data_structures
22+
cp src/**/*.h /usr/local/algorithms_and_data_structures
2323

2424
uninstall:
2525
rm -R /usr/local/algorithms_and_data_structures

README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
# data_structures
2-
![build status](https://github.com/praisetompane/data_structures/actions/workflows/data_structures.yaml/badge.svg)
1+
# algorithms_and_data_structures
2+
![build status](https://github.com/praisetompane/algorithms_and_data_structures/actions/workflows/algorithms_and_data_structures.yaml/badge.svg)
33

44
## Objectives
5-
- Reimplementation of foundational data structures at a lower level of the stack.
6-
- Educational project to aquire a deeper understanding of these constructs.
5+
- Re-implement foundational data structures and algorithms at a lower level of the stack for educational purposes.
76

8-
## [Theory](https://github.com/praisetompane/computation_and_information/tree/main/0_theory_of_computation/4_design_and_analysis_of_algorithms/0_data_structures_design_and_analysis)
97

108
## Project Structure
11-
- docs: project documentation lives in here.
12-
- each data structure is an independent module.
13-
- example:
14-
- [array](./array/array.h)
15-
- [linkedlist](./linkedlist/linkedlist.h)
16-
- ...
9+
- docs: Project documentation lives in here.
10+
- src: Each data structure is an independent module.
11+
12+
## [Theory](https://github.com/praisetompane/computation_and_information/tree/main/0_theory_of_computation/4_design_and_analysis_of_algorithms/0_data_structures_design_and_analysis)
1713

1814
## Dependencies
1915
- [Docker](https://docs.docker.com/get-started/)
@@ -27,7 +23,7 @@
2723

2824
#### Clone Repository
2925
```shell
30-
git clone git@github.com:praisetompane/data_structures.git
26+
git clone git@github.com:praisetompane/algorithms_and_data_structures.git
3127
```
3228

3329
#### Build
@@ -40,12 +36,12 @@ make build
4036
make test
4137
```
4238

43-
#### Execute Installation Script
39+
#### Install
4440
```
4541
sudo make install
4642
```
4743

48-
## Uninstall
44+
#### Uninstall
4945
```
5046
sudo make uninstall
5147
```

array/Makefile

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

datatype/Makefile

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

linkedlist/Makefile

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

0 commit comments

Comments
 (0)