Data Structure and Algorithm (DSA) contributions. Original git found on https://github.com/MakeContributions/DSA/tree/main
 
 
 
 
 
 
Go to file
Francesco Franco 03b8b7e6b8
added Disjkstra's shortest path algorithm
Please pull these things in some time this year. Thank you very much.
2023-05-27 13:08:03 +02:00
.github chore(codespell): upgrade Github action (#1040) 2022-10-15 20:51:58 -04:00
algorithms Adde bucket sort and pigeonhole sort 2023-04-21 06:31:46 +02:00
docs docs(en): enhancement the linear search (#1096) 2022-12-14 14:40:30 -04:00
.gitignore docs: add more ignore on gitignore 2022-03-10 15:49:40 -04:00
CODE_OF_CONDUCT.md docs: create CODE_OF_CONDUCT.md 2020-12-23 10:20:19 -04:00
CONTRIBUTING.md docs: fix grammar and punctuation errors (#1087) 2022-11-30 08:56:18 -04:00
Dijsktra_shortest_path.py added Disjkstra's shortest path algorithm 2023-05-27 13:08:03 +02:00
Fast_Fourier_Transform.py add FFT algorithm to be merged 2023-05-16 15:49:00 +02:00
LICENSE docs(license): add company name on copyright 2020-12-23 10:23:51 -04:00
Prims_algorithm.py Add Prim's MST algorithm 2023-05-24 14:10:08 +02:00
README.md docs: fix grammar and punctuation errors (#1087) 2022-11-30 08:56:18 -04:00
bingo_sort.py add Bingo sort to pull request. 2023-05-17 14:31:25 +02:00
boyer_moore.py Boyer Moore algorithm added to PR 2023-05-10 17:52:59 +02:00
boyer_moore_full.py Add files via upload 2023-05-15 12:58:23 +02:00
bucket_sort.py Add bucket sort in Python 2023-04-19 09:35:38 +02:00
fsa_pattern.py Add files via upload 2023-05-09 16:57:35 +02:00
huffman.py Add Huffman coding algorithm 2023-05-18 16:06:31 +02:00
interpolation_iter.py add two files to pull request 2023-05-11 16:40:29 +02:00
interpolation_recurse.py add two files to pull request 2023-05-11 16:40:29 +02:00
package-lock.json [Enhancement] Add Eslint + Prttier for JavaScript project (#217) 2021-04-16 14:38:23 -04:00
rabin_karp.py added Rabin-Karp pattern mathinc algorithm 2023-05-06 16:59:00 +02:00
shell_sort.py Added shell sort 2023-04-24 16:26:24 +02:00
z_algoritm.py added Z algoritm to PR 2023-05-07 16:29:12 +02:00

README.md

.NET C++ Go Node.js CI Python codespell CodeQL Discord

Data Structures and Algorithm

Data structure and Algorithm (DSA)

Explanations

Contribution Guidelines

1. Contribution Specifications

The problem being contributed must either be a simple file (Eg. kruskal-algorithm.cpp, linear-search.java) or a more complex directory (palindrome/). This is a unit problem.

The directory tree has the following convention of algorithms/{language}/{category}/{problem}, where {language} represents the language code of the problem (Eg. CPlusPlus for C++, CSharp for C# etc.), {category} is the topic or category of the problem being contributed (Eg. strings, sorting, linked-lists etc.), and {problem} is a conforming name to the problem (Eg. linear-search.cpp, palindrome, queue-linked-list.cpp etc.)

A unit problem must conform to the following specifications:

  • The name should be in lowercase. (Eg. palindrome/, binary-search.cpp etc.).
  • Each word must be separated by a dash or a hyphen (-).

If you have a problem that belongs to a new topic or category than one which are present:

  1. Create a new folder and an index for it inside (a readme, README.md file).
  2. To each new index file, write the readme with your problem in it (Markdown Documentation).
  3. The folder name can also only contain lowercase characters and dashes or hyphens (-) (Eg. strings sorting etc.)

Simple (File) Contributions

The file should conform to the problem specification, and the extension (Eg. linear-search.java, kruskal-algorithm.cpp, count-inversions.js etc.)

Project/Folder-based Contributions

The project and folder-based contributions have a bit more stricter contribution specifications.

The folder should conform to the problem specification, along with the following specifications

Folder Structure

problem-name\
| - .gitignore
| - README.md
| - Makefile       # or the specific specification/requirements/configuration file
| - src\
    | - main.ext

README.md Specification / Template

# <Title of the Problem>

< description of the problem >

## Prerequisites

- prerequisite library or package
- [prerequisite library](https://www.example.com/link-to-official-library)

## Instructions

- instructions to run the project
- < Simple and reproducible commands to execute the project >
  ```bash
   make # or 'cargo run', or 'dotnet run' or 'mvn exec:java' etc.
  ```

## Test Cases & Output < if exists>

< If you can provide test cases, describe it here, else remove this section >

.gitignore File

# add all output files and build files to be excluded from git tracking
main     # executable file also must have the project name
target/  # the build file, for example for rust

Build File / Specification File / Configuration File

It can be any of the following ones

  • C/C++: Makefile
  • Python: requirements.txt
  • JavaScript: package.json and package-lock.json
  • Rust: Cargo.toml and Cargo.lock
  • Go: go.mod

Source Code File

The source code files should either be in src/ folder (Eg. src/main.cpp or src/main.js) or the root folder (Eg. palindrome.go or App.java) where ext is the file extension for the specific programming language.

Again, the source codes must conform to a valid file structure convention that the programming language enforces.

2. Naming Convention

The programming should keep the naming convention rule of each programming language.

Other topic

Reviewers

Programming Language Users
C or C++ @Arsenic-ATG, @UG-SEP, @aayushjain7, @Ashborn-SM, @Ashad001
Java @TawfikYasser, @aayushjain7, @mohitchakraverty
C# @ming-tsai, @Waqar-107
Go @ayo-ajayi
Python @Arsenic-ATG, @sridhar-5
JavaScript @ming-tsai

Contributors

Open Graph

License

MIT