Posts

Showing posts with the label 5MarksQus

5 marks qus

  1.   Write a program to implement union of two fuzzy set   => # Example to Demonstrate the  # Union of Two Fuzzy Sets x  =   dict() z  =   dict() Y =   dict()     x  =   {"a": 0.2, "b": 0.3, "c": 0.6, "d": 0.6} z  =   {"a": 0.9, "b": 0.9, "c": 0.4, "d": 0.5}     print('The First Fuzzy Set is :', x ) print('The Second Fuzzy Set is :', z )         for   x _key, z _key in   zip( x , z ):      x _value =   x [ x _key]      z _value =   z [ z _key]         if   x _value > z _value:         Y[ x _key] =   x _value     else:         Y[ z _key] =   z _value             print('Fuzzy Set Union is :', Y)     2.   Compare ...