SlideShare a Scribd company logo
Matroids and
Greedy Methods
Greedy Methods
Introduction
Algorithmic approaches by taking the most profitable decision in the current
state only.
Straight forward and simplest Algorithmic approaches.
Might lead to worst solution.
Examples : Shortest Running Time Next ( Batch System Scheduling ),
Shortest Job First ( Batch System Scheduling ), Shortest Process Next (
Interactive System Scheduling ), etc.
Matroids
Principles
A matroid is an ordered pair M = ( S, I ). Statifying the following conditions :
S is a Finite Set.
I is a nonempty family of subsets of S ( Independent Subsets of S ).
If |A| ∈ I, |B| ∈ I, and |A| < |B|, then there is some element x ∈ B – A such that A ∪ {
X } ∈ I. ( M statifies Exhchange Property )
Greedy Algorithm
on a weighted
matroid
Pseudocode*
*Picture taken from Thomas H. Cormen, “Introduction to Algorithms”, 3rd Edition, MIT Press, 2009 , Page 440
Examples
Consider S = { a, b, c, d}. Make the Smallest Matroid! with ( S, F ) when { a, b }
and { c, d } included in F.
F = { , {a}, {b}, {c}, {d}, {a,b}, {c,d}  Hereditary
{a,c}, {b,c}, {a,d}, {b,d}  Exchange property
Pseudocode*
*Picture taken from https://www.sciencedirect.com/science/article/pii/S0899825614001651 on 15/04/2019
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A} {B}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A} {B} {C}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A} {B} {C} {D}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A} {B} {C} {D} {E}  SET 1
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A, B}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A, B} {A, C}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A, B} {A, C} {A, D}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A, B} {A, C} {A, D} {A, E}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A, B} {A, C} {A, D} {A, E} {B, C}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A, B} {A, C} {A, D} {A, E} {B, C} {B, D}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A, B} {A, C} {A, D} {A, E} {B, C} {B, D} {B, E}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A, B} {A, C} {A, D} {A, E} {B, C} {B, D} {B, E}
{C, D}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A, B} {A, C} {A, D} {A, E} {B, C} {B, D} {B, E}
{C, D} {C, E}  SET 2
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A, B, C}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A, B, C} {A, B, D}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A, B, C} {A, B, D} {A, B, E}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A, B, C} {A, B, D} {A, B, E} {A, C, D}
Solution
4 3
2
1
A
C
B
D E
Set Possible = {∅}
= {A, B, C} {A, B, D} {A, B, E} {A, C, D} {A, C, E}
 SET 3
Solution
Set Possible = {∅}
= {A} {B} {C} {D} {E}  SET 1
= {A, B} {A, C} {A, D} {A, E} {B, C} {B, D} {B, E}
{C, D} {C, E}  SET 2
= {A, B, C} {A, B, D} {A, B, E} {A, C, D} {A, C, E}
 SET 3
References
[1] Thomas H. Cormen, “Introduction to Algorithms”,
3rd Edition, MIT Press, 2009. ( Page 437 – 443 )
[2] Andrew S. Tanenbaum, “Modern Operating Systems”,
Pearson, Mar. 20, 2014. ( Page 149 – 167 )

More Related Content

PPT
Set Difference
PPTX
properties of addition and subtraction of integers
PPTX
properties of multiplication of integers
PPT
Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...
PPTX
multiplication of integers
PPT
Section 2.1 functions
PPT
Mtk3013 chapter 2-3
PPTX
How to Prove and Apply De Morgan's Laws
Set Difference
properties of addition and subtraction of integers
properties of multiplication of integers
Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...
multiplication of integers
Section 2.1 functions
Mtk3013 chapter 2-3
How to Prove and Apply De Morgan's Laws

What's hot (19)

PDF
Use of summation notation
PPTX
2.2 Set Operations
PDF
Power set
DOCX
Bt0069 discrete mathematics
PPT
Set Operations
PPT
UNIT .01
PPTX
How to Find a Cartesian Product
PPTX
Set operations
PPT
The Properties of Mathematics
PDF
Some results on fuzzy soft multi sets
PPTX
AUTO & HETRO CORRELATOR
PPT
Section 5.4 logarithmic functions
DOCX
PPTX
Properties of addition and multiplication
PDF
Combinatorial optimization CO-4
PPSX
1e. Pedagogy of Mathematics (Part II) - Set language introduction and Ex.1.5
PPTX
Finding union, intersection and complements
PPT
Mmi11 ppt 0203
PDF
Discrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
Use of summation notation
2.2 Set Operations
Power set
Bt0069 discrete mathematics
Set Operations
UNIT .01
How to Find a Cartesian Product
Set operations
The Properties of Mathematics
Some results on fuzzy soft multi sets
AUTO & HETRO CORRELATOR
Section 5.4 logarithmic functions
Properties of addition and multiplication
Combinatorial optimization CO-4
1e. Pedagogy of Mathematics (Part II) - Set language introduction and Ex.1.5
Finding union, intersection and complements
Mmi11 ppt 0203
Discrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
Ad

Similar to Algorithm_Matroids and greedy methods (20)

PDF
Abstract Algebra Lecture for Mathematics major
PDF
SETS - Vedantu.pdf
PPS
SET THEORY
PDF
unit-1.pdfSRM MATHS DISCREATE MATHS 2024
PPT
presentation about set theorem
PDF
2 》set operation.pdf
PDF
01_Sets.pdf
PPTX
Math inmodern word in education first year
PPT
Ch01-2 set theory 123873298738938r3387.ppt
PPT
Lesson 1 &2 -Set Theory and Functions.ppt
PPSX
1h. Pedagogy of Mathematics (Part II) - Set language Activities and exercise
PDF
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
PPT
Lecture in Sets, Sequences and Summations
PPT
Introduction to set theory
PDF
2.7 Ordered pairs
PPT
Sets (1).ppt
PPT
Final maths presentation on sets
PPTX
PPTX
PPT
Ch1 sets and_logic(1)
Abstract Algebra Lecture for Mathematics major
SETS - Vedantu.pdf
SET THEORY
unit-1.pdfSRM MATHS DISCREATE MATHS 2024
presentation about set theorem
2 》set operation.pdf
01_Sets.pdf
Math inmodern word in education first year
Ch01-2 set theory 123873298738938r3387.ppt
Lesson 1 &2 -Set Theory and Functions.ppt
1h. Pedagogy of Mathematics (Part II) - Set language Activities and exercise
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
Lecture in Sets, Sequences and Summations
Introduction to set theory
2.7 Ordered pairs
Sets (1).ppt
Final maths presentation on sets
Ch1 sets and_logic(1)
Ad

Recently uploaded (20)

PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
August Patch Tuesday
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
A Presentation on Artificial Intelligence
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Encapsulation theory and applications.pdf
PPT
Teaching material agriculture food technology
Univ-Connecticut-ChatGPT-Presentaion.pdf
SOPHOS-XG Firewall Administrator PPT.pptx
Machine learning based COVID-19 study performance prediction
Programs and apps: productivity, graphics, security and other tools
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
A comparative study of natural language inference in Swahili using monolingua...
Building Integrated photovoltaic BIPV_UPV.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
OMC Textile Division Presentation 2021.pptx
A comparative analysis of optical character recognition models for extracting...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
August Patch Tuesday
Group 1 Presentation -Planning and Decision Making .pptx
A Presentation on Artificial Intelligence
MIND Revenue Release Quarter 2 2025 Press Release
Digital-Transformation-Roadmap-for-Companies.pptx
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Encapsulation theory and applications.pdf
Teaching material agriculture food technology

Algorithm_Matroids and greedy methods