Tuesday, March 17, 2009

In programming, a series of objects all of which are the same size and type. Each object in an array is called an array element. For example, you could have an array of integers or an array of characters or an array of anything that has a defined data type. The important characteristics of an array are:
  • Each element has the same data type (although they may have different values).
  • Arrays can have more than one dimension. A one-dimensional array is called a vector ; a two-dimensional array is called a matrix.


    tree structure
    Go Green With IBM System xTM And Intel.
    Solutions Brief: By "going green" with IBM System xTM servers featuring Intel. Xeon. processors, you can win back control of your IT budgetand win the battle with data center power constraints. »


    Maximize the Business Value of Datacenters with Intel, IBM and VMWare
    Whitepaper: See how high performance virtualization solutions running on IBM and Intel technology can provide increased agility for your business. »
    Intel: Comparing Two- and Four-Socket Platforms for Server Virtualization
    IT Report: Which platform is the best for your virtualization projects? Read this Intel IT report to learn how various solutions compare. »
    IBM System x Enterprise Servers in the New Enterprise Data Center
    Whitepaper: See how virtualizing and consolidation on IBM System x and Intel systems can provide you with 27% better performance and 15% lower power consumption than the competition. »
    A type of data structure in which each element is attached to one or more elements directly beneath it. The connections between elements are called branches. Trees are often called inverted trees because they are normally drawn with the root at the top.

    The elements at the very bottom of an inverted tree (that is, those that have no elements below them) are called leaves. Inverted trees are the data structures used to represent hierarchical file structures. In this case, the leaves are files and the other elements above the leaves are directories.

    A binary tree is a special type of inverted tree in which each element has only two branches below it.

    (n.) A collection of data or information that has a name, called the filename. Almost all information stored in a computer must be in a file. There are many different types of files: data files, text files , program files, directory files, and so on. Different types of files store different types of information. For example, program files store programs, whereas text files store text.

    data stuctture

    Insertion

    Insertion begins as a search would begin; if the root is not equal to the value, we search the left or right subtrees as before. Eventually, we will reach an external node and add the value as its right or left child, depending on the node's value. In other words, we examine the root and recursively insert the new node to the left subtree if the new value is less than the root, or the right subtree if the new value is greater than or equal to the root.

    Here's how a typical binary search tree insertion might be performed in C++:

    Wednesday, March 4, 2009

    data struct

    yhis my new accnt>>>>>>>