💙 7 Types of Algorithms

↳ Brute Force
↳ Recursive
↳ Divide & Conquer
↳ Greedy
↳ Dynamic
↳ Backtracking
↳ Randomised

1️⃣ Brute Force Algorithm

✪ It is the most common type of algorithm. Every problem can be solved by brute force approach although generally not most effective.

✪ To design an optimal solution, we need to get a solution first at least and then it may be optimised.
2️⃣ Recursive Algorithm

✪ Recursion simply means calling itself to solve its subproblems.

Example: Factorial(n) = n * Factorial(n-1)
3️⃣ Divide & Conquer Algorithm

✪ It divides the problems into subproblems and then solve each of them.

✪ Then it combines the results to form the solution of the given problems.

Example: Binary Search, Quick Sort, Merge Sort etc.
4️⃣ Greedy Algorithm

✪ In this algorithm, a decision is made that is good at that point without considering the future.

✪ It means some local best is chosen and is considered as the global optimal.

Example: Prim's Algorithm, Job Scheduling Algorithm etc.
5️⃣ Dynamic Algorithm

✪ It remembers the past results and apply it to the future corresponding results.

✪ There are 2 approaches to solve
↳ Bottom-Up Approach
↳ Top-Down Approach

Example: Longest Common Subsequence etc.
6️⃣ Backtracking Algorithm

✪ It starts with one possible option out of many available and try to solve the problem.

✪ If it can't solve the problem, it will backtrack and select some other and try to solve it.

✪ It is a form of recursion.

Example: N-Queens Problem etc.
7️⃣ Randomised Algorithm

✪ In this type of algorithm, decision is taken based on the basis of random numbers.

✪ Probability plays the most significant role in this algorithm.

Example: Randomised Quick Sort etc.
These are some of the most used algorithm types and with this we come to the end of this 🧵

As you could see, it's just an introductory. Each of these algorithm types will be explained in detail in my future blogs.

Details will be provided here soon. Stay Tuned. 👋
To encourage and support me,
♥️ Like the first tween in this 🧵
🔁 RETWEET the first tweet

To never miss any content from me,
✅ Follow @swapnakpanda
🔔 Turn on Notifications

To give feedbacks and suggestions,
💬 Reply

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Swapna Kumar Panda ✨

Swapna Kumar Panda ✨ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @swapnakpanda

28 Nov
~150 Days
>90 Threads
>50 Infographics

✪ DSA
✪ SQL / NoSQL
✪ JavaScript
✪ Python
✪ HTML / CSS
✪ System Design
✪ Cloud Computing

Concepts, Tips, Interview Questions and what not. This is what I am doing for you, all available in Public.

Links 👇. RETWEET for more reach.
Searching an old Tweet is tedious. I have made the job easier for you.

I have created numerous Moments for each Topic. All my tweets/threads can be accessed just like this 🤌

Find links 👇.

Share these with your friends. Let's spread the knowledge for FREE. 🤗🙌
💜 Interview Questions

twitter.com/i/events/14559…
Read 13 tweets
27 Nov
💡 Memorise Data Structures in 6 Steps 🚀

→ Array
↳ 1-Dimensional
↳ Multi Dimensional
→ Linked List
↳ Single
↳ Double
↳ Circular
→ Stack
→ Queue
→ Set
→ Hash Table
→ Tree
↳ Binary Tree
↳ Binary Search Tree
→ Graph

1️⃣ Type

↳ Linear
↳ Non-Linear
2️⃣ Memory Allocation

↳ Contiguous
↳ Non-contiguous
Read 7 tweets
26 Nov
💙 My Twitter Circle 💙

Here is my Twitter family for November. If another layer of circle were allowed, I would have definitely added. 😂

If you find difficulty in finding yourself, check images mentioned below for each layer.
Circle 1️⃣
Circle 2️⃣
Read 7 tweets
26 Nov
☁️ Cloud Service Providers & Free Tiers 🚀

⇥ AWS
⇥ Azure
⇥ Google Cloud
⇥ Oracle Cloud
⇥ IBM Cloud
⇥ Alibaba Cloud
⇥ Heroku
⇥ Others (Netlify, Vercel and Surge)

0️⃣ Introduction

✪ Find how you can host your app/service in cloud with zero cost.

✪ Most of the cloud service providers are allowing to use some of their products/services for free of cost.

Let's explore all these.
1️⃣ AWS

AWS provides more than 100 products. Many of which are

⇨ Always Free
⇨ 12 months Free (with monthly usage limits)
⇨ Free Trials

If you cross usage limit, you need to pay for it.

✪ For more details: https://aws[.]amazon[.]com/free/
Read 11 tweets
25 Nov
💛 CSS Property: border-radius 💛
.
.
↓↓↓↓↓↓↓↓↓↓
Let's learn about "border-radius" through illustrations.

Topics are,

1️⃣ Introduction
2️⃣ How to define?
2️⃣.1️⃣ One/Two/Three/Four Values
2️⃣.2️⃣ Percentage Value
2️⃣.3️⃣ Horizontal and Vertical Radius
3️⃣ Other Related Properties
4️⃣ Shapes using border-radius
5️⃣ Conclusion
1️⃣ Introduction
Read 10 tweets
24 Nov
💙 25 Project Ideas for Web Developers 🚀

⇨ Ideas includes for Colours, Shapes, Emojis, GIFs etc.
⇨ Skills: HTML/CSS, JavaScript, Python (Optional)

These projects can be categorised into

1️⃣ Utility Apps
2️⃣ Color Based
3️⃣ Shapes
4️⃣ Image Related
5️⃣ Drawing
6️⃣ Add-Ons
7️⃣ Authentication and, Authorisation
1️⃣ Utility Apps

P1️⃣ Single Page App
⇥ To start with build a SPA and, make it responsive. It could be a portfolio page or, a product catalog page.

P2️⃣ Landing Page
⇥ Landing pages are very important. Show products/features in carousels. Allow to zoom-in/zoom-out.
Read 18 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Thank you for your support!

Follow Us on Twitter!

:(