Turn on thread page Beta
    • Thread Starter

    Can someone please tell me how to do this trace table, I missed a lot of my classes and so i'm not sure how to do this.
    Here is the algorithm and trace table (The numbers held in an array Sift, where the size of the array is 10. All of the variables used in the algorithm are integers.).

    Name:  Algorithm.jpg
Views: 983
Size:  25.2 KB

    Name:  Trace Table.jpg
Views: 545
Size:  21.8 KB


    Basically you work through the algorithm line by line. Every time data CHANGES, you write the new value in the table working left to right and top to bottom.

    The hard bit is keeping track of where you are in the algorithm. I \ each line as I reach it and / when I leave it.
Submit reply
Turn on thread page Beta
Updated: February 6, 2006

University open days

  • University of Bradford
    All faculties Undergraduate
    Wed, 21 Nov '18
  • Buckinghamshire New University
    All Faculties Postgraduate
    Wed, 21 Nov '18
  • Heriot-Watt University
    All Schools Postgraduate
    Wed, 21 Nov '18
Black Friday: Yay or Nay?

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.