Where have you seen ๐——๐—ฎ๐˜๐—ฎ ๐—ฆ๐˜๐—ฟ๐˜‚๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ๐˜€ in ๐—ฟ๐—ฒ๐—ฎ๐—น ๐˜๐—ถ๐—บ๐—ฒ ๐—”๐—ฝ๐—ฝ๐—น๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป๐˜€ ?

Awais khan
2 min readApr 3, 2022

--

๐’๐“๐€๐‚๐Š :

1) UNDO option

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

3) Recursion (in built stack)

๐๐”๐„๐”๐„ :

1) Your browser deletes the history past one month.

2) If you delete a picture in your phone, it will be the โ€œrecently deleteโ€ folder which says โ€œthe images will be deleted permanently after one weekโ€.
Here all the images are stored in the queue so itโ€™s easier to pop from the rear based on the image deletion date.

3) Waiting list: during online registrations, sometimes you Il be put into waiting list. basically, all the requests will be stored in the queue.

๐‹๐ˆ๐๐Š๐„๐ƒ ๐‹๐ˆ๐’๐“ :

1) Browserโ€™s Next and Previous Button: a linked list of URLs

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

3) In Ludo game, it had passed the turn to each player in a circular fashion (circular linked list).

๐“๐‘๐„๐„๐’ :

1) File system: Folders and subfolders (N-ary tree).

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

3) Auto-suggestion when you google (Trie)

๐†๐‘๐€๐๐‡๐’ :

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.

4) In Facebook, users are considered to be the vertices and if they are friends then there is an edge running between them. Facebookโ€™s Friend suggestion algorithm uses graph theory. Facebook is an example of an undirected graph.

๐™ƒ๐™–๐™ฅ๐™ฅ๐™ฎ ๐™ก๐™š๐™–๐™ง๐™ฃ๐™ž๐™ฃ๐™œ ๐™œ๐™ช๐™ฎ๐™จ :)

--

--

Awais khan
Awais khan

Written by Awais khan

Full Stack Engineer at secomind.ai | MetaVerse | Python | Django | Nodejs |๐Ÿ’ซ DevSecOps | Solidity | Solana| ๐Ÿ’ซ Blockchain| Decentralized Apps| Smart Contracts

No responses yet