Skip to content

Tietorakenteet ja Algoritmit - Interactive Algorithms This repository contains a 2022 project for the Tietorakenteet ja algoritmit course, featuring interactive algorithm implementations in C#. It offers a hands-on approach to exploring data structures and algorithms through visualization and practical learning.

Notifications You must be signed in to change notification settings

Wiiifiii/CSharpAlgoWorks

Repository files navigation

SharpAlgorithms

Interactive Algorithms in C#

This repository contains implementations of various algorithms written in C#. It provides an interactive console application where users can test and explore algorithms like:

  • Tree Algorithms:
    • AVL Tree
    • Binary Search Tree
  • Sorting Algorithms:
    • Bubble Sort
    • Selection Sort
    • Insertion Sort
  • String Search Algorithms:
    • Naive String Search
    • Rabin-Karp Algorithm
    • Knuth-Morris-Pratt (KMP) Algorithm
  • Recursive Algorithms:
    • Factorial
    • Fibonacci Series
    • Power Calculation
  • Mathematical Utilities:
    • Palindrome Check (String & Number)
  • Data Structures:
    • Singly Linked List

How to Use

  1. Clone the repository:

    git clone https://github.com/Wiiifiii/SharpAlgorithms.git
    cd SharpAlgorithms
  2. Open the project in Visual Studio.

  3. Build and run the solution.

  4. Interact with the application using the console menu.

Example Algorithms AVL Tree:

Insert and balance a series of numbers. Example: Insert 33, 13, 53, 9, 21, 61. Bubble Sort:

Sort an array of numbers in descending order. Example: Input: 35, 10, 55, 20. Naive String Search:

Search for a pattern in a string. Example: Text: "abcxabcdabcdabcy", Pattern: "abcd". Factorial (Recursion):

Calculate factorial for a number. Example: 5! = 120.

Contributions Feel free to submit issues or pull requests if you'd like to contribute to this project! All contributions are welcome.

License This project is licensed under the MIT License.

MIT License MIT License

Copyright (c) 2024 Wiiifiii

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


About

Tietorakenteet ja Algoritmit - Interactive Algorithms This repository contains a 2022 project for the Tietorakenteet ja algoritmit course, featuring interactive algorithm implementations in C#. It offers a hands-on approach to exploring data structures and algorithms through visualization and practical learning.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages