background preloader

Programming

Facebook Twitter

Wordle - Beautiful Word Clouds. Locality of reference. In computer science, locality of reference, also known as the principle of locality, is a phenomenon describing the same value, or related storage locations, being frequently accessed. There are two basic types of reference locality – temporal and spatial locality. Temporal locality refers to the reuse of specific data, and/or resources, within a relatively small time duration. Spatial locality refers to the use of data elements within relatively close storage locations.

Sequential locality, a special case of spatial locality, occurs when data elements are arranged and accessed linearly, such as, traversing the elements in a one-dimensional array. Types of locality[edit] There are several different types of locality of reference: Temporal locality If at one point in time a particular memory location is referenced, then it is likely that the same location will be referenced again in the near future. Spatial locality Equidistant locality Reasons for locality[edit] Predictability See also[edit]

Sky Behavioral Database. Sankey diagram. Example of a Sankey diagram. Sankey's original 1898 diagram showing energy efficiency of a steam engine. Sankey diagrams are a specific type of flow diagram, in which the width of the arrows is shown proportionally to the flow quantity. They are typically used to visualize energy or material or cost transfers between processes. Application[edit] They are also commonly used to visualize the energy accounts or material flow accounts on a regional or national level. Historical Examples[edit] Sankey diagrams are named after Irish Captain Matthew Henry Phineas Riall Sankey, who used this type of diagram in 1898 in a classic figure (see panel on right) showing the energy efficiency of a steam engine. One of the most famous Sankey diagrams is Charles Minard's Map of Napoleon's Russian Campaign of 1812.

Active Examples[edit] The International Energy Agency (IEA) created an interactive Sankey web application that details the flow of energy for the entire earth. See also[edit] References[edit] Hammer.js — A javascript library for multi touch gestures. JavaScript InfoVis Toolkit.

Jquery