Real-world examples of the Data structure "Graph"👇

A thread🧵
🔸Google maps navigation system
The navigation system is based on the algorithm to calculate the shortest path between two vertices.
🔸Social Graphs
Social graphs draw edges between you and the people, places, and things you interact with online.
🔸Facebook Friend Suggestion Algorithm
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.
🔸World Wide Web
In World Wide Web, web pages are considered to be the vertices. There is an edge from page u to page v if there is a link of page v on page u. This is an example of a Directed graph.
🔸Resource Allocation Graph in Operating Systems
In Resource Allocation Graph each process and resources are considered to be vertices.
Edges are drawn from resources to the allocated process, or from requesting process to the requested resource.

Continued👇
Continued above -
If this leads to any formation of a cycle then a deadlock will occur.
🔸Google knowledge graph
A knowledge graph represents a network of real-world entities i.e. objects, events, situations, or concepts, and illustrates relationships between them. This information is usually stored in a graph database and visualized as a graph structure.
🔸GraphQL
GraphQL is operated on Graph data structures.
API developers use GraphQL to create a schema to describe all the possible data that clients can query through that service.
🔸Route optimizations in flight networks
In flight networks, graph data structures are used to compute shortest paths and fuel usage in route planning.
The vertices in flight networks are places of departure and destination, airports, aircraft, cargo weights.

Continued👇
Continued above -
The flight trajectories between airports are the edges
🔸Computer Network
The relationships among interconnected computers within the network, follow the principles of graph theory
🔸Electronic chip design
In electronic chip design, each component is considered as a vertex of the graph.
A printed circuit board takes input in form of a graph where edges denote that there is a connection between pair of components.

Continued👇
Continued above -
The head that creates this connection on the board then finds the optimal to moves across the chip to get the desired resultant circuit.
🔸Molecular structure in chemistry
Graphs are used to model molecule structures for computer processing. Here atoms can be considered as vertices of a graph the bonds that connect them are represented as edges between them.
🔸Currency conversion
Getting the maximum profit by exchanging the currency of different countries is solved by using graph theory
🔸Bonus Image 😉
This is the end of the thread.

If you liked this
- Be sure to give a follow to @meetjain74

- Retweet the first tweet

And let me know your thoughts below on this

• • •

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

Keep Current with Meet Jain🦅

Meet Jain🦅 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 @meetjain74

20 Sep
Real-world examples of the Data structure "Tree"👇

A thread🧵
🔸A tree
The nodes that give birth to other nodes under them is called a "parent node" and its children are simply called "daughter node" or "children nodes". The main stem of the tree is called the "root node".
🔸Family
The family of Mr. Alpha can be represented as a tree where Mr. Alpha has two children - Mr. Charlie and Mr. Romeo and similarly they both have two children.
Read 18 tweets
15 Sep
Writing your first Java program??

🔸How to compile and run it
🔸What does "Public Static Void Main" mean

A thread🧵
(1/11)
A simple Java program
(2/11)
How to save a Java program?

The program name must be saved as the class name in which the main function is declared.
Extension -> .java
Example here: First.java
Read 14 tweets
13 Sep
Some real-world examples of the Data structure "Stack"👇

A thread🧵
Stack is a LIFO (Last In First Out) data structure.
🔸A pile of books is an example of a stack. The last book kept on the pile will be removed first i.e LAST IN FIRST OUT (LIFO) data structure Image
Read 16 tweets
12 Sep
The output of this code is:
Finalise
Main1
Main2

One fact about garbage collector is that it will call finalize() method on a particular object exactly one time.
After making m1 = null m1 becomes eligible for garbage collection. So when we call garbage collector the first time, Garbage Collector will call finalize() method on m1 before destroying it.
The finalize method will print "Finalise" here but in finalize method we are again referencing the same object by m which makes it no longer eligible for garbage collection. Hence the garbage collector will not destroy the object.
Read 4 tweets
11 Sep
Some real-world examples of the Data structure "Linked List" 👇

A thread 🧵
🔸Train is an example of a linked list as it is made up of a collection of railroad cars where each car is connected to the car in front of it.
🔸A chain is an example of a linked list as it is connected in a linked list fashion. Each link is connected with the next one.
Read 16 tweets
9 Sep
Confused about implementing data structures in real problems?

See some real-world examples of the Data structure "Array" today 👇

A thread 🧵 Image
🔸A parking lot is an example of an array with each index of the array storing whether a car is present or not. Or it may be used for some other functionality. Image
🔸Phone contacts stored in a sorted array Image
Read 19 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 Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(