Source code for Sorting Algorithms
(2022-05-25 09:45)
62
()
What is an Algorithm?
In computer programming terms, an algorithm is a set of well-defined instructions to solve a particular problem. It takes a set of input and produces a desired output. For example,
An algorithm to add two numbers:
- Take two number inputs
- Add numbers using the + operator
- Display the result
1/ Sorting and Searching Algorithms
- Bubble sort
- Selection sort
- Insertion sort
- Merge sort
- Quick sort
- Counting sort
- Radix sort
- Bucket sort
- Heap sort
- Shell sort
- Linear sort
- Binary sort
Discover them here - https://www.programiz.com/dsa/bubble-sort
2/ Greedy Algorithm
- Greedy Algorithm
- Ford-Fulkerson Algorithm
- Dijkstra's Algorithm
- Kruskal's Algorithm
- Prim's Algorithm
- Huffman Coding
Discover now at - Greedy Algorithm (programiz.com)
3/ Dynamic Programming
- Dynamic Programming
- Floyd-Warshall Algorithm
- Longest Common Subsequence
Discover more at Longest Common Subsequence (programiz.com)
4/ Other Algorithms
- Backtracking Algorithm
- Rabin-Karp Algorithm
Learn more at - Rabin-Karp Algorithm (programiz.com)
5/ DFS - Depth First Search
Link: Depth First Search (DFS) Algorithm (programiz.com)
6/ BFS - Depth First Search
Link: BFS Graph Algorithm(With code in C, C++, Java and Python) (programiz.com)
References
Nguồn: programiz.com