Swapna Kumar Panda ๎จ€ Profile picture
Feb 17 โ€ข 12 tweets โ€ข 3 min read
๐Ÿ’Ž 7 Types of Algorithms

โฎ‘ Brute Force
โฎ‘ Recursive
โฎ‘ Divide & Conquer
โฎ‘ Greedy
โฎ‘ Dynamic
โฎ‘ Backtracking
โฎ‘ Randomised

โ‡ฉ
โžŠ 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.
โž‹ Recursive Algorithm

โฌ” The problem is divided into subproblems and, the subproblems are into further subproblems.

โฌ• Recursion simply means calling itself to solve its subproblems.

Example: Factorial(n) = n * Factorial(n-1)
โžŒ 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: Quick Sort, Merge Sort etc.
โž 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.
โžŽ 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.
โž 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.
โž 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.
๐Ÿ’ญ Feedbacks

โฌ˜ As you could see, this is just an introductory to algorithm types. Do you find these information useful?

โฌ™ Do you see any scope of improvement in the presentation?

Your feedbacks matter a lot.
๐Ÿš Upcoming Space

๐Ÿ“… 19-Feb-2022 (Saturday)
โฐ 07.30PM IST (02.00PM GMT)

โฌ˜ Are you new to Programming? Are you confused about

โ How to start?
โ Where to start?
โ What to start?

Join me in this space. Share in your group.

twitter.com/i/spaces/1YpJkโ€ฆ
๐Ÿ“‹ Blog

โฌ˜ Have you read my blog published in Hashnode? If not, you can read it using below link.

โฌ™ Give your feedbacks and, react on it as well.

swapnakpanda.hashnode.dev/25-utility-codโ€ฆ
End of ๐Ÿงต

Are you interested in such tutorial type threads? I am sharing those regularly on HTML, CSS, JavaScript, React, DSA and Database.

To never miss any, Follow me โœ…

โ€ข โ€ข โ€ข

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

Feb 19
Data Structures you should be knowing as a Web Developer

โ‡ฉ
Data structures are,

โžŠ Array
โž‹ Set
โžŒ Stack
โž Queue
โžŽ Hash Table
โž Tree
โž Graph
We will be discussing about

โ Definition of a Data Structure
โ Use Case(s) for a Data Structure
โ Operations you should be knowing
Read 20 tweets
Feb 18
40 resources to learn DSA

๐Ÿ“š Books
๐ŸŽฌ YouTube Channels
๐Ÿ–ผ Online Courses
๐Ÿ“ฐ Blogs
โœ๏ธ Practice

โ‡ฉ
๐Ÿ“š Books

โžŠ Grokking Algorithms
โœ๏ธ Aditya Bhargava

โž‹ Introduction to Algorithms
โœ๏ธ Thomas H. Cormen โŠ• Charles E. Leiserson โŠ• Ronald L. Rivest โŠ• Clifford Stein

โžŒ Introduction to Algorithms
โœ๏ธ Udi Manber
โž The Algorithm Design Manual
โœ๏ธ Steven S. Skiena

โžŽ Algorithms
โœ๏ธ Robert Sedgewick โŠ• Kevin Wayne

โž Data Structures and Algorithms Made Easy
โœ๏ธ Narasimha Karumanchi
Read 15 tweets
Feb 16
SQL and NoSQL : Details & Key Differences

BONUS ๐Ÿ’ก: Which one is for you?

โ‡ฉ
โžŠ What is a Database?
โž‹ What is a Relational Database?
โžŒ What is SQL?
โž What is NoSQL?
โžŽ Categories
โž SQL vs NoSQL
โž BONUS: Which one is for you?
โžŠ What is a Database?

โฌ˜ A database is an organised collection of data stored in a computer system (typically a server machine, but can be any machine) so that it can be accessed and managed easily.
Read 23 tweets
Feb 15
Memorise Data Structures in 6 simple steps

โ‡ฉ
โžŠ Linearity
โž‹ Memory Allocation
โžŒ Connectivity
โž Ordering
โžŽ Uniqueness
โž Operations
โžŠ Linearity

โฎ‘ Linear
โฎ‘ Non-linear

โœฉ It says about the traversal path.
Read 9 tweets
Feb 14
๐Ÿ’™ 15000 Friends in [CHIRPBIRDICON]

Do you love what I am sharing daily?

My posts are mostly on,

๐ŸŒ HTML
๐ŸŽจ CSS
๐Ÿ‘ฉโ€๐Ÿ’ป JavaScript
โš›๏ธ React
๐Ÿ›  DSA
๐Ÿ›ข SQL/NoSQL

If you don't want to miss, Follow me โœ…

๐Ÿ“ฃ My first article is published today in Hashnode.
Link ๐Ÿ‘‡
โœ๏ธ 25 Utility Code for your next JavaScript project

โฌ” On this Valentine's day, I am happy to announce that my first article is now published in @hashnode

โฌ• Give it a read and share your feedbacks. I need love and, support of all yours.

swapnakpanda.hashnode.dev/25-utility-codโ€ฆ
๐Ÿš Recent Tweets

I am sharing

๐Ÿ“‹ Interview Questions
๐Ÿ™ Cheat Sheets
๐Ÿงต Tutorial Threads

If you have missed any of my recent posts, here are those.

twitter.com/i/events/14888โ€ฆ
Read 4 tweets
Feb 13
๐ŸŽจ 140 Color Names in HTML - Cheat Sheet

To direct access it in HQ, find the link in next tweet.
.
๐Ÿ™ High Quality Infographics

โฌ˜ I have created a repository in GitHub. This will contain most of the infographics I create in HD Quality.

โฌ– To never miss any, add this repo to your "Watch" list.

โฌ™ To encourage me, give a โญ๏ธ to this repo.

Direct Link:
github.com/swapnakpanda/Iโ€ฆ
โš ๏ธ Repost Notice โš ๏ธ

โฌ˜ I shared this cheat sheet 5 days back where I promised to share the HQ link in DMs.

โฌ– I couldn't keep my promise because Twitter barred me from making too many DMs.

โฌ™ So, here I am sharing the link directly. Hope it will benefit all.
Read 5 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

Don't want to be a Premium member but still want to support us?

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

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

:(