DEV Community

Cover image for Top 6 Algorithms every Programmer should know
Mitchell Mutandah
Mitchell Mutandah

Posted on

2

Top 6 Algorithms every Programmer should know

Sorting Algorithms

  • Bubble sort
  • Merge sort
  • Quick sort
  • Heap sort

Search Algorithms

  • Linear Search
  • Binary Search
  • BFS (Breadth First Search)
  • DFS (Depth First Search) search

Recursion Algorithms

Recursion is a problem-solving technique in which the solution is dependant on solutions to smaller instances of the same problem.
recursion

Divide and Conquer

Divide: The original problem is divided into sub problems
Conquer: Solve each sub problem one at a time, recursively.
Recursively: Put the solutions to the sub problems together to get the solution to the whole problem
conquer

Hashing Algorithms

Hashing is a technique or process that uses a hash function to make keys and values into a hash table.
hash

Dynamic Programming

Dynamic Programming is nothing but recursion with memoization.
It involves calculating and storing values that can be later accessed to solve sub problems that occur again
dynamic

That's it!! #HappyCoding

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (1)

Collapse
 
respect17 profile image
Kudzai Murimi

Thanks a lot!

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs