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

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (1)

Collapse
 
respect17 profile image
Kudzai Murimi

Thanks a lot!

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay