This is a basic classification problem,
where a set of balls is given as SetBalls[).
Balls are of different colors, brands, sizes
and weights. Ball description is given in the
format like
"BrandName-Size-Weight-Color"
Given values for set are as follows: 156-Green", "Cosco-Small-58-Green", "KC- Small-55-Green", "YSI-Big-152-Green", "KC-
SetBalls = ["Cosco-Small-58-Red”, “KC Medium-95-Red", "Stag-Big-156-Red", "KC-
Medium-95-Red", "YSI-Small-152-Red”, "Cosco-Small-58-Red”, “KC-Big-155-Red”,
"YSI-Small-52-Red", "Cosco-Small-58- Green", "KC-Medium-95-Green", "Stag-Big-
Big-155-Green" "YSI-Small-52-Green", "Cosco-Small-58-
White", "KC-Medium-95-White", "Stag-Big- 156-White", "KC-Medium-95-White", "KC Big-155-White", "KC-Medium-95-White", "Cosco-Small-58-White", "YSI-Big-152 White", "KC-Big-155-White", "Ysi-Small-52 White")
Classify the given sets based on the given input which can be one value among: Brand / Size / Weight / Color and display all new sets after classification with the criteria name at the beginning of the set in sorted order of Criteria. Note that weights can be treated as string values, so it may give different sorted sequence even though it's a numeric value.
Answers
Answered by
0
Answer:
sorry dude I didn't get it
Similar questions