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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 installed. You can install it using the following commands:

# Update package list
pacman -Syu

# Install MinGW
pacman -S mingw-w64-x86_64-gcc

2. VS Code

Download and install Visual Studio Code. 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:

# Compile C code
gcc filename.c -o output_name

# Run C code
./output_name
# 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

  2. Clone your forked repository: Open your terminal and run the following command to clone the repository to your local machine:

    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

Contributing

  1. Create a new branch: Move into the repository directory and create a new branch for your feature or bug fix:

    cd repository
    git checkout -b feature-name

    Replace feature-name with a descriptive name for your contribution.

    Branch

  2. Make your changes: Modify the code, add new features, or fix bugs. Once done, stage and commit your changes:

    git add .
    git commit -m "Description of changes"

    Replace "Description of changes" with a concise and descriptive commit message.

    Commit

  3. Push to your fork: Push your changes to your forked repository on GitHub:

    git push origin feature-name

    Replace feature-name with the name of your branch.

    Push

  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

    Add a title and description to your pull request, then click "Create Pull Request."

    Create Pull Request

Points to remember:

  • Add only code file
  • Do not add .exe or .out file

Open Source GIF

Acknowledgements

We appreciate the open-source community and contributors for making this project better every day. Special thanks to GitHub 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.

Coding GIF

About

This is a repository that contains the Codes which are done in DAA Laboratory of 4th Semester CSE1 2024 in Academy Of Technology.


Languages

Language:C 97.7%Language:Python 2.3%