Abstract: A method and apparatus for generating, manipulating, and displaying a universal set of data structures is disclosed. A Table Facility generates and stores tokens and a Logic Processor communicates with external host programs and performs arithmetic and logical manipulations of the tokens in response to requests from the host program. The tokens can be tested and used as any currently known data structure, including but not limited to binary trees and linked lists, as well as being versatile enough to emulate new data structures. The method used to create the data structures is such that many database operations, such as comparison of files and data or their merging, proceed much faster on the present invention than known in the art.