Trace table

Trace table

A trace table is a technique used to test algorithms, in order to make sure that no logical errors occur whilst the algorithm is being processed. The table usually takes the form of a multi-column, multi-row table; With each column showing a variable, and each row showing each number inputted into the algorithm and the subsequent values of the variables.

Trace tables are typically used in schools and colleges when teaching students how to program, they can be an essential tool in teaching students how a certain algorithm works and the systematic process that is occurring when the algorithm is executed.

They can also be useful for debugging applications, using a trace table can help a programmer easily detect what error is occurring, and why it may be occurring.

Example

:"x = 0":"For i = 1 to 10"::"x = x+i":"Next i"

This example shows the systematic process that takes place whilst the algorithm is processed, as the values of "i" and "x" change, their new values are recorded in the trace table, this example shows why trace tables are useful for debugging and in education, they make following an algorithmic process easy to follow and understand.

See also

*Algorithms
*Programming languages

References

* http://e-subjects.co.uk/mod/resource/view.php?id=1360
* http://www.thevickerage.worldonline.co.uk/theteacher/alevel/assem/assem5.htm
* http://portal.newman.wa.edu.au/technology/12infsys/html/KWH2003/TraceTables.htm


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • table — [ tabl ] n. f. • 1050; var. taule XIIIe (→ tôle); lat. tabula « planche, tablette » I ♦ Objet formé essentiellement d une surface plane horizontale, généralement supportée par un pied, des pieds, sur lequel on peut poser des objets. 1 ♦ Surface… …   Encyclopédie Universelle

  • Table des caracteres Unicode/U2580 — Table des caractères Unicode/U2580 Tables Unicode 0000 – 0FFF   8000 – 8FFF 1000 – 1FFF 9000 – 9FFF 2000 – 2FFF …   Wikipédia en Français

  • Table des caractères Unicode/U2580 — Tables Unicode 0000 – 0FFF   8000 – 8FFF 1000 – 1FFF 9000 – 9FFF 2000 – 2FFF …   Wikipédia en Français

  • Table des caractères unicode/u2580 — Tables Unicode 0000 – 0FFF   8000 – 8FFF 1000 – 1FFF 9000 – 9FFF 2000 – 2FFF …   Wikipédia en Français

  • Table tracante — Table traçante Une table traçante est un outil de dessin industriel. Elle se compose d une table horizontale et d un porte stylo motorisé, le tout étant commandé par ordinateur (mais connecté à une unité logique de traitement qui décharge l… …   Wikipédia en Français

  • Table traçante — Une table traçante est un outil de dessin industriel. Elle se compose d une table horizontale et d un porte stylo motorisé, le tout étant commandé par ordinateur (mais connecté à une unité logique de traitement qui décharge l ordinateur des… …   Wikipédia en Français

  • Trace (deconstruction) — Trace is one of the most important concepts in Derridian Deconstruction. In the 1960s, Derrida used this word in two of his early books, namely “Writing and Difference” and “Of Grammatology”. The English word “trace” was first used by Gayatri… …   Wikipedia

  • Table des caracteres Unicode/U2500 — Table des caractères Unicode/U2500 Tables Unicode 0000 – 0FFF   8000 – 8FFF 1000 – 1FFF 9000 – 9FFF 2000 – 2FFF …   Wikipédia en Français

  • Table des caractères Unicode/U2500 — Tables Unicode 0000 – 0FFF   8000 – 8FFF 1000 – 1FFF 9000 – 9FFF 2000 – 2FFF …   Wikipédia en Français

  • Table des caractères unicode/u2500 — Tables Unicode 0000 – 0FFF   8000 – 8FFF 1000 – 1FFF 9000 – 9FFF 2000 – 2FFF …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”