ALGORITHMS
ALGORITHMS
Matroid is a pair ⟨X,I⟩⟨X,I⟩ where XX is called ground set and II is set of all
independent subsets of XX.
Simplest one, this matroid does not really distinguish elements of ground set
in any form, it only cares about number of taken elements.
All subsets of size kk are bases for this matroid, all subsets of size (k+1)(k+1)
are circuits for this matroid.
consequence).
set itself.
Linear (algebra) matroid: Ground set consists of vectors of some vector space.
This is the matroid from which whole matroid theory originates from. Linear
Any circuit of this matroid is set of vectors, where each vector can be expressed
as combination of all other vectors, but this combination involves all other
vectors in circuit.
Colorful matroid: Ground set consists of colored elements. Each element
has exactly one color.
Bases of this matroid are sets that have exactly one element of
each color.
Circuits of this matroid are all possible pairs of elements of the same color
Graphic matroid.
This type of matroids is the greatest one to show some visual examples, because
it can include dependent subsets of a large size and can be represented on a
picture at the same time.
If graph is connected then any basis of this graph is just a spanning tree of this
graph.
If graph is not connected then basis is a forest of spanning trees that include one
difficulties if elements of ground set of first matroid does not affect independence,
neither intersect with elements of ground set of second matroid and vice versa.
If we consider two graphic matroids on two connected graphs, we can unite their
graphs together resulting in graph with two connected components, but it is clear
that including some edges in one component have no effect on other component.
M1=⟨X1,I1⟩M1=⟨X1,I1⟩,
M2=⟨X2,I2⟩M2=⟨X2,I2⟩,
M1+M2=⟨X1∪X2,I1×I2⟩M1+M2=⟨X1∪X2,I1×I2⟩,
1. Greedy algorithms were conceptualized for many graph walk algorithms in the
1950s.
3. In the same decade, Prim and Kruskal achieved optimization strategies that
were based on minimizing path costs along weighed routes.
4. In the '70s, American researchers, Cormen, Rivest and Stein proposed a recursive
6. Till date, protocols that run the web, such as the open-shortest-path-first (OSPF)
and many other network packet switching protocols use the greedy strategy to
Definition
A matching graph is a sub-graph of a graph where there are no edges
adjacent to each other. Simply, there should not be any common vertex
between any two edges.
Matching
Let ‘G’ = (V, E) be a graph. A subgraph is called a matching M(G),
matching number
.
For a graph given in the above example, M1 and M2
are the maximum matching of ‘G’ and its matching number is 2. Hence
by using the graph G, we can form only the sub-graphs with only 2
edges maximum. Hence we have the matching number as two.
Perfect Matching
A matching (M) of graph (G) is said to be a perfect match,
if every vertex of graph g (G) is incidentto exactly one edge of the
matching (M),
• i.e.,deg(V) = 1 ∀ V The degree of each and every vertex in the
subgraph should have a degree of 1.
• Perfect Matching - Example
• In the following graphs, M1 and M2
• are examples of perfect matching of G.