Set_(computer_science) Set_(computer_science)

Set (computer science) - Definition and Overview

In computer science, the set is a collection of certain values without any particular order. It corresponds with the mathematical concept of set, but with the restriction that it has to be finite. Disregarding sequence, it is the same as a list. A set can be seen as an associative array where the value of each key-value pair is ignored.

Sets can be implemented using various data structures. Ideal set data structures make it efficient to check if an object is in the set, as well as enabling other useful operations such as iterating through all the objects in the set, performing a union or intersection of two sets, or taking the complement of a set in some limited domain. Popular methods include arrays (in particular bit arrays), hash tables, and any sort of tree structure. A Bloom map implements a set probabilistically, using a very compact representation but risking a small chance of false positives on queries. Any associative array data structure can be used to implement a set by letting the set of keys be the elements of the set and ignoring the values.

However, very few of these data structures support set operations such as union or intersection efficiently. For these operations, more specialized set data structures exist.

One of the earliest languages to support sets was Pascal; many languages now include it, whether in the core language or in a standard library. Java programming language offers Set interface to support sets. In C++, STL provides set classes.

Example Usage of (computer

AmyJones76: A really funny post why computer is better than woman http://kirarakan.info/archives/500 woman man's_world man thoughts
Nana_Bananas: Yay! What happens when me and Pickles mix sugar, boredom, and the paint program on my computer. http://i49.tinypic.com/2zdx2l1.jpg
_BabyGiiirl: @SUPERskimzYUUUP LMAOOO I ALMOST HIT MY HEAD ON THE COMPUTER SCREEN LMAO
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.