The document describes the single-source shortest paths algorithm for directed acyclic graphs (DAGs). It involves topologically sorting the vertices of the DAG, initializing distances from the source vertex s, and then relaxing edges in topologically sorted order. This guarantees that when a vertex u is relaxed, the shortest path distances from s to its neighbors will be accurate. The algorithm runs in O(V+E) time. It is used to find critical paths in PERT charts by finding the longest path after negating or reversing edge weights.
Linear Combination, Span And Linearly Independent, Dependent SetDhaval Shukla
In this presentation, the topic of Linear Combination, Span and Linearly Independent and Linearly Dependent Sets have been discussed. The sums for each topic have been given to understand the concept clearly for viewers.
linear transformation and rank nullity theorem Manthan Chavda
In these notes, I will present everything we know so far about linear transformations.
This material comes from sections in the book, and supplemental that
I talk about in class.
The Bellman–Ford algorithm is an algorithm that computes shortest paths from a single source vertex to all of the other vertices in a weighted digraph. It is slower than Dijkstra's algorithm for the same problem, but more versatile, as it is capable of handling graphs in which some of the edge weights are negative numbers.
Linear Combination, Span And Linearly Independent, Dependent SetDhaval Shukla
In this presentation, the topic of Linear Combination, Span and Linearly Independent and Linearly Dependent Sets have been discussed. The sums for each topic have been given to understand the concept clearly for viewers.
linear transformation and rank nullity theorem Manthan Chavda
In these notes, I will present everything we know so far about linear transformations.
This material comes from sections in the book, and supplemental that
I talk about in class.
The Bellman–Ford algorithm is an algorithm that computes shortest paths from a single source vertex to all of the other vertices in a weighted digraph. It is slower than Dijkstra's algorithm for the same problem, but more versatile, as it is capable of handling graphs in which some of the edge weights are negative numbers.
A simple algorithm I devised to enumerate the disjoint paths between a pair of vertices in a given graph. This algorithm was devised as a part of my course-work for Masters [Tech.] at IIT-Banaras Hindu University.
In graph theory, the shortest path problem is the problem of finding a path between two vertices in a graph such that the sum of the weights of its constituent edges is minimized
a graph search algorithm that solves the single-source shortest path problem for a graph with non-negative edge path costs, producing a shortest path tree. This algorithm is often used in routing and as a subroutine in other graph algorithms.
Ethnobotany and Ethnopharmacology:
Ethnobotany in herbal drug evaluation,
Impact of Ethnobotany in traditional medicine,
New development in herbals,
Bio-prospecting tools for drug discovery,
Role of Ethnopharmacology in drug evaluation,
Reverse Pharmacology.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
Andreas Schleicher presents at the OECD webinar ‘Digital devices in schools: detrimental distraction or secret to success?’ on 27 May 2024. The presentation was based on findings from PISA 2022 results and the webinar helped launch the PISA in Focus ‘Managing screen time: How to protect and equip students against distraction’ https://www.oecd-ilibrary.org/education/managing-screen-time_7c225af4-en and the OECD Education Policy Perspective ‘Students, digital devices and success’ can be found here - https://oe.cd/il/5yV
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
This is a presentation by Dada Robert in a Your Skill Boost masterclass organised by the Excellence Foundation for South Sudan (EFSS) on Saturday, the 25th and Sunday, the 26th of May 2024.
He discussed the concept of quality improvement, emphasizing its applicability to various aspects of life, including personal, project, and program improvements. He defined quality as doing the right thing at the right time in the right way to achieve the best possible results and discussed the concept of the "gap" between what we know and what we do, and how this gap represents the areas we need to improve. He explained the scientific approach to quality improvement, which involves systematic performance analysis, testing and learning, and implementing change ideas. He also highlighted the importance of client focus and a team approach to quality improvement.
1. Single-Source Shortest Paths in a
Directed Acyclic Graph
Dr. Kiran K
Assistant Professor
Department of CSE
UVCE
Bengaluru, India.
2. Algorithm
Given a Weighted, Directed Acyclic Graph (DAG) G = (V, E), the Shortest Paths
from a single source is computed by Relaxing the edges according to a Topological
Sort of its vertices.
TOPOLOGICAL-SORT (G)
Call DFS (G) to compute finishing times
v.f for each vertex v.
As each vertex is finished, insert it onto
the front of a linked list.
Return the linked list of vertices.
DAG-SHORTEST-PATHS (G, w, s)
Topologically Sort the vertices of G
INITIALIZE-SINGLE-SOURCE (G, s)
For each vertex u, taken in
Topologically Sorted order
For each vertex v є G.Adj [u]
RELAX (u, v, w)
3. Algorithm…
Running Time:
Topological Sort - Ө (V + E)
INITIALIZE-SINGLE-SOURCE - Ө (V)
Relax - Ө (1)
DAG-SHORTEST-PATHS - Ө (V + E)
(The algorithm relaxes all the edges
exactly once in the for loop for all the
vertices in the graph.)
INITIALIZE-SINGLE-SOURCE (G, s)
For (Each Vertex v є G.V)
v.d = ꝏ
v.π = NIL
s.d = 0
RELAX (u, v, w)
If (v.d > (u.d + w (u, v))
v.d = u.d + w (u, v)
v.π = u
4. • v.d : Shortest Path Estimate; Estimate of the shortest path from the source s to a
vertex v.
• v.π : Predecessor of v in the path from s to v.
• v.f : Timestamp recording when the search finishes examining v’s adjacency list
• δ (s, v) : Shortest path from the source s to vertex v.
• Relax (u, v) : Process of testing whether the shortest path to v (from s) found so far
can be improved by going through u and if so, updating v.d and v.π accordingly.
Note:
• Relax (u, v) is equivalent to finding whether the shortest path to v found so far is
minimum or the path through u is minimum. i.e,
v.d = min (v.d, u.d + w (u, v))
Algorithm…
5. Example
Vertex: r
Relax (r, s): s.d = min (s.d, r.d + w (r, s)) = min (0, ꝏ + 5) = 0
Relax (r, t): t.d = min (t.d, r.d + w (r, t)) = min (ꝏ, ꝏ + 3) = ꝏ
6. Example…
Vertex: s
Relax (s, t): t.d = min (t.d, s.d + w (s, t)) = min (ꝏ, 0 + 2) = 2; t.π = s
Relax (s, x): x.d = min (x.d, s.d + w (s, x)) = min (ꝏ, 0 + 6) = 6; x.π = s
7. Example…
Vertex: t
Relax (t, x): x.d = min (x.d, t.d + w (t, x)) = min (6, 2 + 7) = 6
Relax (t, y): y.d = min (y.d, t.d + w (t, y)) = min (ꝏ, 2 + 4) = 6; y.π = t
Relax (t, z): z.d = min (z.d, t.d + w (t, z)) = min (ꝏ, 2 + 2) = 4; z.π = t
8. Example…
Vertex: x
Relax (x, y): y.d = min (y.d, x.d + w (x, y)) = min (6, 6 + (-1)) = 5; y.π = x
Relax (x, z): z.d = min (z.d, x.d + w (x, z)) = min (4, 6 + 1) = 4
11. Example…
The Shortest Paths from source s to all the vertices is:
Destination Path Cost
r No Path
r.π = NIL
ꝏ
s - 0
t s → t
t.π = s
2
x s → x
x.π = s
6
y s → x → y
x.π = s, y.π = x
5
(6 + (-1))
z s → x → y → z
x.π = s, y.π = x, z.π = y
3
(6 + (-1) + (-2))
12. If a weighted, directed graph G = (V, E) has source vertex s and no cycles, then at the
termination of the DAG-SHORTEST-PATHS procedure, v.d = δ (s, v) for all vertices v є V,
and the predecessor subgraph Gπ is a Shortest-Paths Tree.
Proof:
(1) v.d = δ (s, v):
(i) If v is Not Reachable from s
v.d = δ (s, v) = ꝏ (No-Path Property) (T1)
(ii) If v Reachable from s
Let p = <v0, v1, . . . , vk>, v0 = s and vk = v be the Shortest Path from s to v.
The algorithm processes the vertices in Topologically Sorted Order (T2)
(T2) → The edges are relaxed in the order (v0, v1), (v1, v2), . . . , (vk - 1, vk) (T3)
(T3) → vi.d = δ (s, vi) for i = 1, 2, . . . , k (Path-Relaxation Property) (T4)
(T1) & (T4) → v.d = δ (s, v) (T5)
(2) Gπ is a Shortest-Paths Tree:
(T5) → Gπ is a shortest-paths tree rooted at s (Predecessor-Subgraph Property)
Theorem
13. Determining Critical Paths in PERT (Program Evaluation and Review Technique) chart
analysis.
• Edges represent Jobs to be performed.
• Edge Weights represent the Times required to perform particular jobs.
• If edge (u, v) enters vertex v and edge (v, x) leaves v, then job (u, v) must be performed
before job (v, x).
• A Path through this dag represents a Sequence of Jobs that must be performed in a particular
order.
• Critical path
Longest path through the dag, corresponding to the longest time to perform any sequence of jobs.
Thus, the weight of a critical path provides a lower bound on the total time to perform all the
jobs.
Finding a critical path:
(1) Negating the edge weights and running DAG-SHORTEST-PATHS, or
(2) Replacing ꝏ by - ꝏ in INITIALIZE-SINGLE-SOURCE, > by < in RELAX and running
DAG-SHORTEST-PATHS
Application
u v x
14. Appendix
No-path property
If there is no path from s to v, then v.d = δ (s, v) = ꝏ always.
Path-relaxation property
If p = <v0, v1, . . . , vk> is a shortest path from s = v0 to vk , then vk.d = δ (s, vk) if the
edges of p are Relaxed in the order (v0, v1), (v1, v2), . . . , (vk - 1, vk).
Predecessor-subgraph property
Once v.d = δ (s, v) for all v є V , the predecessor subgraph is a shortest-paths tree
rooted at s.
15. References:
• Thomas H Cormen. Charles E Leiserson, Ronald L Rivest, Clifford Stein,
Introduction to Algorithms, Third Edition, The MIT Press Cambridge,
Massachusetts London, England.