Implementation of sort algorithms:
-
- Selection sort
-
- Insertion sort
-
- Merge sort
-
- Quicksort
-
- Heap Sort
make all
./apa-first_job <method_number> < <input_file_name>
Given the implementations of work ordering 01 and the input sets provided for this exercise:
Select a colleague who has implemented sorting algorithms using a different programming language than yours. For each input subset, run all algorithms and calculate the average time each algorithm spends for each size present in the subset.
The Javascript code can be found in the following git repository: clique aqui
The code in C ++ can be found in the following git repository: clique aqui
make all
scriptBuildAll.sh
Implementation of sort algorithms:
-
- Counting sort
-
- Bucket sort
-
- Radix sort
make all
./apa-first_job <method_number> < <input_file_name>
Verify that the input contains non-numeric characters
- If yes apply Radix Sort Make sure the input size is larger than the free main memory
- If yes, apply Merge Sort Make sure the input size is less than 22
- If yes apply Insertion Sort For any other case
- Apply Quick Sort
make all
./apa-first_job < <input_file_name>
n M
pi
vi
subtitle:
n: |O|
M : Backpack capacity
pi : Vector of object weights
vi : Vector of object values
. E.g.:
4 30
13 23 17 19
23 29 27 25
make all
./apa-mochila < mochila01.txt
Developers:
- Abraão Állysson dos Santos Honório
- Thiago Henrique Menêses Bezerra GitHub
The greedy solution of PRIM to the Problem of the Minimum Scattering Tree
n
𝑤𝑖𝑗
subtitle:
n: |V|
𝑤𝑖𝑗 : Edge weights function (Adjacency Matrix)
. E.g.:
4
0 23 17 19
14 0 22 20
23 15 0 25
13 19 21 0
make all
./apa-PRIM < dij10.txt
Dijkstra's greedy solution to the Minimum Path problem. Consider for all instances the origin vertex 𝑢 = 0 and 𝑣 = 𝑛-1
n
𝑤𝑖𝑗
subtitle:
n: |V|
𝑤𝑖𝑗 : Edge weights function
. E.g.:
4
0 23 17 19
14 0 22 20
23 15 0 25
13 19 21 0
make all
./apa-Dijkstra < dij10.txt
Developers:
- Abraão Állysson dos Santos Honório
- Thiago Henrique Menêses Bezerra GitHub
PS: This repository is intended for the works of the discipline of analysis and algorithm projects of the Federal University of Paraiba - UFPB
Contact me on Linkedin, send an email to abraaohonoriopb@gmail.com, or create a pull request in this project.
MIT