SlideShare una empresa de Scribd logo
1 de 12
Topological Sort ?
-it   is ordering of vertices in a directed acyclic group .

If its path vi to vj then vj appears after vi in the ordering

 Topological ordering is not possible if the graph has acyclic ?.


      E.g:         v1                    v2



         v3                   v4
                                                       v5



                    v6                        v7
Algorithm for topologies :

    •    Create an array of length equal to the number of vertices.

• While the number of vertices is greater than 0, repeat:
.



    :•   Find a vertex with no incoming edges (“no prerequisites”).
    .


    • Put this vertex in the array.

    .•Note that this destructively updates a graph; often this is a
    bad idea, so make a copy of the graph first and do
    topological sort on the copy.
Topological Sort Algorithm
    The Topological sort algorithm is:
int topologicalOrderTraversal( ){
    int numVisitedVertices = 0;
    while(there are more vertices to be visited){
         if(there is no vertex with in-degree 0)
               break;
         else{
         select a vertex v that has in-degree 0;
         visit v;
         numVisitedVertices++;
         delete v and all its emanating edges;
       }
    }

     return numVisitedVertices;
}
Just we take this example 4 solve topological graph




      Here a=0 because in degree is 4 ‘a’
Graph 1
vertex   A   B   C   D   E   F   G   H

A        0   1   1   0   1   0   0   0

B        0   0   0   0   0   1   0   0

C        0   0   0   1   0   1   1   0

D        0   1   0   0   1   0   0   1

E        0   0   0   0   0   1   0   0

F        0   0   0   0   0   0   0   1

G        0   0   0   0   1   0   0   1

h        0   0   0   0   0   0   0   0

Sum      0   2   1   1   3   3   1   3
of
colum
• Overview
– Terms
• Topics
– Ethernet-Standard
– Network topologies
• Bus topology
• Ring topology
• Star topology
• Fully connected topology
• Mesh topology
– IPv4 & IPv6
• Prototype of the Ethernet Standard
• Characteristics:
– A central cable (coaxial cable)
– Lines to the attached stations
– Decentralized structure (stations with equal standing)
– All attached stations are affected by disturbance at the central
cable
RING Topology
• One token "moves" in the circle (Ring
structure of the network)
• If the token is "free", then the station
can attach a network package



                  RING TYPE
Data structure

Más contenido relacionado

La actualidad más candente

Algorithm Design and Complexity - Course 7
Algorithm Design and Complexity - Course 7Algorithm Design and Complexity - Course 7
Algorithm Design and Complexity - Course 7Traian Rebedea
 
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)Mohanlal Sukhadia University (MLSU)
 
Biconnected components (13024116056)
Biconnected components (13024116056)Biconnected components (13024116056)
Biconnected components (13024116056)Akshay soni
 
Graph Algorithms: Breadth-First Search (BFS)
Graph Algorithms: Breadth-First Search (BFS)Graph Algorithms: Breadth-First Search (BFS)
Graph Algorithms: Breadth-First Search (BFS)Md. Shafiuzzaman Hira
 
Bellman Ford's Algorithm
Bellman Ford's AlgorithmBellman Ford's Algorithm
Bellman Ford's AlgorithmTanmay Baranwal
 
BFS, Breadth first search | Search Traversal Algorithm
BFS, Breadth first search | Search Traversal AlgorithmBFS, Breadth first search | Search Traversal Algorithm
BFS, Breadth first search | Search Traversal AlgorithmMSA Technosoft
 
All pairs shortest path algorithm
All pairs shortest path algorithmAll pairs shortest path algorithm
All pairs shortest path algorithmSrikrishnan Suresh
 
Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithmsana younas
 
Spanning trees & applications
Spanning trees & applicationsSpanning trees & applications
Spanning trees & applicationsTech_MX
 
Bellman ford Algorithm
Bellman ford AlgorithmBellman ford Algorithm
Bellman ford Algorithmtaimurkhan803
 
Minimal spanning tree class 15
Minimal spanning tree class 15Minimal spanning tree class 15
Minimal spanning tree class 15Kumar
 

La actualidad más candente (20)

Algorithm Design and Complexity - Course 7
Algorithm Design and Complexity - Course 7Algorithm Design and Complexity - Course 7
Algorithm Design and Complexity - Course 7
 
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
 
Biconnected components (13024116056)
Biconnected components (13024116056)Biconnected components (13024116056)
Biconnected components (13024116056)
 
Graph Algorithms: Breadth-First Search (BFS)
Graph Algorithms: Breadth-First Search (BFS)Graph Algorithms: Breadth-First Search (BFS)
Graph Algorithms: Breadth-First Search (BFS)
 
Bellman Ford's Algorithm
Bellman Ford's AlgorithmBellman Ford's Algorithm
Bellman Ford's Algorithm
 
BFS, Breadth first search | Search Traversal Algorithm
BFS, Breadth first search | Search Traversal AlgorithmBFS, Breadth first search | Search Traversal Algorithm
BFS, Breadth first search | Search Traversal Algorithm
 
All pairs shortest path algorithm
All pairs shortest path algorithmAll pairs shortest path algorithm
All pairs shortest path algorithm
 
Dijksatra
DijksatraDijksatra
Dijksatra
 
SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS
 
Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithm
 
The Floyd–Warshall algorithm
The Floyd–Warshall algorithmThe Floyd–Warshall algorithm
The Floyd–Warshall algorithm
 
Spanning trees
Spanning treesSpanning trees
Spanning trees
 
Spanning trees & applications
Spanning trees & applicationsSpanning trees & applications
Spanning trees & applications
 
2.5 graph dfs
2.5 graph dfs2.5 graph dfs
2.5 graph dfs
 
BFS
BFSBFS
BFS
 
Bellman ford Algorithm
Bellman ford AlgorithmBellman ford Algorithm
Bellman ford Algorithm
 
Minimal spanning tree class 15
Minimal spanning tree class 15Minimal spanning tree class 15
Minimal spanning tree class 15
 
21 All Pairs Shortest Path
21 All Pairs Shortest Path21 All Pairs Shortest Path
21 All Pairs Shortest Path
 
Network flow problems
Network flow problemsNetwork flow problems
Network flow problems
 
18 Basic Graph Algorithms
18 Basic Graph Algorithms18 Basic Graph Algorithms
18 Basic Graph Algorithms
 

Destacado

Economic development
Economic developmentEconomic development
Economic developmentsumit singh
 
Interactively Evolving User Interfaces
Interactively Evolving User InterfacesInteractively Evolving User Interfaces
Interactively Evolving User InterfacesJuan Quiroz
 
IP fundamentals
IP fundamentals IP fundamentals
IP fundamentals sumit singh
 
UXD – What is User Experience Design?
UXD – What is User Experience Design?UXD – What is User Experience Design?
UXD – What is User Experience Design?Technosiss
 
Mobile Mondays @ BASIS - welcoming GBG
Mobile Mondays @ BASIS - welcoming GBGMobile Mondays @ BASIS - welcoming GBG
Mobile Mondays @ BASIS - welcoming GBGMasrur Hannan
 
Usability and UXd for apps - by Bonolota UXd at Microsoft Bangladesh
Usability and UXd for apps - by Bonolota UXd at Microsoft BangladeshUsability and UXd for apps - by Bonolota UXd at Microsoft Bangladesh
Usability and UXd for apps - by Bonolota UXd at Microsoft BangladeshMasrur Hannan
 
Jadu pc by bonolota glimpse for public
Jadu pc by bonolota glimpse for publicJadu pc by bonolota glimpse for public
Jadu pc by bonolota glimpse for publicMasrur Hannan
 
GDG Dhaka - UX quick talk - Masrur Hannan
GDG Dhaka - UX quick talk - Masrur HannanGDG Dhaka - UX quick talk - Masrur Hannan
GDG Dhaka - UX quick talk - Masrur HannanMasrur Hannan
 
Renewable Energy
Renewable EnergyRenewable Energy
Renewable Energysumit singh
 
Website visitor’s experience ‘don’t make them think' - masur hannan - 3 nov...
Website visitor’s experience   ‘don’t make them think' - masur hannan - 3 nov...Website visitor’s experience   ‘don’t make them think' - masur hannan - 3 nov...
Website visitor’s experience ‘don’t make them think' - masur hannan - 3 nov...Masrur Hannan
 
Usability Tips And Tricks For Beginners Experience Dynamics Web Seminar
Usability Tips And Tricks For Beginners   Experience Dynamics Web SeminarUsability Tips And Tricks For Beginners   Experience Dynamics Web Seminar
Usability Tips And Tricks For Beginners Experience Dynamics Web SeminarExperience Dynamics
 
Teaching UXD - Camp digital 2014
Teaching UXD - Camp digital 2014Teaching UXD - Camp digital 2014
Teaching UXD - Camp digital 2014Richard Eskins
 
UX for Apps - GDG at BUET 9 Nov 2013 Masrur Hannan and Shadman Rahman
UX for Apps - GDG at BUET 9 Nov 2013 Masrur Hannan and Shadman RahmanUX for Apps - GDG at BUET 9 Nov 2013 Masrur Hannan and Shadman Rahman
UX for Apps - GDG at BUET 9 Nov 2013 Masrur Hannan and Shadman RahmanMasrur Hannan
 
UX session by Bonolota UXd at BICC - Digital World and BASIS Soft Expo 2014
 UX session by Bonolota UXd at BICC - Digital World and BASIS Soft Expo 2014 UX session by Bonolota UXd at BICC - Digital World and BASIS Soft Expo 2014
UX session by Bonolota UXd at BICC - Digital World and BASIS Soft Expo 2014Masrur Hannan
 
UXD HK Info Session
UXD HK Info SessionUXD HK Info Session
UXD HK Info SessionAllison Baum
 
Designing For Interaction
Designing For Interaction Designing For Interaction
Designing For Interaction Chris Bernard
 
IxD & UX Design - Personifying Digital Interactions
IxD & UX Design - Personifying Digital InteractionsIxD & UX Design - Personifying Digital Interactions
IxD & UX Design - Personifying Digital InteractionsJayan Narayanan
 
User Experience Design Introduction
User Experience Design   IntroductionUser Experience Design   Introduction
User Experience Design IntroductionHans Kemp
 
UX & RIAs: UI Design Challenges (ERGOSIGN)
UX & RIAs: UI Design Challenges (ERGOSIGN)UX & RIAs: UI Design Challenges (ERGOSIGN)
UX & RIAs: UI Design Challenges (ERGOSIGN)Ergosign GmbH
 

Destacado (20)

Graphical Tool Kit 2
Graphical Tool Kit 2Graphical Tool Kit 2
Graphical Tool Kit 2
 
Economic development
Economic developmentEconomic development
Economic development
 
Interactively Evolving User Interfaces
Interactively Evolving User InterfacesInteractively Evolving User Interfaces
Interactively Evolving User Interfaces
 
IP fundamentals
IP fundamentals IP fundamentals
IP fundamentals
 
UXD – What is User Experience Design?
UXD – What is User Experience Design?UXD – What is User Experience Design?
UXD – What is User Experience Design?
 
Mobile Mondays @ BASIS - welcoming GBG
Mobile Mondays @ BASIS - welcoming GBGMobile Mondays @ BASIS - welcoming GBG
Mobile Mondays @ BASIS - welcoming GBG
 
Usability and UXd for apps - by Bonolota UXd at Microsoft Bangladesh
Usability and UXd for apps - by Bonolota UXd at Microsoft BangladeshUsability and UXd for apps - by Bonolota UXd at Microsoft Bangladesh
Usability and UXd for apps - by Bonolota UXd at Microsoft Bangladesh
 
Jadu pc by bonolota glimpse for public
Jadu pc by bonolota glimpse for publicJadu pc by bonolota glimpse for public
Jadu pc by bonolota glimpse for public
 
GDG Dhaka - UX quick talk - Masrur Hannan
GDG Dhaka - UX quick talk - Masrur HannanGDG Dhaka - UX quick talk - Masrur Hannan
GDG Dhaka - UX quick talk - Masrur Hannan
 
Renewable Energy
Renewable EnergyRenewable Energy
Renewable Energy
 
Website visitor’s experience ‘don’t make them think' - masur hannan - 3 nov...
Website visitor’s experience   ‘don’t make them think' - masur hannan - 3 nov...Website visitor’s experience   ‘don’t make them think' - masur hannan - 3 nov...
Website visitor’s experience ‘don’t make them think' - masur hannan - 3 nov...
 
Usability Tips And Tricks For Beginners Experience Dynamics Web Seminar
Usability Tips And Tricks For Beginners   Experience Dynamics Web SeminarUsability Tips And Tricks For Beginners   Experience Dynamics Web Seminar
Usability Tips And Tricks For Beginners Experience Dynamics Web Seminar
 
Teaching UXD - Camp digital 2014
Teaching UXD - Camp digital 2014Teaching UXD - Camp digital 2014
Teaching UXD - Camp digital 2014
 
UX for Apps - GDG at BUET 9 Nov 2013 Masrur Hannan and Shadman Rahman
UX for Apps - GDG at BUET 9 Nov 2013 Masrur Hannan and Shadman RahmanUX for Apps - GDG at BUET 9 Nov 2013 Masrur Hannan and Shadman Rahman
UX for Apps - GDG at BUET 9 Nov 2013 Masrur Hannan and Shadman Rahman
 
UX session by Bonolota UXd at BICC - Digital World and BASIS Soft Expo 2014
 UX session by Bonolota UXd at BICC - Digital World and BASIS Soft Expo 2014 UX session by Bonolota UXd at BICC - Digital World and BASIS Soft Expo 2014
UX session by Bonolota UXd at BICC - Digital World and BASIS Soft Expo 2014
 
UXD HK Info Session
UXD HK Info SessionUXD HK Info Session
UXD HK Info Session
 
Designing For Interaction
Designing For Interaction Designing For Interaction
Designing For Interaction
 
IxD & UX Design - Personifying Digital Interactions
IxD & UX Design - Personifying Digital InteractionsIxD & UX Design - Personifying Digital Interactions
IxD & UX Design - Personifying Digital Interactions
 
User Experience Design Introduction
User Experience Design   IntroductionUser Experience Design   Introduction
User Experience Design Introduction
 
UX & RIAs: UI Design Challenges (ERGOSIGN)
UX & RIAs: UI Design Challenges (ERGOSIGN)UX & RIAs: UI Design Challenges (ERGOSIGN)
UX & RIAs: UI Design Challenges (ERGOSIGN)
 

Similar a Data structure (20)

Unit24_TopologicalSort (2).ppt
Unit24_TopologicalSort (2).pptUnit24_TopologicalSort (2).ppt
Unit24_TopologicalSort (2).ppt
 
Topological Sort Algorithm.pptx
Topological Sort Algorithm.pptxTopological Sort Algorithm.pptx
Topological Sort Algorithm.pptx
 
testpang
testpangtestpang
testpang
 
Topological Sort and Shortest Path in Directed Acyclic Graph with Single Source
Topological Sort and Shortest Path in Directed Acyclic Graph with Single SourceTopological Sort and Shortest Path in Directed Acyclic Graph with Single Source
Topological Sort and Shortest Path in Directed Acyclic Graph with Single Source
 
Unit 9 graph
Unit   9 graphUnit   9 graph
Unit 9 graph
 
Data Structures - Lecture 10 [Graphs]
Data Structures - Lecture 10 [Graphs]Data Structures - Lecture 10 [Graphs]
Data Structures - Lecture 10 [Graphs]
 
Unit ix graph
Unit   ix    graph Unit   ix    graph
Unit ix graph
 
Graph isomorphism
Graph isomorphismGraph isomorphism
Graph isomorphism
 
Unit 2: All
Unit 2: AllUnit 2: All
Unit 2: All
 
Graphs and eularian circuit & path with c++ program
Graphs and eularian circuit & path with c++ programGraphs and eularian circuit & path with c++ program
Graphs and eularian circuit & path with c++ program
 
UNIT III.pptx
UNIT III.pptxUNIT III.pptx
UNIT III.pptx
 
Unit V - ppt.pptx
Unit V - ppt.pptxUnit V - ppt.pptx
Unit V - ppt.pptx
 
Parabola
ParabolaParabola
Parabola
 
6. Graphs
6. Graphs6. Graphs
6. Graphs
 
Graph 1
Graph 1Graph 1
Graph 1
 
Discrete_4.pptx
Discrete_4.pptxDiscrete_4.pptx
Discrete_4.pptx
 
14 chapter9 graph_algorithmstopologicalsort_shortestpath
14 chapter9 graph_algorithmstopologicalsort_shortestpath14 chapter9 graph_algorithmstopologicalsort_shortestpath
14 chapter9 graph_algorithmstopologicalsort_shortestpath
 
ppt 1.pptx
ppt 1.pptxppt 1.pptx
ppt 1.pptx
 
Graph Data Structure
Graph Data StructureGraph Data Structure
Graph Data Structure
 
Analysis of Pathfinding Algorithms
Analysis of Pathfinding AlgorithmsAnalysis of Pathfinding Algorithms
Analysis of Pathfinding Algorithms
 

Más de sumit singh

Más de sumit singh (7)

Growth hacking
Growth hackingGrowth hacking
Growth hacking
 
UI/UX Design
UI/UX DesignUI/UX Design
UI/UX Design
 
microprocessor
microprocessormicroprocessor
microprocessor
 
Gsm architecture
Gsm architectureGsm architecture
Gsm architecture
 
Gprs persentation
Gprs persentation Gprs persentation
Gprs persentation
 
System software
System softwareSystem software
System software
 
3G communication
3G communication3G communication
3G communication
 

Último

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
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
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
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
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 

Último (20)

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
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
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 

Data structure

  • 1.
  • 2. Topological Sort ? -it is ordering of vertices in a directed acyclic group . If its path vi to vj then vj appears after vi in the ordering Topological ordering is not possible if the graph has acyclic ?. E.g: v1 v2 v3 v4 v5 v6 v7
  • 3. Algorithm for topologies : • Create an array of length equal to the number of vertices. • While the number of vertices is greater than 0, repeat: . :• Find a vertex with no incoming edges (“no prerequisites”). . • Put this vertex in the array. .•Note that this destructively updates a graph; often this is a bad idea, so make a copy of the graph first and do topological sort on the copy.
  • 4. Topological Sort Algorithm The Topological sort algorithm is: int topologicalOrderTraversal( ){ int numVisitedVertices = 0; while(there are more vertices to be visited){ if(there is no vertex with in-degree 0) break; else{ select a vertex v that has in-degree 0; visit v; numVisitedVertices++; delete v and all its emanating edges; } } return numVisitedVertices; }
  • 5. Just we take this example 4 solve topological graph Here a=0 because in degree is 4 ‘a’
  • 6. Graph 1 vertex A B C D E F G H A 0 1 1 0 1 0 0 0 B 0 0 0 0 0 1 0 0 C 0 0 0 1 0 1 1 0 D 0 1 0 0 1 0 0 1 E 0 0 0 0 0 1 0 0 F 0 0 0 0 0 0 0 1 G 0 0 0 0 1 0 0 1 h 0 0 0 0 0 0 0 0 Sum 0 2 1 1 3 3 1 3 of colum
  • 7.
  • 8.
  • 9. • Overview – Terms • Topics – Ethernet-Standard – Network topologies • Bus topology • Ring topology • Star topology • Fully connected topology • Mesh topology – IPv4 & IPv6
  • 10. • Prototype of the Ethernet Standard • Characteristics: – A central cable (coaxial cable) – Lines to the attached stations – Decentralized structure (stations with equal standing) – All attached stations are affected by disturbance at the central cable
  • 11. RING Topology • One token "moves" in the circle (Ring structure of the network) • If the token is "free", then the station can attach a network package RING TYPE