SemSure
←Discrete Mathematics · Unit 1Warshall's algorithm✓ 0/81/199
① Topic

Transitive closure by Warshall's algorithm

Definition · Transitive closure
The transitive closure of a relation on is the smallest transitive relation on containing . It relates exactly the pairs joined by a directed path of positive length.
Samjho
Agar ek se do aur do se teen ja sakte ho, toh closure mein ek se teen ka pair bhi aayega. Har pass mein ek element ko beech ka stop maan kar naye raaste dhoondo.
Exam tip Use the row and column of the latest matrix in each pass. A diagonal entry can become one when a cycle returns to its starting vertex.

Opens chatgpt.com in a new tab with a ready-made prompt for this topic.

② Question

Find the transitive closure

15 marks · Part CAsked in: Nov25 Q26

Use Warshall's algorithm to find the transitive closure on .

③ Learn · step 1 of 7

Build the initial matrix and state the update rule

Write the elements in the displayed order across both axes. For each ordered pair , put a one in row , column . Every unlisted pair gets zero. This is , which records the given edges before using intermediate vertices.

1 of 4
③ Learn · step 2 of 7

Allow intermediate vertex 1

Read column of . The rows with ones are . Those vertices can reach .

1 of 4
③ Learn · step 3 of 7

Allow intermediate vertex 2

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 4 of 7

Allow intermediate vertex 3

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 5 of 7

Allow intermediate vertex 4

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 6 of 7

Allow intermediate vertex 5

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 7 of 7

Check positive-length reachability from each start

Read the ones of the last matrix row by row. After all passes every vertex may be used in the middle, so these pairs form the transitive closure.

1 of 5
④ Exam answer

Write this in the booklet

Form the initial relation matrix. In pass apply the Boolean update below to allow vertex as an intermediate vertex.

12345
110101
200110
300101
401010
500010

For intermediate , no new pair is needed.

12345
110101
200110
300101
401010
500010

For intermediate , the new pairs are .

12345
110101
200110
300101
401110
500010

For intermediate , the new pairs are .

12345
110101
200111
300101
401111
500010

For intermediate , the new pairs are .

12345
110101
201111
300101
401111
501111

For intermediate , the new pairs are .

12345
111111
201111
301111
401111
501111

The final matrix contains exactly the positive-length paths with all intermediate vertices allowed. Its ones give

② Question

Find the transitive closure

15 marks · Part CAsked in: May24 Q26

Use Warshall's algorithm to find the transitive closure on .

③ Learn · step 1 of 7

Build the initial matrix and state the update rule

Write the elements in the displayed order across both axes. For each ordered pair , put a one in row , column . Every unlisted pair gets zero. This is , which records the given edges before using intermediate vertices.

1 of 4
③ Learn · step 2 of 7

Allow intermediate vertex 1

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 3 of 7

Allow intermediate vertex 2

Read column of . The rows with ones are . Those vertices can reach .

1 of 4
③ Learn · step 4 of 7

Allow intermediate vertex 3

Read column of . The rows with ones are . Those vertices can reach .

1 of 4
③ Learn · step 5 of 7

Allow intermediate vertex 4

Read column of . The rows with ones are . Those vertices can reach .

1 of 4
③ Learn · step 6 of 7

Allow intermediate vertex 5

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 7 of 7

Check positive-length reachability from each start

Read the ones of the last matrix row by row. After all passes every vertex may be used in the middle, so these pairs form the transitive closure.

1 of 5
④ Exam answer

Write this in the booklet

Form the initial relation matrix. In pass apply the Boolean update below to allow vertex as an intermediate vertex.

12345
101001
201000
300110
400010
510000

For intermediate , the new pairs are .

12345
101001
201000
300110
400010
511001

For intermediate , no new pair is needed.

12345
101001
201000
300110
400010
511001

For intermediate , no new pair is needed.

12345
101001
201000
300110
400010
511001

For intermediate , no new pair is needed.

12345
101001
201000
300110
400010
511001

For intermediate , the new pairs are .

12345
111001
201000
300110
400010
511001

The final matrix contains exactly the positive-length paths with all intermediate vertices allowed. Its ones give

② Question

Find the transitive closure

15 marks · Part CAsked in: Jul24 Q26

Use Warshall's algorithm to find the transitive closure on .

③ Learn · step 1 of 7

Build the initial matrix and state the update rule

Write the elements in the displayed order across both axes. For each ordered pair , put a one in row , column . Every unlisted pair gets zero. This is , which records the given edges before using intermediate vertices.

1 of 4
③ Learn · step 2 of 7

Allow intermediate vertex 1

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 3 of 7

Allow intermediate vertex 2

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 4 of 7

Allow intermediate vertex 3

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 5 of 7

Allow intermediate vertex 4

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 6 of 7

Allow intermediate vertex 5

Read column of . The rows with ones are . Those vertices can reach .

1 of 4
③ Learn · step 7 of 7

Check positive-length reachability from each start

Read the ones of the last matrix row by row. After all passes every vertex may be used in the middle, so these pairs form the transitive closure.

1 of 5
④ Exam answer

Write this in the booklet

Form the initial relation matrix. In pass apply the Boolean update below to allow vertex as an intermediate vertex.

12345
110100
210010
301100
410001
510001

For intermediate , the new pairs are .

12345
110100
210110
301100
410101
510101

For intermediate , the new pairs are .

12345
110100
210110
311110
410101
510101

For intermediate , the new pairs are .

12345
111110
211110
311110
411111
511111

For intermediate , the new pairs are .

12345
111111
211111
311111
411111
511111

For intermediate , no new pair is needed.

12345
111111
211111
311111
411111
511111

The final matrix contains exactly the positive-length paths with all intermediate vertices allowed. Its ones give

② Question

Find the transitive closure

8 marks · Part BAsked in: Nov24 Q21a

Use Warshall's algorithm to find the transitive closure on .

③ Learn · step 1 of 6

Build the initial matrix and state the update rule

Write the elements in the displayed order across both axes. For each ordered pair , put a one in row , column . Every unlisted pair gets zero. This is , which records the given edges before using intermediate vertices.

1 of 4
③ Learn · step 2 of 6

Allow intermediate vertex 1

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 3 of 6

Allow intermediate vertex 2

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 4 of 6

Allow intermediate vertex 3

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 5 of 6

Allow intermediate vertex 4

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 6 of 6

Check positive-length reachability from each start

Read the ones of the last matrix row by row. After all passes every vertex may be used in the middle, so these pairs form the transitive closure.

1 of 5
④ Exam answer

Write this in the booklet

Form the initial relation matrix. In pass apply the Boolean update below to allow vertex as an intermediate vertex.

1234
10100
21010
30001
41000

For intermediate , the new pairs are .

1234
10100
21110
30001
41100

For intermediate , the new pairs are .

1234
11110
21110
30001
41110

For intermediate , the new pairs are .

1234
11111
21111
30001
41111

For intermediate , the new pairs are .

1234
11111
21111
31111
41111

The final matrix contains exactly the positive-length paths with all intermediate vertices allowed. Its ones give

② Question

Find the transitive closure

15 marks · Part CAsked in: May25 Q26

Use Warshall's algorithm to find the transitive closure on .

③ Learn · step 1 of 6

Build the initial matrix and state the update rule

Write the elements in the displayed order across both axes. For each ordered pair , put a one in row , column . Every unlisted pair gets zero. This is , which records the given edges before using intermediate vertices.

1 of 4
③ Learn · step 2 of 6

Allow intermediate vertex 1

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 3 of 6

Allow intermediate vertex 2

Read column of . The rows with ones are . Those vertices can reach .

1 of 4
③ Learn · step 4 of 6

Allow intermediate vertex 3

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 5 of 6

Allow intermediate vertex 4

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 6 of 6

Check positive-length reachability from each start

Read the ones of the last matrix row by row. After all passes every vertex may be used in the middle, so these pairs form the transitive closure.

1 of 5
④ Exam answer

Write this in the booklet

Form the initial relation matrix. In pass apply the Boolean update below to allow vertex as an intermediate vertex.

1234
11010
20010
30001
41100

For intermediate , the new pairs are .

1234
11010
20010
30001
41110

For intermediate , no new pair is needed.

1234
11010
20010
30001
41110

For intermediate , the new pairs are .

1234
11011
20011
30001
41111

For intermediate , the new pairs are .

1234
11111
21111
31111
41111

The final matrix contains exactly the positive-length paths with all intermediate vertices allowed. Its ones give

② Question

Find the transitive closure

10 marks · Part CAsked in: Jul25 Q27(ii)

Use Warshall's algorithm to find the transitive closure on .

③ Learn · step 1 of 7

Build the initial matrix and state the update rule

Write the elements in the displayed order across both axes. For each ordered pair , put a one in row , column . Every unlisted pair gets zero. This is , which records the given edges before using intermediate vertices.

1 of 4
③ Learn · step 2 of 7

Allow intermediate vertex 1

Read column of . The rows with ones are . Those vertices can reach .

1 of 4
③ Learn · step 3 of 7

Allow intermediate vertex 2

Read column of . The rows with ones are . Those vertices can reach .

1 of 4
③ Learn · step 4 of 7

Allow intermediate vertex 3

Read column of . The rows with ones are . Those vertices can reach .

1 of 4
③ Learn · step 5 of 7

Allow intermediate vertex 4

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 6 of 7

Allow intermediate vertex 5

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 7 of 7

Check positive-length reachability from each start

Read the ones of the last matrix row by row. After all passes every vertex may be used in the middle, so these pairs form the transitive closure.

1 of 5
④ Exam answer

Write this in the booklet

Form the initial relation matrix. In pass apply the Boolean update below to allow vertex as an intermediate vertex.

12345
111000
211000
300101
400111
500011

For intermediate , no new pair is needed.

12345
111000
211000
300101
400111
500011

For intermediate , no new pair is needed.

12345
111000
211000
300101
400111
500011

For intermediate , no new pair is needed.

12345
111000
211000
300101
400111
500011

For intermediate , the new pairs are .

12345
111000
211000
300101
400111
500111

For intermediate , the new pairs are .

12345
111000
211000
300111
400111
500111

The final matrix contains exactly the positive-length paths with all intermediate vertices allowed. Its ones give

② Question

Find the transitive closure

15 marks · Part CAsked in: Jul25P2 Q26

Use Warshall's algorithm to find the transitive closure on .

③ Learn · step 1 of 7

Build the initial matrix and state the update rule

Write the elements in the displayed order across both axes. For each ordered pair , put a one in row , column . Every unlisted pair gets zero. This is , which records the given edges before using intermediate vertices.

1 of 4
③ Learn · step 2 of 7

Allow intermediate vertex 1

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 3 of 7

Allow intermediate vertex 2

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 4 of 7

Allow intermediate vertex 3

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 5 of 7

Allow intermediate vertex 4

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 6 of 7

Allow intermediate vertex 5

Read column of . The rows with ones are . Those vertices can reach .

1 of 4
③ Learn · step 7 of 7

Check positive-length reachability from each start

Read the ones of the last matrix row by row. After all passes every vertex may be used in the middle, so these pairs form the transitive closure.

1 of 5
④ Exam answer

Write this in the booklet

Form the initial relation matrix. In pass apply the Boolean update below to allow vertex as an intermediate vertex.

12345
101000
210100
300010
401010
510001

For intermediate , the new pairs are .

12345
101000
211100
300010
401010
511001

For intermediate , the new pairs are .

12345
111100
211100
300010
411110
511101

For intermediate , the new pairs are .

12345
111110
211110
300010
411110
511111

For intermediate , the new pairs are .

12345
111110
211110
311110
411110
511111

For intermediate , no new pair is needed.

12345
111110
211110
311110
411110
511111

The final matrix contains exactly the positive-length paths with all intermediate vertices allowed. Its ones give

② Question

Find the transitive closure

15 marks · Part CAsked in: May26 Q26

Use Warshall's algorithm to find the transitive closure on .

③ Learn · step 1 of 7

Build the initial matrix and state the update rule

Write the elements in the displayed order across both axes. For each ordered pair , put a one in row , column . Every unlisted pair gets zero. This is , which records the given edges before using intermediate vertices.

1 of 4
③ Learn · step 2 of 7

Allow intermediate vertex 1

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 3 of 7

Allow intermediate vertex 2

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 4 of 7

Allow intermediate vertex 3

Read column of . The rows with ones are . Those vertices can reach .

1 of 5
③ Learn · step 5 of 7

Allow intermediate vertex 4

Read column of . The rows with ones are . Those vertices can reach .

1 of 4
③ Learn · step 6 of 7

Allow intermediate vertex 5

Read column of . The rows with ones are . Those vertices can reach .

1 of 4
③ Learn · step 7 of 7

Check positive-length reachability from each start

Read the ones of the last matrix row by row. After all passes every vertex may be used in the middle, so these pairs form the transitive closure.

1 of 5
④ Exam answer

Write this in the booklet

Form the initial relation matrix. In pass apply the Boolean update below to allow vertex as an intermediate vertex.

12345
101000
200100
300010
400000
510010

For intermediate , the new pairs are .

12345
101000
200100
300010
400000
511010

For intermediate , the new pairs are .

12345
101100
200100
300010
400000
511110

For intermediate , the new pairs are .

12345
101110
200110
300010
400000
511110

For intermediate , no new pair is needed.

12345
101110
200110
300010
400000
511110

For intermediate , no new pair is needed.

12345
101110
200110
300010
400000
511110

The final matrix contains exactly the positive-length paths with all intermediate vertices allowed. Its ones give

① Topic

One-to-one, onto and inverse

Definition · Bijection
A function is injective if . It is surjective if every has some preimage . It is bijective if it is both. A bijection has an inverse that takes each output to its unique preimage.
Samjho
One-one mein do alag inputs ek output par nahi aate. Onto mein codomain ka har element hit hota hai. Dono conditions milti hain toh arrow ko ulta chala sakte ho.
Exam tip After solving for a preimage, verify that it belongs to the domain and gives the required output.

Opens chatgpt.com in a new tab with a ready-made prompt for this topic.

② Question

Prove a piecewise function is bijective

8–10 marks · Part BAsked in: Dec23 Q21, Jul25 Q21b

Prove that the following function from to is one-to-one and onto, and find its inverse.

③ Learn · step 1 of 4

Determine which outputs each branch gives

Use , as required by . A positive integer has form with , so is positive and odd. For a nonpositive integer write with . Then is nonnegative and even. Both branches land in the declared codomain.

③ Learn · step 2 of 4

Compare equal outputs in all three cases

Assume . Separate the possible branches, because the formula used for one input depends on its sign.

1 of 6
③ Learn · step 3 of 4

Find and verify a preimage for every target

Take an arbitrary target . An odd target must come from the positive branch. Solve that equation first.

1 of 7
③ Learn · step 4 of 4

Check the forward and inverse formulas

Check both branches, including the boundary at zero. First use the sign of the input to choose the forward formula. Then use the parity of the output to choose the inverse formula. The last column must give back the starting input.

The table is empty. Press Next step to fill it one row at a time (6 steps).

InputForward calculationInverse calculation
Common mistake Zero belongs to the nonpositive branch. Use the codomain that includes zero, and use the parity of the target to choose the inverse branch.
Understand it on YouTube
④ Exam answer

Write this in the booklet

Use , as required by . A positive integer has form with , so is positive and odd. For a nonpositive integer write with . Then is nonnegative and even. Both branches land in the declared codomain.

Assume . Separate the possible branches, because the formula used for one input depends on its sign.

When both inputs are positive, replace both outputs by the odd formula. Add one to each side and divide by two.

When both inputs are nonpositive, replace each output by the even formula and divide by negative two.

When exactly one input is positive, one output is odd and the other is even. Equality is impossible. The two possible equal-output cases both force equal inputs, so the function is injective.

Take an arbitrary target . An odd target must come from the positive branch. Solve that equation first.

Because is odd and positive, this input is an integer above zero. Substitute it into the positive branch to obtain .

An even target must come from the nonpositive branch. Solve its equation.

Because is nonnegative and even, this is a nonpositive integer. Substitution gives , including the target zero. Thus every target has a preimage. Injectivity makes each preimage unique, yielding the inverse.

② Question

Find the inverse of the first rational function

4 marks · Part BAsked in: Nov25 Q21b(i)
Show that , given by , is one-to-one and onto. Find its inverse.
③ Learn · step 1 of 3

Check the domain and prove injectivity

The domain excludes the pole. The value one would require , so the function maps into its stated codomain. If , cross-multiplying gives , hence and . Thus it is injective.

③ Learn · step 2 of 3

Solve for an arbitrary target

For an arbitrary target , multiply by the denominator, expand the left side, and isolate the input term.

③ Learn · step 3 of 3

Verify the proposed preimage

Check that the proposed input is allowed and that it gives the correct output.

1 of 3
④ Exam answer

Write this in the booklet

The denominator is nonzero on the given domain and the output cannot equal one. If the outputs at two inputs agree, cross multiplication gives , so the inputs agree.

For any , solving gives . Its denominator in the original function is , and substitution gives . Hence the function is bijective and .

② Question

Find the inverse of the second rational function

8 marks · Part BAsked in: Jul25P2 Q21a
Prove that is one-to-one and onto, and find its inverse. The printed version uses . An alternate version uses .
③ Learn · step 1 of 3

Check the excluded values and compare equal outputs

For the scanned question, , so the value one is excluded. If , then , which simplifies to . Thus and the map is injective.

③ Learn · step 2 of 3

Solve the output equation

For an arbitrary target , multiply by the denominator and collect both terms with the input on the same side.

③ Learn · step 3 of 3

Substitute and check the alternate numerator

1 of 3
④ Exam answer

Write this in the booklet

For the printed numerator, write . This lies outside and equal outputs force equal denominators, so the map is injective.

For any , set . Then and . Thus .

If the numerator is instead , the same computation with gives .

② Question

Invert a composition of functions

8 marks · Part BAsked in: Nov24 Q21b
If and are invertible, show that is invertible and prove .
③ Learn · step 1 of 3

Choose an inverse with the correct domain

Set . By associativity of function composition and the defining identities of the inverses,

③ Learn · step 2 of 3

Cancel the forward and inverse maps in each order

③ Learn · step 3 of 3

Trace an arbitrary starting element

Check the order on an arbitrary . First sends it to . Then sends that result to . The forward composition retraces those moves in the opposite order and ends at . Starting with an arbitrary uses the other displayed composition and returns .

Thus is a two-sided inverse of . By uniqueness, .

④ Exam answer

Write this in the booklet

Let . Associativity and the two inverse identities give

Therefore the composite has the two-sided inverse .

① Topic

Set difference, identities and partitions

Definition · Set difference and minsets
The difference consists of elements of outside . An elementary minset is an intersection obtained by taking each generating set or its complement once. The nonempty minsets partition the universe. The corresponding elementary maxsets are the complements of those intersections.
Samjho
Minus ka matlab pehle set ke andar raho aur doosre set ke bahar. Minsets ke liye har element ka andar ya bahar ka pattern likho. Ek hi pattern wale elements ek group mein aate hain.
Exam tip To prove a set identity, compare membership conditions or rewrite differences with complements and use set laws. Membership conditions also identify the region to shade.

Opens chatgpt.com in a new tab with a ready-made prompt for this topic.

② Question

Prove and shade a set identity

8 marks · Part BAsked in: May24 Q21a, May25 Q21a
Prove analytically. May25 also requests a graphical proof.
③ Learn · step 1 of 3

Follow a single element through both sides

On the left, the outer intersection requires membership in . The difference requires membership in and exclusion from . On the right, start in . While inside , exclusion from is exactly exclusion from . Thus both sides ask for the same three memberships.

③ Learn · step 2 of 3

Use complement, De Morgan, and distribution in order

Replace each difference by an intersection with a complement. Open the complemented intersection using De Morgan's law, then distribute across the resulting union. One term contains both and , so that term is empty.

Common mistake When complementing an intersection, complement each input and change the intersection into a union.
③ Learn · step 3 of 3

Check every Venn region and locate the shading

Use one row per membership pattern. A one means the element belongs to that column's set. Compute the intermediate membership columns first. For a difference, enter one exactly when the element belongs to the first set and is outside the second.

1 of 4
④ Exam answer

Write this in the booklet

Replace the difference by an intersection with a complement. De Morgan's law changes the complemented intersection to a union. Distribute the intersection across that union.

For a membership proof, take any . The left side requires and . On the right side, once holds, excluding is equivalent to excluding . Thus the conditions agree in both directions.

For the graphical proof, draw two copies of a three-circle Venn diagram with circles labelled . On the first copy, take the part of outside and keep its part inside . On the second, take the lens and erase its overlap with , which is the central triple intersection. Shade only the same lens segment outside in each drawing.

ABCShade
Shade the marked lens segment inside A and B and outside C in both drawings.

Use one row per membership pattern. A one means the element belongs to that column's set. Compute the intermediate membership columns first. For a difference, enter one exactly when the element belongs to the first set and is outside the second.

Compare the two final columns row by row. They agree. Shade the row with one in both final columns, the portion inside the first two circles and outside the third.

② Question

Distribute a fixed exclusion across an intersection

8 marks · Part BAsked in: Jul24 Q21a
Prove by membership and verify it using set identities.
③ Learn · step 1 of 3

Translate the set difference into membership

For an arbitrary , membership on the left requires , and . These conditions are equivalent to membership in both and . This proves both inclusions. For the algebraic check, expand both differences and use associativity, commutativity and idempotence of intersection.

③ Learn · step 2 of 3

Simplify the two complements algebraically

③ Learn · step 3 of 3

Check which membership patterns survive

Use one row for each membership pattern. A one means membership in the corresponding set.

1 of 3
④ Exam answer

Write this in the booklet

For arbitrary , belonging to means belonging to both sets and lying outside . This is exactly what membership in both differences requires, proving both inclusions.

② Question

Subtract an intersection using De Morgan’s law

5 marks · Part CAsked in: Jul25 Q27(i)
Prove analytically that .
③ Learn · step 1 of 3

Translate the exclusion using a complement

Write the difference as intersection with the complement of . Apply De Morgan's law, distribute the intersection, then return to difference notation.

③ Learn · step 2 of 3

Distribute the remaining intersection

③ Learn · step 3 of 3

Check the membership cases

Use one row for each membership pattern. A one means membership in the corresponding set.

1 of 4
④ Exam answer

Write this in the booklet

Taking complements in the common universe, De Morgan’s law and distributivity give

Thus the identity holds for arbitrary sets.

② Question

Find minsets and maxsets and prove the partition

8 marks · Part BAsked in: Jul25P2 Q21b
Find the minsets and maxsets generated by in . Prove that the minsets form a partition.
③ Learn · step 1 of 3

Assign a membership pattern to every element

Use the declared universe when taking complements. Read the bits in the order of the generating sets. The first table checks each element against all three sets and gives its unique membership pattern.

The table is empty. Press Next step to fill it one row at a time (10 steps).

ElementIn A?In B?In C?Pattern
③ Learn · step 2 of 3

Construct the intersections and their complementary unions

A one chooses the set and a zero chooses its complement. Intersect the three choices to obtain the minset candidate.

1 of 3
③ Learn · step 3 of 3

Verify disjointness and coverage

Every element belongs to the block for its unique pattern. Different patterns disagree on at least one bit, so their blocks are disjoint.

1 of 3
④ Exam answer

Write this in the booklet

Complement each elementary intersection in the given universe to obtain the corresponding elementary union.

IntersectionMinset candidateComplementary unionMaxset candidate

The nonempty intersections are . Every element has one and only one membership pattern, so these intersections partition .

The proper maxsets are complements of those blocks. If all elementary unions are listed, also appears as the complement of each empty intersection.

① Topic

Partial orders and covering pairs

Definition · Poset and cover
A partial order is a reflexive, antisymmetric and transitive relation. A partially ordered set is a set equipped with a partial order. An element covers when and no element satisfies . A Hasse diagram draws only covers and places the smaller element lower.
Samjho
Digraph mein pehle self-loops hatao. Phir woh arrows hatao jinke liye beech mein koi element milta hai. Ab chhota neeche banao aur arrowheads hata do.
Exam tip For divisibility, a pair can be a cover even when the quotient is composite, if the intermediate divisors are absent from the given set.

Opens chatgpt.com in a new tab with a ready-made prompt for this topic.

② Question

Prove inclusion gives a poset and draw it

8 or 15 marksAsked in: Nov24 Q26, May25 Q21b
Define a poset and show that inclusion is a partial order on the power set of . Draw the Hasse diagram. May25 asks for the diagram.
③ Learn · step 1 of 4

Prove each axiom for inclusion

A poset is a set equipped with a reflexive, antisymmetric and transitive relation. Verify the requirements one at a time.

1 of 4
③ Learn · step 2 of 4

List the strict successors and remove loops

In the relation digraph, each element has a loop. Remove all the loops first. The diagram uses height to show which of two distinct elements lies above the other.

The table is empty. Press Next step to fill it one row at a time (8 steps).

ElementLoop removedStrict successors before removing transitive arrows
③ Learn · step 3 of 4

Test each strict arrow for an intermediate subset

Read each strict pair as a proposed edge. Search the given set for an element strictly between its endpoints. A witness lets you follow two shorter links, so cross out that direct arrow. If no witness exists, keep the pair as a cover.

1 of 3
③ Learn · step 4 of 4

Draw the covers and check an upward chain

Draw one level for each subset size. Place the empty set at the bottom. In a cover exactly one new element is added. Whenever two or more are added, adjoining just one gives an intermediate subset, which explains each deletion in the table.

1 of 4
④ Exam answer

Write this in the booklet

A poset is a set equipped with a reflexive, antisymmetric and transitive relation. Verify the requirements one at a time.

Reflexivity. Take any subset . Every member of belongs to , so .

Antisymmetry. Assume and . The first inclusion means every member of is in . The second gives the reverse implication. Having exactly the same members makes the sets equal.

Transitivity. Assume and . Take any element of . The first inclusion places it in , and the second places it in . Thus . All three requirements hold, so this is a poset.

In the relation digraph, each element has a loop. Remove all the loops first. The diagram uses height to show which of two distinct elements lies above the other.

ElementLoop removedStrict successors before removing transitive arrows

Read each strict pair as a proposed edge. Search the given set for an element strictly between its endpoints. A witness lets you follow two shorter links, so cross out that direct arrow. If no witness exists, keep the pair as a cover.

Strict pairA two-link route when one existsDecision
No intermediate element exists in the given set.Keep the cover.
No intermediate element exists in the given set.Keep the cover.
No intermediate element exists in the given set.Keep the cover.
Remove the direct arrow.
Remove the direct arrow.
Remove the direct arrow.
Remove the direct arrow.
No intermediate element exists in the given set.Keep the cover.
No intermediate element exists in the given set.Keep the cover.
Remove the direct arrow.
No intermediate element exists in the given set.Keep the cover.
No intermediate element exists in the given set.Keep the cover.
Remove the direct arrow.
No intermediate element exists in the given set.Keep the cover.
No intermediate element exists in the given set.Keep the cover.
Remove the direct arrow.
No intermediate element exists in the given set.Keep the cover.
No intermediate element exists in the given set.Keep the cover.
No intermediate element exists in the given set.Keep the cover.

The deleted strict pairs are .

Draw one level for each subset size. Place the empty set at the bottom. In a cover exactly one new element is added. Whenever two or more are added, adjoining just one gives an intermediate subset, which explains each deletion in the table.

∅{a}{b}{c}{a,b}{a,c}{b,c}{a,b,c}
Hasse diagram of inclusion on P({a,b,c})

Check the diagram from bottom to top. To reach the full set, add , then , then . Each of these moves is present as a covering edge, so the complete inclusion is visible even after removing its direct arrow.

Common mistake Remove the arrowheads after placing the smaller element below the larger one. An upward chain of covers still represents inclusion between its endpoints.
② Question

Draw the divisibility Hasse diagram

8 marks · Part BAsked in: Jul25 Q21a

Define a partially ordered set and draw the Hasse diagram for .

Exam tip The printed wording “is a divisor of 2” is read as ordinary divisibility between elements of the divisor set of 30.
③ Learn · step 1 of 5

Check the partial-order axioms

A poset is a set equipped with a reflexive, antisymmetric and transitive relation. Check the three axioms on the given positive integers.

1 of 5
③ Learn · step 2 of 5

List the divisibility arrows and remove loops

In the relation digraph, each element has a loop. Remove all the loops first. The diagram uses height to show which of two distinct elements lies above the other.

The table is empty. Press Next step to fill it one row at a time (8 steps).

ElementLoop removedStrict successors before removing transitive arrows
③ Learn · step 3 of 5

Test the remaining arrows for intermediate divisors

Read each strict pair as a proposed edge. Search the given set for an element strictly between its endpoints. A witness lets you follow two shorter links, so cross out that direct arrow. If no witness exists, keep the pair as a cover.

The table is empty. Press Next step to fill it one row at a time (19 steps).

Strict pairA two-link route when one existsDecision

The deleted strict pairs are .

③ Learn · step 4 of 5

Draw only the covering pairs

Draw the surviving covers with the divisor below its multiple, then remove the arrowheads.

1 of 3
③ Learn · step 5 of 5

Check upward reachability against divisibility

Read all upward paths starting at each vertex. Their endpoints should equal its strict multiples in the stated set.

1 of 3
④ Exam answer

Write this in the booklet

Divisibility on the stated positive integers is reflexive because every integer divides itself. If each of two integers divides the other, their positive quotient and its reciprocal are both integers, so they are equal. Divisibility is transitive because the product of integer quotients is an integer. Hence this is a partial order.

The vertices are . Starting with every divisible pair, delete the diagonal pairs and any strict pair admitting an intermediate divisor from the set. The remaining covers are

12356101530
Hasse diagram of divisibility
② Question

Draw the divisibility Hasse diagram

8 marks · Part BAsked in: May24 Q21b

Draw the Hasse diagram for divisibility on . Start from the digraph and prove that divisibility is a partial order.

③ Learn · step 1 of 5

Check the partial-order axioms

A poset is a set equipped with a reflexive, antisymmetric and transitive relation. Check the three axioms on the given positive integers.

1 of 4
③ Learn · step 2 of 5

List the divisibility arrows and remove loops

In the relation digraph, each element has a loop. Remove all the loops first. The diagram uses height to show which of two distinct elements lies above the other.

The table is empty. Press Next step to fill it one row at a time (8 steps).

ElementLoop removedStrict successors before removing transitive arrows
③ Learn · step 3 of 5

Test the remaining arrows for intermediate divisors

Read each strict pair as a proposed edge. Search the given set for an element strictly between its endpoints. A witness lets you follow two shorter links, so cross out that direct arrow. If no witness exists, keep the pair as a cover.

The table is empty. Press Next step to fill it one row at a time (12 steps).

Strict pairA two-link route when one existsDecision

The deleted strict pairs are .

③ Learn · step 4 of 5

Draw only the covering pairs

Draw the surviving covers with the divisor below its multiple, then remove the arrowheads.

1 of 3
③ Learn · step 5 of 5

Check upward reachability against divisibility

Read all upward paths starting at each vertex. Their endpoints should equal its strict multiples in the stated set.

1 of 3
④ Exam answer

Write this in the booklet

Divisibility on the stated positive integers is reflexive because every integer divides itself. If each of two integers divides the other, their positive quotient and its reciprocal are both integers, so they are equal. Divisibility is transitive because the product of integer quotients is an integer. Hence this is a partial order.

The vertices are . Starting with every divisible pair, delete the diagonal pairs and any strict pair admitting an intermediate divisor from the set. The remaining covers are

15237468
Hasse diagram of divisibility
② Question

Draw the divisibility Hasse diagram

8 marks · Part BAsked in: Jul24 Q21b

Draw the Hasse diagram for divisibility on . Start from the digraph and prove that divisibility is a partial order.

③ Learn · step 1 of 5

Check the partial-order axioms

A poset is a set equipped with a reflexive, antisymmetric and transitive relation. Check the three axioms on the given positive integers.

1 of 4
③ Learn · step 2 of 5

List the divisibility arrows and remove loops

In the relation digraph, each element has a loop. Remove all the loops first. The diagram uses height to show which of two distinct elements lies above the other.

The table is empty. Press Next step to fill it one row at a time (7 steps).

ElementLoop removedStrict successors before removing transitive arrows
③ Learn · step 3 of 5

Test the remaining arrows for intermediate divisors

Read each strict pair as a proposed edge. Search the given set for an element strictly between its endpoints. A witness lets you follow two shorter links, so cross out that direct arrow. If no witness exists, keep the pair as a cover.

The table is empty. Press Next step to fill it one row at a time (10 steps).

Strict pairA two-link route when one existsDecision

The deleted strict pairs are .

③ Learn · step 4 of 5

Draw only the covering pairs

Draw the surviving covers with the divisor below its multiple, then remove the arrowheads.

1 of 3
③ Learn · step 5 of 5

Check upward reachability against divisibility

Read all upward paths starting at each vertex. Their endpoints should equal its strict multiples in the stated set.

1 of 3
④ Exam answer

Write this in the booklet

Divisibility on the stated positive integers is reflexive because every integer divides itself. If each of two integers divides the other, their positive quotient and its reciprocal are both integers, so they are equal. Divisibility is transitive because the product of integer quotients is an integer. Hence this is a partial order.

The vertices are . Starting with every divisible pair, delete the diagonal pairs and any strict pair admitting an intermediate divisor from the set. The remaining covers are

25410251220
Hasse diagram of divisibility
② Question

Draw the divisibility Hasse diagram

4 marks · Part BAsked in: Nov25 Q21b(ii)

Draw the Hasse diagram for divisibility on .

③ Learn · step 1 of 5

Check the partial-order axioms

A poset is a set equipped with a reflexive, antisymmetric and transitive relation. Check the three axioms on the given positive integers.

1 of 4
③ Learn · step 2 of 5

List the divisibility arrows and remove loops

In the relation digraph, each element has a loop. Remove all the loops first. The diagram uses height to show which of two distinct elements lies above the other.

The table is empty. Press Next step to fill it one row at a time (10 steps).

ElementLoop removedStrict successors before removing transitive arrows
③ Learn · step 3 of 5

Test the remaining arrows for intermediate divisors

Read each strict pair as a proposed edge. Search the given set for an element strictly between its endpoints. A witness lets you follow two shorter links, so cross out that direct arrow. If no witness exists, keep the pair as a cover.

The table is empty. Press Next step to fill it one row at a time (29 steps).

Strict pairA two-link route when one existsDecision

The deleted strict pairs are .

③ Learn · step 4 of 5

Draw only the covering pairs

Draw the surviving covers with the divisor below its multiple, then remove the arrowheads.

1 of 3
③ Learn · step 5 of 5

Check upward reachability against divisibility

Read all upward paths starting at each vertex. Their endpoints should equal its strict multiples in the stated set.

1 of 3
④ Exam answer

Write this in the booklet

Divisibility on the stated positive integers is reflexive because every integer divides itself. If each of two integers divides the other, their positive quotient and its reciprocal are both integers, so they are equal. Divisibility is transitive because the product of integer quotients is an integer. Hence this is a partial order.

The vertices are . Starting with every divisible pair, delete the diagonal pairs and any strict pair admitting an intermediate divisor from the set. The remaining covers are

1234698121824
Hasse diagram of divisibility
① Topic

Test a relation and build its closures

Definition · Relation and closure
A binary relation on is a subset of . A closure for a property is the smallest relation on the same set that contains the original relation and has that property.
PropertyCondition for all elementsMatrix test
ReflexiveEvery diagonal entry must be one.
Symmetric
Antisymmetric entrywise.
Transitive
Samjho
Reflexive ke liye diagonal dekho. Symmetric mein har arrow ka reverse chahiye. Transitive mein jahan do arrows jod sakte ho, wahan seedha arrow bhi chahiye.
Exam tip One counterexample disproves a property. An implication holds if there is no pair or chain that satisfies its premise.

Opens chatgpt.com in a new tab with a ready-made prompt for this topic.

② Question

Construct a relation from its rule

1 mark · Part AAsked in: Jul24 Q4, May25 Q3
For , list .
③ Learn · step 1 of 3

Test all ordered pairs against the rule

For each row choose an ordered pair from the Cartesian product. Compute the sum and compare it to the strict threshold. An equal sum fails the strict comparison.

1 of 3
③ Learn · step 2 of 3

Check all four properties on the constructed relation

For reflexivity, check every diagonal pair. Any missing loop defeats reflexivity.

1 of 7
③ Learn · step 3 of 3

Read closures as additions to the matrix

Since both inputs are at most five, their largest possible sum is . The initial matrix is therefore all zero.

1 of 4
④ Exam answer

Write this in the booklet

For any , we have and . Therefore and no pair satisfies the strict inequality. Thus , the empty relation.

The empty relation on this nonempty set is irreflexive, symmetric, antisymmetric and transitive. It has no diagonal pairs, and each implication about its pairs holds vacuously.

② Question

Complete the diagonal of the relation

1 mark · Part AAsked in: May26 Q2
Find the reflexive closure of on .
③ Learn · step 1 of 2

Find the missing loop

The table is empty. Press Next step to fill it one row at a time (3 steps).

Required pairAction
③ Learn · step 2 of 2

Prove the extension is minimal

The diagonal pairs and are present. Add to obtain . Every reflexive superrelation must contain that pair, and it is enough.

④ Exam answer

Write this in the booklet

The reflexive closure is . Exactly one required loop, , was absent.

② Question

Classify the relation given by three pairs

1 mark · Part AAsked in: Nov25 Q1
Classify on .
③ Learn · step 1 of 2

Test the defining properties on the given pairs

For reflexivity, check every diagonal pair. Any missing loop defeats reflexivity.

1 of 7
③ Learn · step 2 of 2

Identify the property tested by the options

The only two-step path is , and is already present. Thus the relation is transitive, option A. Every off-diagonal arrow lacks its reverse, so the relation is also antisymmetric. The missing loop at one and missing reverse show that reflexivity and symmetry fail.

④ Exam answer

Write this in the booklet

Choose transitive. The only composable pair of arrows gives , which is present. The reverse of and the loop are absent. Also, no pair of distinct elements has both orientations, so antisymmetry holds.

② Question

Classify the relation represented by a block matrix

1 mark · Part AAsked in: Nov25 Q4
110
110
001
Classify this relation on .
③ Learn · step 1 of 2

Read loops, reverse pairs and paths from the matrix

For reflexivity, check every diagonal pair. Any missing loop defeats reflexivity.

1 of 7
③ Learn · step 2 of 2

Check that paths stay within their blocks

The diagonal is all ones and the matrix equals its transpose. A two-step path starting in stays in that block, where every entry is one. A two-step path starting at three ends at three, where the diagonal is one. Thus and all three properties hold, option C.

④ Exam answer

Write this in the booklet

Choose the equivalence relation option. The diagonal is all ones, the matrix is symmetric and its Boolean square equals the original matrix, giving reflexivity, symmetry and transitivity.

① Topic

Equivalence classes form a partition

Definition · Equivalence relation
An equivalence relation is reflexive, symmetric and transitive. The class of is . These classes form a partition, a family of nonempty, pairwise disjoint subsets whose union is the whole set.
Samjho
Ek class mein sab elements ek doosre se related hain. Agar do classes ka ek member common hai, toh symmetry aur transitivity se dono classes poori same ho jaati hain.
Exam tip For divisibility-based relations, rewrite the condition in terms of a difference. Elements with the same remainder then belong to the same class.

Opens chatgpt.com in a new tab with a ready-made prompt for this topic.

② Question

Prove an equivalence relation on the integers

8 marks · Part BAsked in: May26 Q21a
On , let exactly when for some integer . Prove that is an equivalence relation.
③ Learn · step 1 of 3

Find the divisibility structure and prove all three properties

Rewrite . Since is coprime to , the relation holds precisely when . The classes are the residue classes modulo seven. Here is the direct proof using the original expressions.

1 of 10
③ Learn · step 2 of 3

Read the classes from the divisibility rule

Subtract from the original expression. The difference is . Hence exactly when . Because seven is prime and does not divide three, this is equivalent to .

Write both integers as multiples of seven plus remainders between zero and six. Their difference is divisible by seven exactly when the remainders are equal. Each remainder therefore determines one class.

③ Learn · step 3 of 3

Check concrete pairs and a two-step chain

Check concrete pairs using the rule from the question. For each pair, multiply the coordinates by their stated coefficients, add them, and divide by seven to check for remainder zero. The rows include a pair, its reverse, a second link and its required shortcut, followed by a pair in different residue classes.

The table is empty. Press Next step to fill it one row at a time (5 steps).

PairCompute the test expressionDivision remainderRelated?
Common mistake Examples check the algebra. Proving an equivalence relation still requires the three properties for arbitrary integers.
④ Exam answer

Write this in the booklet

For reflexivity, take any integer . Then is a multiple of seven, so .

For symmetry, suppose and write for an integer . Reversing the pair gives

Choose because subtracting the known expression leaves precisely the swapped coefficients.

The quantity is an integer, so .

For transitivity, suppose and . Add the equations and move the middle term to the right.

The quantity is an integer, so . The relation is reflexive, symmetric and transitive, hence an equivalence relation.

② Question

Classify divisibility of a difference by three

1 mark · Part AAsked in: Dec23 Q3
Classify the relation on given by .
③ Learn · step 1 of 2

Test the relation axioms

Every integer is related to itself because . If , then , giving symmetry. If also , then , giving transitivity. Thus it is an equivalence relation. Its classes are the integers congruent to zero, one or two modulo three.

③ Learn · step 2 of 2

Identify the classes by the division algorithm

Write each integer as a multiple of three plus a remainder in . The difference is divisible by three exactly when the remainders agree.

④ Exam answer

Write this in the booklet

This is congruence modulo three, an equivalence relation. Zero, negation, and addition of differences give reflexivity, symmetry, and transitivity respectively.

② Question

Recover a relation from a partition

1 mark · Part AAsked in: May26 Q3
What type of relation does every partition determine?
③ Learn · step 1 of 2

Relate elements in the same block

Relate two elements when they share a block. Each element lies in a block, so it relates to itself. Sharing a block is symmetric. If share one block and share another, both blocks contain and must be the same. Hence share that block. This defines an equivalence relation.

③ Learn · step 2 of 2

Check that the original blocks are recovered

The class of any element is precisely its block. Choosing a different element in that block gives the same class because distinct blocks are disjoint.

④ Exam answer

Write this in the booklet

A partition determines an equivalence relation by declaring two elements related exactly when they share a block.

① Topic

Translate operations to relation matrices

Definition · Relation matrix
For an ordered finite set , the relation matrix has a one at exactly when , and a zero otherwise.
OperationMatrix rule
Use entrywise OR.
Use entrywise AND.
Use entrywise XOR, with one where the entries differ.
Transpose the relation matrix.
Flip every entry of the matrix.
Samjho
Union mein dono matrices ki same cell dekho. Inverse ke liye row aur column badal do. Product mein ek row aur ek column ke common one ko dhoondo.
Exam tip Use the same element order for both axes when transposing a matrix or multiplying it by another relation matrix.

Opens chatgpt.com in a new tab with a ready-made prompt for this topic.

② Question

Compute four relation matrices

8 marks · Part BAsked in: May26 Q21b
010
111
100
010
011
111
Find the matrices for , , and .
③ Learn · step 1 of 3

Compare corresponding cells for the three set operations

Compare entries at the same row and column. For the union, enter one if either input is one. For the intersection, enter one if both are one. For the symmetric difference, enter one if exactly one input is one.

1 of 4
③ Learn · step 2 of 3

Find every Boolean product entry

For an output cell, hold the first matrix's row and the second matrix's column fixed. Apply AND to each pair of bits at the same middle index, then OR the results. A one means at least one middle element supplies both steps.

1 of 4
③ Learn · step 3 of 3

Check the product using selected rows

Read the ones in each row of the first matrix. They identify the rows of the second matrix to combine with OR. This gives a second way to calculate the same product a row at a time.

The table is empty. Press Next step to fill it one row at a time (3 steps).

Row of the first matrixRows of the second matrix selectedExpected product row
Understand it on YouTube
④ Exam answer

Write this in the booklet

Compare entries at the same row and column. For the union, enter one if either input is one. For the intersection, enter one if both are one. For the symmetric difference, enter one if exactly one input is one.

CellInput bitsUnionIntersectionSymmetric difference

To assemble each matrix, read its operation's column in row order and fill the displayed cells.

010
111
111
010
011
100
000
100
011

For an output cell, hold the first matrix's row and the second matrix's column fixed. Apply AND to each pair of bits at the same middle index, then OR the results. A one means at least one middle element supplies both steps.

Output cellTest every middle indexOR of the AND results
011
111
010

Check the product by reading the first row of . Its only one selects row two of . Those are exactly the second-step destinations, so the first output row must equal the second row of .

Common mistake For Boolean composition, a cell is either zero or one. OR collapses several successful middle indices to a single one.
② Question

Compute the parity relation and its three derived matrices

8 marks · Part BAsked in: Nov25 Q21a
Let and let exactly when is even. Find the matrices of .
③ Learn · step 1 of 4

Build the matrix by comparing the parities

A sum is even when the summands have the same parity. Keep one if both labels are odd or both are even.

1 of 3
③ Learn · step 2 of 4

Transpose and complement the matrix

Reverse every pair by transposing the matrix. The result is unchanged because equal parity is symmetric.

1 of 4
③ Learn · step 3 of 4

Calculate the Boolean square

For an output cell, hold the first matrix's row and the second matrix's column fixed. Apply AND to each pair of bits at the same middle index, then OR the results. A one means at least one middle element supplies both steps.

The table is empty. Press Next step to fill it one row at a time (9 steps).

Output cellTest every middle indexOR of the AND results
101
010
101
③ Learn · step 4 of 4

Check the square by selecting whole rows

The first and third rows select the identical odd rows, so their OR is just the original odd row.

1 of 3
④ Exam answer

Write this in the booklet

Using row and column order , put a one for each pair with equal parity. Transposition gives the inverse, and flipping every entry gives the complement.

101
010
101
010
101
010

For the Boolean square, each row is the OR of the same-parity rows of the original matrix. Those rows are equal, so the square is unchanged.

101
010
101
① Topic

Compose two relations in the SRM order

Definition · Relation composition
In the SRM convention for relations, if some middle element satisfies and . Follow first and then , so .
Samjho
Pehle R ki arrow follow karo. Jahan pahunchte ho, wahan se S ki arrow follow karo. Ab bas pehla aur aakhri element pair mein likho, aur duplicate pairs ek baar lo.
Exam tip The relation convention comes from May24 Q2. In function notation, .

Opens chatgpt.com in a new tab with a ready-made prompt for this topic.

② Question

Find the composition by matching endpoints

1 mark · Part AAsked in: May24 Q2

Find on for the relations below.

③ Learn · step 1 of 2

Trace every eligible pair of arrows

Read each pair of as a first arrow. Take its endpoint as the starting point of the second arrow and look through all pairs of for a match. The resulting pair records the very first and very last vertices.

1 of 4
③ Learn · step 2 of 2

Verify the pairs with a Boolean product

1010
0000
0101
0100
0000
1000
0011
1000
1 of 5
④ Exam answer

Write this in the booklet

Read each pair of as a first arrow. Take its endpoint as the starting point of the second arrow and look through all pairs of for a match. The resulting pair records the very first and very last vertices.

First arrow in RSecond arrows available in SPairs to keep
The second relation has no arrow starting there.This first arrow gives no composed pair.

Two different middle elements can give the same pair. A relation is a set, so keep that pair once. This gives option A.

1010
0000
0101
0100
0000
1000
0011
1000

For an output cell, hold the first matrix's row and the second matrix's column fixed. Apply AND to each pair of bits at the same middle index, then OR the results. A one means at least one middle element supplies both steps.

Output cellTest every middle indexOR of the AND results
0011
0000
1000
1000

Check the row with no first arrows. Its output row is all zeros because it offers no middle index at any column.

Practice

Part A quick check

PaperQuestionAnswerReason
May26 Q1Find for . and both elements are in .
May26 Q2Find the reflexive closure of on .The only missing diagonal pair is .
May26 Q3What relation does every partition determine?An equivalence relation.Two elements are related when they are in the same block.
May26 Q4How are reflexive and transitive edges represented in a Hasse diagram?They are omitted.Only covering pairs are drawn.
Nov25 Q1Classify on .Transitive.The only two-step path already has its direct pair.
Nov25 Q2Compute for .Substitute into .
Nov25 Q3Classify .Injective but not surjective.Equal outputs force equal inputs and the codomain value has no preimage.
Nov25 Q4Classify the relation with .Reflexive, symmetric and transitive.The all-one blocks on and are equivalence classes.
Dec23 Q1How many subsets does have?Each element is independently included or excluded.
Dec23 Q2How many three-element subsets does a ten-element set have?The elements are chosen without regard to order.
Dec23 Q3Classify on .An equivalence relation.Having the same remainder modulo three is reflexive, symmetric and transitive.
Dec23 Q4How many functions exist if ?The two domain elements each have four choices independently.
May24 Q1Simplify .The union already contains every element of .
May24 Q2Find for and .Option A results from matching the end of an pair to the start of an pair.
May24 Q3Find for bijections .Undo first, then undo .
May24 Q4, May25 Q4Compute for .Expand .
Jul24 Q1Name a reflexive, symmetric and transitive relation.An equivalence relation.These three conditions define equivalence.
Jul24 Q2Find the dual of .Swap union and intersection throughout while keeping the complement.
Jul24 Q3Given , what is ? if is a left inverse of .As printed, only the type follows.
Jul24 Q4, May25 Q3List pairs on with .Even the maximum sum is .
Nov24 Q1Classify when are bijections.A bijection.The composition preserves injectivity and surjectivity.
Nov24 Q2Find if .There are two independent choices per element.
Nov24 Q3What does imply?Symmetry.Every entry agrees with the entry for the reversed pair.
Nov24 Q4Select a partition of .The blocks are nonempty and disjoint, and cover the whole set.
May25 Q1Find .The element stays intact in its singleton subset.
May25 Q2Compare and .The element is different from .
Jul25 Q1When does hold?The two differences are disjoint, so equality forces both to be empty and gives mutual containment.
Jul25 Q2Find the inverse of .Reverse each ordered pair.
Jul25 Q3What does Warshall’s algorithm construct?The transitive closure.It adds every pair joined by a directed path of positive length.
Jul25 Q4Find the inverse of .Solve for .
Jul25P2 Q1Expand .An element of the left side lies outside at least one of the two subtracted sets.
Jul25P2 Q2How many relations are there on an -element set?Each of the possible pairs is independently included or excluded.
Jul25P2 Q3Classify on .An equivalence relation.Equality has all three equivalence properties.
Jul25P2 Q4What property does have if both maps are onto?It is onto.For each target choose a preimage under , then one under .

Unit 1 checklist

Before you move on, can you do each of these without looking?

0 of 8 topics complete

Not sure about one? Go back to it in the topic list and press Next step through the worked question once more. Ticks are saved in this browser. Final checklist for the subject →

Unit complete. Up next: Unit 2, Combinatorics & Number Theory.

All units