Question: In this task an algorithm is to be developed that searches for minimal elements in partially ordered sets ) . For the definition of partial
In this task an algorithm is to be developed that searches for minimal elements in partially
ordered sets For the definition of partial orders and minimal elements we refer to exercise
Ga Give an example of a partially ordered set M with at least two different minimums
elements. Also indicate the minimal elements and justify that they are indeed minimal.
b Give pseudocode for an algorithm MinElements that takes as input a finite partially ordered
set with ninN elements and outputs all minimal elements in the set. Your
algorithm should call the ordering relation at most times.
Justify Your design Note: You can:
the set as an array M Mn
use the ordering relation without implementing it
c Prove the correctness of the algorithm you provided.
d Discuss a way to reduce the number of calls to the ordering relation below Does this reduction
always apply worst case or only on average average case
e Prove: If a partially ordered set has a smallest element, then this is uniquely
determined.
f Prove: In a totally ordered set every minimal element is also a smallest element.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
