A collection of algorithms implemented in C#, organized by category, with an interactive console menu for testing.
AlgorithmsCSharp/
├── Algorithms/
│ ├── Searching/ # Searching algorithms
│ │ ├── BinarySearch.cs
│ │ └── Recursion/ # Recursive searching examples
│ │ └── NestedBoxSearch.cs
│ └── Sorting/ # Sorting algorithms
│ └── SelectionSort.cs
├── Program.cs # Main interactive console program
└── README.md
The project uses a console menu to navigate through algorithms:
1 - Searching
2 - Sorting
0 - Exit
1 - Binary Search
2 - Nested Box Search (Recursive & Iterative)
0 - Back to menu
1 - Selection Sort
0 - Back to menu
Invalid inputs are handled gracefully, prompting the user to choose a valid option.
git clone https://github.com/dev-LBAM/algorithms-csharp.git
cd algorithms-csharp
dotnet run --project algorithmscsharp
3. Import the new algorithm in Program.cs: Use using AlgorithmsCSharp.Algorithms.<YourFolder>;
to import the algorithm.
-
Understand fundamental algorithmic concepts such as time and space complexity.
-
Implement classic algorithms in C#, including:
- Recursion
- Linear and binary search
- Sorting (bubble sort, merge sort, quicksort, etc.)
-
Develop problem-solving skills and logical thinking applied to programming.
-
Understand when and why to use each algorithm, comparing efficiency and applicability.
Lucas Batista de Almeida Moro
https://github.com/dev-LBAM