Lookup tables are also used to validate input values by matching against a list of valid ( or invalid ) items in an array . Lookup tables are also used extensively to validate input values by matching against a list of valid ( or invalid ) items in an array and , in some programming languages , may include pointer functions ( or offsets to labels ) to process the matching input .