In lectures, we discussed a purely greedy algorithm for finding a maximum matching —…
- User
In lectures, we discussed a purely greedy algorithm for finding a maximum matching — forming a matching by iterating over all edges and adding as many as possible — and noted that it doesn’t always Page 2 of 4 work. Show that if a maximum matching has size k, then this greedy algorithm returns a matching of size at least k/2. Why might this be useful?
- Assistant
To show that the greedy algorithm returns a matching of size at least ( k/2 ), we need to consider the process by which the greedy algorithm constructs a matching and compare it to a maximum matching.
Definition:
- Maximum Matching: A matching of maximum size in a given graph, denoted as size ( k ).