Bubble Sort
Algorithm: Bubble Sort 1. Start 2. Repeat until no swaps occur 3. Compare adjacent elements 4. If left element is greater than right element, swap them 5. Move to the next pair 6. End when list is sorted
Selection Sort
Algorithm: Selection Sort 1. Start 2. Set the first element as minimum 3. Compare minimum with remaining elements 4. Update minimum if smaller element is found 5. Swap minimum with first element 6. Repeat for remaining list 7. Stop
Insertion Sort
Algorithm: Insertion Sort 1. Start 2. Take the second element 3. Compare it with elements before it 4. Shift larger elements one position to the right 5. Insert element at correct position 6. Repeat for all elements 7. Stop
Linear Search
Algorithm: Linear Search 1. Start 2. Take target value 3. Compare target with each element 4. If match is found, return position 5. If end is reached, report not found 6. Stop
Binary Search
Algorithm: Binary Search 1. Start 2. Set low and high positions 3. Find middle element 4. If middle equals target, return position 5. If target is smaller, search left half 6. If target is larger, search right half 7. Repeat until found or range is empty 8. Stop
Merge Sort
Algorithm: Merge Sort 1. Start 2. Divide the list into two halves 3. Recursively sort the left half 4. Recursively sort the right half 5. Merge the two sorted halves 6. Stop
Quick Sort
Algorithm: Quick Sort 1. Start 2. Choose a pivot element 3. Partition elements smaller than pivot to the left 4. Partition elements greater than pivot to the right 5. Recursively apply steps to both sides 6. Stop
Depth First Search (DFS)
Algorithm: Depth First Search 1. Start 2. Select a starting node 3. Visit the node and mark it as visited 4. Visit an unvisited adjacent node 5. Repeat until no unvisited nodes remain 6. Stop
Breadth First Search (BFS)
Algorithm: Breadth First Search 1. Start 2. Select a starting node 3. Visit the node and enqueue it 4. Visit all adjacent unvisited nodes 5. Dequeue and repeat until queue is empty 6. Stop
Fibonacci Sequence
Algorithm: Fibonacci Sequence 1. Start 2. Set first number to 0 and second number to 1 3. Add the two previous numbers 4. Store the result 5. Repeat until sequence is complete 6. Stop