Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abhraneel2004/algorithm_4thsem_lab
This is a repository that contains the Codes which are done in DAA Laboratory of 4th Semester CSE1 2024 in Academy Of Technology.
https://github.com/abhraneel2004/algorithm_4thsem_lab
algorithms algorithms-and-data-structures data-structures
Last synced: about 2 months ago
JSON representation
This is a repository that contains the Codes which are done in DAA Laboratory of 4th Semester CSE1 2024 in Academy Of Technology.
- Host: GitHub
- URL: https://github.com/abhraneel2004/algorithm_4thsem_lab
- Owner: abhraneel2004
- Created: 2024-03-04T19:23:28.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-06-01T16:34:29.000Z (7 months ago)
- Last Synced: 2024-06-01T18:57:30.215Z (7 months ago)
- Topics: algorithms, algorithms-and-data-structures, data-structures
- Language: C
- Homepage:
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Design and Analysis of Algorithms in C
Welcome to the Design and Analysis of Algorithms repository! This repository contains the algorithms to solve different problems in C and C++. Whether you're a beginner looking to learn or an experienced developer seeking reference implementations, you've come to the right place.
Installation and Setup
### 1. MinGW g++ Compiler
Make sure you have [MinGW](https://mingw-w64.org/doku.php) installed. You can install it using the following commands:
```bash
# Update package list
pacman -Syu# Install MinGW
pacman -S mingw-w64-x86_64-gcc
```### 2. VS Code
Download and install [Visual Studio Code](https://code.visualstudio.com/). This repository is configured with a `.vscode` folder containing useful settings for your coding environment.
Running the Code
Navigate to the specific directory of the code you want to run and use the following commands:
```bash
# Compile C code
gcc filename.c -o output_name# Run C code
./output_name
``````bash
# Compile C++ code
g++ filename.cpp -o output_name# Run C++ code
./output_name
```Contributing
We welcome contributions from the community! To contribute to this project, follow these steps:
1. Fork the repository.
2. Create a new branch for your feature or bug fix: `git checkout -b feature-name`.
3. Make your changes and commit them with a descriptive commit message.
4. Push your changes to your fork: `git push origin feature-name`.
5. Open a pull request to the main repository.Certainly! Below is an explanation of the commands for forking and contributing to a GitHub repository, formatted for easy copying and pasting:
Forking the Repository
1. **Fork the repository:** Click the "Fork" button at the top right of the repository page. This creates a copy of the repository in your GitHub account.
![Forking](gifs/fork.gif)
2. **Clone your forked repository:** Open your terminal and run the following command to clone the repository to your local machine:
```bash
git clone https://github.com/your-username/repository.git
```Replace `your-username` with your GitHub username and `repository` with the name of the repository.
![Clone](gifs/clone.gif)
## Contributing
1. **Create a new branch:** Move into the repository directory and create a new branch for your feature or bug fix:
```bash
cd repository
git checkout -b feature-name
```Replace `feature-name` with a descriptive name for your contribution.
![Branch](gifs/branch.gif)
2. **Make your changes:** Modify the code, add new features, or fix bugs. Once done, stage and commit your changes:
```bash
git add .
git commit -m "Description of changes"
```Replace "Description of changes" with a concise and descriptive commit message.
![Commit](gifs/commit.gif)
3. **Push to your fork:** Push your changes to your forked repository on GitHub:
```bash
git push origin feature-name
```Replace `feature-name` with the name of your branch.
![Push](gifs/push.gif)
4. **Create a Pull Request (PR):** Go to the GitHub page of your forked repository. GitHub will detect the recent push and display a "Compare & pull request" button. Click on it to create a new pull request.
![Pull Request](gifs/pull_request.gif)
Add a title and description to your pull request, then click "Create Pull Request."
![Create Pull Request](gifs/create_pr.gif)
Points to remember:
- Add only code file
- Do not add .exe or .out file![Open Source GIF](gifs/open_source.gif)
Acknowledgements
We appreciate the open-source community and contributors for making this project better every day. Special thanks to [GitHub](https://github.com/) for providing an excellent platform for collaboration.
---
**Note:** Replace `filename` and `output_name` with the appropriate names for your code file and desired output executable.