Test 1
Test 1
Test 1
RollNo: 23/17104
In[1]:= pairQ[{_ , _}] := True;
pairQ_ _ _ := False;
Syntax: Expression
"Module[{domain, a, b, c}, domain = FindDoamin[R]; Catch[Do[If[! MemberQ[R, {a, b}] && MemberQ[{b, c}] &&
MemberQ[{a, c}], Throw[False]], {a, domain}, {b, domain}, {c, domain}; Throw[True]]]"
has no closing "]".
In[26]:= partialorderQ[p]
Out[26]=
partialorderQ[{1, 2, 3, 4, 5, 6}]
2
In[27]:= R3 = {1, 1}, {1, 4}, {2, 2}, {2, 5}, {3, 3}, {3, 6} {4, 1}, {4, 4}, {5, 2}, {5, 5}, {6, 3}
Out[27]=
{{1, 1}, {1, 4}, {2, 2}, {2, 5}, {3, 3}, {12, 6}, {4, 4}, {5, 2}, {5, 5}, {6, 3}}