← Angles and shapes

Algorithms for congruence

An algorithm can decide whether two triangles are congruent, similar or neither by asking about their equal parts in a careful order: the congruence tests first, then the similarity conditions, and 'not enough to tell' when nothing fits. You test it on one pair of every kind, find what it misses, and fix it.

A design program has to decide whether two parts it is given will fit each other exactly, fit after scaling, or not fit at all. What questions should it ask, and in what order?

An algorithm can decide whether two triangles are congruent, similar or neither. It looks at the parts that are known to be equal (or in the same ratio) and asks yes/no questions about them.

Three things make it work:

PredictRead the problem and decide what you think before you try anything. A wrong guess is fine: it shows you what to look for.

Angles only

An algorithm asks only: 'Are all three pairs of angles equal? Yes: congruent.' Two triangles both have angles 40°, 60° and 80°, but one is twice as big. What does it say?

TryTry it on the board and compare the result with your prediction.

Six pairs

Answer "yes" only when the description tells you the parts are equal. Open The whole key to see the algorithm as numbered steps.

Try it yourselfYour edits are saved in this browser.

Follow the algorithm for all six pairs of triangles. Answer each question from what the description says is equal. How does it handle the twice-as-big pair, compared with your prediction?

Use the board. This ticks when you get there.

InvestigateWork out why it happens, one step at a time.

Build and check it

Why must the congruence questions come before "two pairs of angles equal"?

Read Raj's algorithm. Which step lets the SSA pair through?

Put the steps of a short algorithm in order. It leaves out RHS and the other similarity tests; the Run algorithm has them.

Pieces (click to add)
    Your program

      Raj tests his algorithm on triangles with sides 6 cm and 8 cm and a 30° angle opposite the 6 cm side, and it says congruent. Click the line that is wrong.

      Two triangles both have angles 50° and 60°. The sides between those angles are 5 cm and 10 cm. Trace the Run algorithm. Where does it end?

      ModifyChange the problem on purpose and see what happens.

      Find a gap and fix it

      Try it yourselfYour edits are saved in this browser.
      One triangle has sides 4 cm and 6 cm with 50° between them; the other has 8 cm and 12 cm with 50° between them. Where does the first algorithm (the Run board) send this pair?

      This algorithm has a new step G. Run it on all seven pairs. Does every pair, including the new one, reach the right answer?

      Use the board. This ticks when you get there.

      In the improved algorithm, how many questions does it ask before it says 'Neither, or not enough to tell'?

      Why must a fixed algorithm be tested on the old pairs again, not only the new one?

      PractiseA few on your own, to check you have it.

      Tracing algorithms

      Both triangles have a right angle, a 10 cm hypotenuse and a 6 cm side. Which answers does the algorithm give, in order?

      Both triangles have sides 7 cm and 5 cm, and a 40° angle opposite the 5 cm side (not between them). What should a correct algorithm say?

      Which describes the algorithm best?

      Review: in parallelogram ABCD, angle A = 75°. What is angle B, in degrees?

      MakeMake your own problem using what you have learned. Expect a few tries; that is normal.

      Your own algorithm

      Write an algorithm that sorts pairs of triangles into congruent, similar and not enough to tell. Draw it as a flowchart or write numbered steps. Swap with a partner: trace their algorithm on your test pairs, and describe in words how it works.

      Try it yourselfYour edits are saved in this browser.
      Need a hint?

      Start from the tests you know: SSS, SAS, ASA or AAS, RHS.

      Another hint

      Write one test pair of triangles for each answer, including SSA.

      For teachers

      Students follow, order, fix and design algorithms that decide whether two triangles are congruent, similar or neither, testing them on one pair of every kind (AC9M8SP04, nodes 1 and 2). About 45 minutes.

      Open the teacher guide: answers, solutions, slides and a worksheet.

      Students will be able to

      Before class

      Do the Run board yourself first. Students need the congruence tests, similar triangles and the shape-classifying algorithms from Year 7.

      The one idea: order matters (congruent before similar, because congruent triangles are similar too), every case needs a path, and the algorithm is only trusted once it has been tested on one pair of each kind. The common mistake is an algorithm that accepts any angle with two sides (Raj's SSA mistake).

      The board is the same key used for classifying shapes; each specimen is a pair of triangles. Answer "yes" only when the description says the parts are equal. The improved key adds step G for SAS similarity, a gap students find in Modify.

      Wider: compare two correct algorithms for the fewest questions; write the algorithm in Python with if and elif.

      Running the lesson

      1. Predict: ask what equal angles alone tell you.
      2. Run: ask which question separates congruent from similar.
      3. Investigate: ask Raj which angle the SSA pair has.
      4. Modify: ask what test case would have found the gap.
      5. Make: ask a partner to trace your algorithm on an SSA pair.

      The hard part (on purpose)

      Answering from what is known, not what could be worked out. Ask 'does the description say that?' before every yes.

      When students get stuck

      Stretch and support

      Stretch: Write the algorithm in Python with if, elif and else, and test it on your six pairs. What is the fewest number of questions that separates all the answers?

      Support: Give the questions on cards and the six test pairs on cards; students order the questions, then run each pair through.

      Where it leads

      This covers AC9M8SP04.

      Where it leads: algorithms in code (the Code pathways), and similar triangles in trigonometry (Year 10).

      What each step is for

      Now you can
      Practise this skillNew questions, new numbers each timeGet 3 right in a row to mark it practised.Next lesson21. Coordinates in 3DA third axis, z, gives a point in space three coordinates (x, y, z). Real systems do the same with other names: a drone, a building, a plane's latitude, longitude and altitude, and a 3D printer.