SlideShare a Scribd company logo
1 of 1
Download to read offline
1. Trees Recall that a tree is a connected acyclic graph. Note that this is similar to but slightly
different from a rooted tree that you might have come across before in the Context of data
structures. In our context the tree does not have any designated root vertex, and is just a graph on
n vertices and with m edges. We start by proving two useful properties of trees: (C) If for ever
pair of vertices in a graph they are connected by exactly one simple path. then the graph must be
a tree. (d) If the graph has no simple cycles but has the property that the addition of any single
edge (not already in the graph) will create a simple cycle, then the graph is a tree.
Solution
1-
Since T is a tree, then there is a unique path connecting any two distinct vertices of T
Hence, there are () distinct paths in T
2-
Suppose T is a tree, then by de?nition of a tree it has no simple circuits. Now in T let us
Add an edge e which connects any two non-adjacent vertices u and v. Adding this edge
De?nitely produce a circuit because the resulting graph now has more edges to be a tree

More Related Content

Similar to 1. Trees Recall that a tree is a connected acyclic graph. Note that t.pdf

Minimum spanning tree (mst)
Minimum spanning tree (mst)Minimum spanning tree (mst)
Minimum spanning tree (mst)Pradeep Behera
 
data structures and algorithms Unit 2
data structures and algorithms Unit 2data structures and algorithms Unit 2
data structures and algorithms Unit 2infanciaj
 
A study on connectivity in graph theory june 18 pdf
A study on connectivity in graph theory  june 18 pdfA study on connectivity in graph theory  june 18 pdf
A study on connectivity in graph theory june 18 pdfaswathymaths
 
A study on connectivity in graph theory june 18 123e
A study on connectivity in graph theory  june 18 123eA study on connectivity in graph theory  june 18 123e
A study on connectivity in graph theory june 18 123easwathymaths
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2showslidedump
 
Lecture 16 graph introduction
Lecture 16 graph introductionLecture 16 graph introduction
Lecture 16 graph introductionAbirami A
 
graph_theory_1-11.pdf___________________
graph_theory_1-11.pdf___________________graph_theory_1-11.pdf___________________
graph_theory_1-11.pdf___________________ssuser1989da
 
Lecture 5b graphs and hashing
Lecture 5b graphs and hashingLecture 5b graphs and hashing
Lecture 5b graphs and hashingVictor Palmar
 
Network Topology.PDF
Network Topology.PDFNetwork Topology.PDF
Network Topology.PDFparameshwar7
 

Similar to 1. Trees Recall that a tree is a connected acyclic graph. Note that t.pdf (20)

Minimum spanning tree (mst)
Minimum spanning tree (mst)Minimum spanning tree (mst)
Minimum spanning tree (mst)
 
logic.pptx
logic.pptxlogic.pptx
logic.pptx
 
Electrical Network Topology
Electrical Network TopologyElectrical Network Topology
Electrical Network Topology
 
data structures and algorithms Unit 2
data structures and algorithms Unit 2data structures and algorithms Unit 2
data structures and algorithms Unit 2
 
A study on connectivity in graph theory june 18 pdf
A study on connectivity in graph theory  june 18 pdfA study on connectivity in graph theory  june 18 pdf
A study on connectivity in graph theory june 18 pdf
 
A study on connectivity in graph theory june 18 123e
A study on connectivity in graph theory  june 18 123eA study on connectivity in graph theory  june 18 123e
A study on connectivity in graph theory june 18 123e
 
Lec 12.docx
Lec 12.docxLec 12.docx
Lec 12.docx
 
Slides Chapter10.1 10.2
Slides Chapter10.1 10.2Slides Chapter10.1 10.2
Slides Chapter10.1 10.2
 
Lecture 16 graph introduction
Lecture 16 graph introductionLecture 16 graph introduction
Lecture 16 graph introduction
 
DATA STRUCTURES.pptx
DATA STRUCTURES.pptxDATA STRUCTURES.pptx
DATA STRUCTURES.pptx
 
graph_theory_1-11.pdf___________________
graph_theory_1-11.pdf___________________graph_theory_1-11.pdf___________________
graph_theory_1-11.pdf___________________
 
Lecture 5b graphs and hashing
Lecture 5b graphs and hashingLecture 5b graphs and hashing
Lecture 5b graphs and hashing
 
Graphs.pptx
Graphs.pptxGraphs.pptx
Graphs.pptx
 
Network Topology.PDF
Network Topology.PDFNetwork Topology.PDF
Network Topology.PDF
 
Ch18
Ch18Ch18
Ch18
 
Data structure
Data structureData structure
Data structure
 
Tree 4
Tree 4Tree 4
Tree 4
 
Graph therory
Graph theroryGraph therory
Graph therory
 
Spanningtreesppt
SpanningtreespptSpanningtreesppt
Spanningtreesppt
 
Logistics Management Assignment Help
Logistics Management Assignment Help Logistics Management Assignment Help
Logistics Management Assignment Help
 

More from AHUJAMUSICCOLLECTION

-3 Wolken Corporation has $500,000 of debt outstanding, and it pays a.pdf
 -3 Wolken Corporation has $500,000 of debt outstanding, and it pays a.pdf -3 Wolken Corporation has $500,000 of debt outstanding, and it pays a.pdf
-3 Wolken Corporation has $500,000 of debt outstanding, and it pays a.pdfAHUJAMUSICCOLLECTION
 
1. The Monetary Process a. Using the case of the Great Depression, ex.pdf
 1. The Monetary Process a. Using the case of the Great Depression, ex.pdf 1. The Monetary Process a. Using the case of the Great Depression, ex.pdf
1. The Monetary Process a. Using the case of the Great Depression, ex.pdfAHUJAMUSICCOLLECTION
 
1. Old Friends Information Service is a California company that i.pdf
 1. Old Friends Information Service is a California company that i.pdf 1. Old Friends Information Service is a California company that i.pdf
1. Old Friends Information Service is a California company that i.pdfAHUJAMUSICCOLLECTION
 
1. Refer to the concept of Porters competitive advantage an.pdf
 1. Refer to the concept of Porters competitive advantage an.pdf 1. Refer to the concept of Porters competitive advantage an.pdf
1. Refer to the concept of Porters competitive advantage an.pdfAHUJAMUSICCOLLECTION
 
(Notation I will write Z for the integers and in for theel.pdf
 (Notation I will write Z for the integers and in for theel.pdf (Notation I will write Z for the integers and in for theel.pdf
(Notation I will write Z for the integers and in for theel.pdfAHUJAMUSICCOLLECTION
 
1. Develop an M-file function called tranp to transpose a matrix im.pdf
 1. Develop an M-file function called tranp to transpose a   matrix im.pdf 1. Develop an M-file function called tranp to transpose a   matrix im.pdf
1. Develop an M-file function called tranp to transpose a matrix im.pdfAHUJAMUSICCOLLECTION
 
1. Fill in the table below as it relates to annealing 2. Fill in the.pdf
 1. Fill in the table below as it relates to annealing 2. Fill in the.pdf 1. Fill in the table below as it relates to annealing 2. Fill in the.pdf
1. Fill in the table below as it relates to annealing 2. Fill in the.pdfAHUJAMUSICCOLLECTION
 
1. Consider the following plot of electron concentration versus posit.pdf
 1. Consider the following plot of electron concentration versus posit.pdf 1. Consider the following plot of electron concentration versus posit.pdf
1. Consider the following plot of electron concentration versus posit.pdfAHUJAMUSICCOLLECTION
 
1- A 1000 feet vertical curve connects a 2.5 approach grade and a-35.pdf
 1- A 1000 feet vertical curve connects a 2.5 approach grade and a-35.pdf 1- A 1000 feet vertical curve connects a 2.5 approach grade and a-35.pdf
1- A 1000 feet vertical curve connects a 2.5 approach grade and a-35.pdfAHUJAMUSICCOLLECTION
 
1) Two pipes are connected together in series. The diameter of one pi.pdf
 1) Two pipes are connected together in series. The diameter of one pi.pdf 1) Two pipes are connected together in series. The diameter of one pi.pdf
1) Two pipes are connected together in series. The diameter of one pi.pdfAHUJAMUSICCOLLECTION
 
1) Determine whether or not the function is one-to-one and, if so.pdf
 1) Determine whether or not the function is one-to-one and, if so.pdf 1) Determine whether or not the function is one-to-one and, if so.pdf
1) Determine whether or not the function is one-to-one and, if so.pdfAHUJAMUSICCOLLECTION
 

More from AHUJAMUSICCOLLECTION (11)

-3 Wolken Corporation has $500,000 of debt outstanding, and it pays a.pdf
 -3 Wolken Corporation has $500,000 of debt outstanding, and it pays a.pdf -3 Wolken Corporation has $500,000 of debt outstanding, and it pays a.pdf
-3 Wolken Corporation has $500,000 of debt outstanding, and it pays a.pdf
 
1. The Monetary Process a. Using the case of the Great Depression, ex.pdf
 1. The Monetary Process a. Using the case of the Great Depression, ex.pdf 1. The Monetary Process a. Using the case of the Great Depression, ex.pdf
1. The Monetary Process a. Using the case of the Great Depression, ex.pdf
 
1. Old Friends Information Service is a California company that i.pdf
 1. Old Friends Information Service is a California company that i.pdf 1. Old Friends Information Service is a California company that i.pdf
1. Old Friends Information Service is a California company that i.pdf
 
1. Refer to the concept of Porters competitive advantage an.pdf
 1. Refer to the concept of Porters competitive advantage an.pdf 1. Refer to the concept of Porters competitive advantage an.pdf
1. Refer to the concept of Porters competitive advantage an.pdf
 
(Notation I will write Z for the integers and in for theel.pdf
 (Notation I will write Z for the integers and in for theel.pdf (Notation I will write Z for the integers and in for theel.pdf
(Notation I will write Z for the integers and in for theel.pdf
 
1. Develop an M-file function called tranp to transpose a matrix im.pdf
 1. Develop an M-file function called tranp to transpose a   matrix im.pdf 1. Develop an M-file function called tranp to transpose a   matrix im.pdf
1. Develop an M-file function called tranp to transpose a matrix im.pdf
 
1. Fill in the table below as it relates to annealing 2. Fill in the.pdf
 1. Fill in the table below as it relates to annealing 2. Fill in the.pdf 1. Fill in the table below as it relates to annealing 2. Fill in the.pdf
1. Fill in the table below as it relates to annealing 2. Fill in the.pdf
 
1. Consider the following plot of electron concentration versus posit.pdf
 1. Consider the following plot of electron concentration versus posit.pdf 1. Consider the following plot of electron concentration versus posit.pdf
1. Consider the following plot of electron concentration versus posit.pdf
 
1- A 1000 feet vertical curve connects a 2.5 approach grade and a-35.pdf
 1- A 1000 feet vertical curve connects a 2.5 approach grade and a-35.pdf 1- A 1000 feet vertical curve connects a 2.5 approach grade and a-35.pdf
1- A 1000 feet vertical curve connects a 2.5 approach grade and a-35.pdf
 
1) Two pipes are connected together in series. The diameter of one pi.pdf
 1) Two pipes are connected together in series. The diameter of one pi.pdf 1) Two pipes are connected together in series. The diameter of one pi.pdf
1) Two pipes are connected together in series. The diameter of one pi.pdf
 
1) Determine whether or not the function is one-to-one and, if so.pdf
 1) Determine whether or not the function is one-to-one and, if so.pdf 1) Determine whether or not the function is one-to-one and, if so.pdf
1) Determine whether or not the function is one-to-one and, if so.pdf
 

Recently uploaded

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Recently uploaded (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 

1. Trees Recall that a tree is a connected acyclic graph. Note that t.pdf

  • 1. 1. Trees Recall that a tree is a connected acyclic graph. Note that this is similar to but slightly different from a rooted tree that you might have come across before in the Context of data structures. In our context the tree does not have any designated root vertex, and is just a graph on n vertices and with m edges. We start by proving two useful properties of trees: (C) If for ever pair of vertices in a graph they are connected by exactly one simple path. then the graph must be a tree. (d) If the graph has no simple cycles but has the property that the addition of any single edge (not already in the graph) will create a simple cycle, then the graph is a tree. Solution 1- Since T is a tree, then there is a unique path connecting any two distinct vertices of T Hence, there are () distinct paths in T 2- Suppose T is a tree, then by de?nition of a tree it has no simple circuits. Now in T let us Add an edge e which connects any two non-adjacent vertices u and v. Adding this edge De?nitely produce a circuit because the resulting graph now has more edges to be a tree