Control table: Difference between revisions

Content deleted Content added
Edit for flow
Table structure: Edit for brevity
Line 18:
 
==Table structure==
TheA tablestable can havebe multiplestructured dimensions,in a variety of fixedways. orIt [[variablemay lengthone code|variableor length]]smultiple dimensions and arebe usuallyof [[softwarefixed portability|portable]] betweenor [[computervariable platform]]s,length requiringcode only a change to the interpreter,|variable not the [[algorithmlength]] itself – the logic of which is essentially embodied within the table structure and content. The structure of the table may be similar to a [[multimap (data structure)|multimap]] [[associative array]], where a data value (or combination of data values) may be mapped to one or more functions to be performed. Often, the structure allows tabular data is [[software portability |portable]] between [[computer platform]]s as long as a compatible interpreter exists on each platform.
 
===One-dimensional tables===
{| class="wikitable floatright" style="text-align:center; "
|+ Table tothat translatemap raweach ASCII valuesvalue (A,D,M,S) to newa subroutine index (1,4,3,2) invia [[constant time]] usinga one-dimensional array<br/>{{nobold|(gapsomitted in the rangevalues are shown as '...' for this example, meaning 'all hex values up to next row'. The first two columns are not part of the array)}}
|- style="vertical-align:bottom;"
! [[ASCII]]!! Decimal !! [[Hexadecimal]] !! Array