Data (computing)

From Wikipedia, the free encyclopedia

(Redirected from Computer data)
Jump to: navigation, search

Contents

In computer science, data is any information in a form suitable for use with a computer[1]. Data is often distinguished from programs. A program is a set of instructions that detail a task for the computer to perform. In this sense, data is thus everything that is not program code[2].

In an alternate usage, binary files (which are not human-readable) are sometimes called "data", as distinguished from human-readable "text" [3].

Fundamentally, computers follow the instructions they are given. A set of instructions to perform a given task (or tasks) is called a "program". In the nominal case, the program, as executed by the computer, will consist of binary machine code. The elements of storage manipulated by the program, but not actually executed by the CPU, contain data.

Typically, different files are used to store programs vs data. Executable files contain programs; all other files are data files. However, executable files may also contain data which is "built-in" to the program. In particular, some executable files have a data segment, which nominally contains constants and initial values (both data).

For example: A user might first instruct the operating system to load a word processor program from one file, and then edit a document stored in another file. In this example, the document would be considered data. If the word processor also features a spell checker, then the dictionary (word list) for the spell checker would also be considered data. The algorithms used by the spell checker to suggest corrections would be considered code.

The line between program and data can become blurry. An interpreter, for example, is a program. The input data to an interpreter is itself a program -- just not one expressed in native machine language. In many cases, the interpreted program will be a human-readable text file, which is manipulated with a text editor -- more normally associated with plain text data.

More fundamentally in programming, data is any evolving state. Code is a particular, very structured kind of data, which constitutes a way to specify what is being programmed. Code is specific in that it has a particular structure, imposed by the designer of the system which executes it. Sometimes, this structure is the only way to specify the behavior of a program. The notion that code is also data is harnessed in the design of functional languages to establish so-called expressive power.

  1. ^ data. American Heritage Dictionary of the English Language. Retrieved on 2007-03-19.
  2. ^ data. Webopedia. Retrieved on 2007-03-19.
  3. ^ file(1). OpenBSD Manual Pages (2004-12-04). Retrieved on 2007-03-19.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.