Real-life applications of Various Data Structures.

A thread👇
✨ STACK
1) UNDO option

2) Text editor, you push letter by letter to the stack so you erase back.

3) Recursion (in built stack)
✨QUEUE
1) Your browser deletes the history past one month.

2) All the pictures you delete from your phone will be stored in a queue, so that after sometimes front items can be popped out easily (permanently deleted)

3) Waiting list: Registration Requests are put in the queue.
✨LINKED-LIST
1) Browser's Next and Previous Button: a linked list of URLS

2) music player where you can play next or previous song. (Doubly linked list).

3) In ludo game, it had pass the turn to each player in circular fashion (circular linked list).
✨TREES
1) File system: Folders and subfolders (N-ary tree).

2) e-commerce websites : category -> subcategories -> products

3) Auto-suggestion when you google (Trie)
✨GRAPH
1) Uber, Ola cab booking show nearest available cars (BFS)

2) Maven dependencies build order (Topological sorting (DFS))

3) While booking bus/flights, you get a list of available routes.
I hope this thread was helpful. If you liked it make sure you like it and retweet the first tweet so that it can help others too.

Also, follow me
@Nihar_Thummar
About me

I'm Nihar 👋
I am a student and a developer.
I talk about
-🐍Python
-💻Data structures and algorithm
-🚀WEB 3
-🛠️Build in Public
Credit:- Coding mode

• • •

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

Keep Current with Nihar Thummar

Nihar Thummar 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 @Nihar_Thummar

Jan 28
Bit-manipulation is confusing. not anymore!

Learn bitwise operator just by reading this-

A thread👇
✨Introduction
-> Bitwise Operations let you manipulate numbers at bit level. Bitwise operations are faster than regular operations.

There are main 6 bitwise operators:
1)Bitwise AND
2)Bitwise OR
3)Bitwise XOR
4)Bitwise left-shift
5)Bitwise right-shift
6)Bitwise complement
✨Bitwise AND
-> The Bitwise AND tests 2 binary numbers and returns bit values of 1 for positions where both numbers had a one, and a bit value of 0 at every other position.

Symbol- '&' (for C++, Java, Python, JavaScrpit) Image
Read 16 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

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(