Answer:
subset([],[]).
subset([X|L],[X|S]) :-
subset(L,S).
subset(L, [_|S]) :-
subset(L,S).
Success:
subset([1,3], [1,2,3]).
subset(X, [1,3,4]). % error handling to compare sets in a given order
Fail:
subset([2,1], [1,2,3]). % compares in a different order from the first.
Explanation:
The function "Subset" in the source code above accepts two sets, then checks if the first set is a subset of the second. The code returns true if the condition is met.
Answer:
Once more that one person answer, you will get an option next to the heart and the star that would look like a crown
Explanation:
That is how you do it.
Answer:
The balanced DFD (Data flow diagram) is the concept of the balancing all the state and incoming and also outgoing flow in the system.
The balanced data flow diagram basically ensure that the output and input data flow maintain the consistency in the DFD and are properly aligned the flow of data.
A balanced DFD does not include any type of flowchart in the control statement and also does not contain any crossing lines.