Real Life use of Data structures and Algorithms

7 July, 2022
156 read  路  1 Hearts

A Small guide on Real-time use and applications of Data structures and Algorithms.

饾悞饾惌饾悮饾悳饾悿:

1) Undo and Redo choice

2) Text editor: To go back, push each letter to the stack one at a time.

3) Recursion(inbuilt stack)

饾悡饾惈饾悶饾悶饾惉:

1) Folders and subfolders in the file system (N-ary tree).

2) Online stores: categories, subcategories, and items

3) Google's automatic suggestion feature (Trie)

饾悙饾惍饾悶饾惍饾悶:

1) Your browser deletes the history past one month.

2) If you delete a picture from your phone, it will be placed in the "recently deleted" folder, which states that "the images will be completely erased after one week." All photographs are placed in the queue here, making it easy to pop from the back based on the image deletion date.

3) You may occasionally be added to the waiting list during online registration. In essence, the queue will hold all of the requests.

饾悊饾惈饾悮饾惄饾悺饾惉:

1) When booking an Uber or Ola cab, display the closest vehicles (BFS)

2) Topological sorting (DFS) is the build order for Maven dependencies.

3) You are given a list of available routes when you purchase a bus or flight.

4) In Facebook, users are referred to as vertices, and if two users are friends, an edge connects them. Graph theory is used in Facebook's friend suggestion algorithm. An example of an undirected graph is Facebook.

饾悑饾悽饾惂饾悿饾悶饾悵 饾惀饾悽饾惉饾惌:

1) Browser's Next and Previous Button uses a linked list of URLs

2) A music player that allows you to play the previous or next tune. (Doubly linked list).

3) In the game of Ludo, the chance must be passed around in a circular motion to each player (circular linked list).

Programming DSA programming DSA Applications DSA real life use coding competitivecoding coding interview
Comments  路  0
You need to be Logged in to Comment. Login

More from @algosource

Recommended

Need Help? 路  About
Terms and Conditions 路  Contact 路  Privacy

漏 2021 ayedot. All Rights Reserved.

;