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.
🔸A hierarchical company structure
🔸An organism classification tree
🔸A Tree Corresponding to the Markup Elements of a Web Page
🔸Folder structure in an Operating system
🔸An XML Tree structure
🔸 Decision-based algorithm used in machine learning
🔸Database indexing
In database indexing, B trees are used to sort data for simplified searching, insertion, and deletion
🔸DNS Servers
Domain Name Servers (DNS) also use tree structures.
🔸Quora comments
Posting questions on quora, the comments are child of questions
🔸Comments on Twitter
The comment to a tweet on Twitter is a child of that tweet and similarly, a reply to your comment is your child of that comment
🔸Routing tables
A routing table is used to link routers in a network. It is usually implemented with a trie data structure.
The tree data structure will store the location of routers based on their IP addresses. Routers with similar addresses are grouped under a single subtree.
🔸Data compression using Huffman coding
This is the end of the thread.

Real-life examples for other data structures coming soon. Be sure to give a follow to @meetjain74

Also if you liked this Retweet the first tweet

And let me know your thoughts below on this
Parsing and UI hierarchy are also examples of tree that can be added to this list

• • •

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

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
6 Sep
Want to become an Android developer or start your journey with Android development but have not started yet?

Let me help you create your first Android app to kick off your Android journey.

Work with me to the end of the thread 🧵🧵
First, download Android Studio on your PC through this link and complete the setup and wait for all indexing and initial build to finish (might take time so keep patience)
developer.android.com/studio
🔸Click on create new Project
🔸Select Empty Activity
🔸Click on next
Read 24 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!

:(