Skip to main content

Types of Data Structure

Types of Data Structure

* Primitive data structures
* Non-primitive data structures




Primitive Data Structures

Primitive Data Structures are the basic data structures that straightforwardly work upon the machine instructions.They have various representations on different computers. The term "data type" and "primitive data type" are commonly used interchangeably. This data types are predetermined types of data, which are supported by the programming language. For example, integer, character, float, string and pointer are all primitive data types. Programmers can utilize these data types when they creating variables in their programs. For example, a programmer may create a variable called "lastname" and define it as a string data type. The variable will then store data as a string of characters.

Types of  Primitive Data Structure -

* Integer.
* Float.
* Char
* Pointer

Integer - 

An integer is a absolute number (not a fraction) that can be positive, negative, or zero. Hence, the numbers 10, 0, -25, and 5,148 are all integers. Unlike floating point numbers, integers cannot have decimal places.

Integers are a often used data type in computer programming. For example, whenever a number is being incremented, such as within a "for loop" or "while loop," an integer is used. Integers are also used to allocate an item's location within an array.

Float - 

Float is just opposite to Integer. Integer is a complete number not a decimal but Float is may be complete and decimal number also.It contains decimal numbers. For example, the numbers 5.5, 0.001, and -2,345.6789 are floating point numbers.

Character

A character is any letter, number, space, punctuation mark, or symbol that can be typed on a PC. The word "computer," for example, exits of eight characters. The phrase "Hi there." takes up nine characters. Each character requires one byte of space, so "PC" takes up 8 bytes.

The list of characters that can be composed is characterized by the ASCII and extended ASCII set.

Some of the symbols available are pretty strange and may even make you say, "That's quite a character!"

Pointer

Pointer is a variable, which include the address of another variable. If a variable contains address of another variable than it is said that first variable focuses to second. A pointer references a location in memory, and acquiring the value stored at that location is known as dereferencing the pointer.


Non-Primitive Data Structures

Non-primitive Data Types are not characterized by the programming language, yet are rather made by the programmer. They are sometimes called "reference variables," or "object references," since they reference a area, which stores the information. In the Java programming language, non-primitive data types are basically called "objects" because they are created, rather than predefined. While an object may contain any type of information, the information referenced by the object may still be stored as a primitive data type.

Types of  Non-Primitive Data Structure -

* Array.
* List.

    a) Linear List.

           a.1) Stack.
            a.2) Queue.

    b)  Non Linear List

           b.1) Graph.
           b.2)  Tree.

* Files

Comments

Popular posts from this blog

Marble Inlaid Work - The most beautiful Artwork

Marble Inlay Artwork - One of the most beautiful artwork . It is the same work that adorns the Taj Mahal, Akbar Tomb, Etmad-ud Daula, and other Mughal monuments. It is a carefully Protected traditional Art and simplest a Few Expert Exponents are Available Today. Marble Inlaid Work "The delicate system involves reducing and engraving marble shapes manually. To begin with, a predefined pattern e.G., floral design or geometrical design is engraved on the marble slab. Small pieces of marble of various sunglasses are cut delicately to healthy in these grooves precisely. These small pieces are then slipped inside the grooves. Apart from marble, many other materials also can be used. Process of Marble Inlay work - The sequence of processes that culminates within the realization of a masterpiece of marble inlay was formed by the Mughal artisans in the seventeenth century, and has remained mostly unchanged for over four hundred years. though the art still makes use of tools & techniq...

Adorn Your Home With Marble Inlay Table Tops

Marble inlay work is among the most beautiful works of art made from marble. The Taj Mahal and other Mughal structures bear the same artwork. Only a few knowledgeable practitioners are available today because it is a traditionally protected art form. Marble shapes are painstakingly carved and engraved during the delicate procedure. The marble slab is first inscribed with a predetermined pattern, like a floral or geometrical design. Small marble chunks in various tones are painstakingly carved to fit in these slots precisely. Then, these tiny parts are inserted into the grooves. In addition to marble, a variety of different materials can be employed. Around the turn of the 16th century, artisans in Florence, Italy, started inlaying fine precious stone. It was referred to as PIETRA DURA. Stone is pietra, and hard is dura. A traditional type of art was invented by the Italians, who also had exclusive control over it. Pietra dura started to appear on portable, tiny objects in the 1630s as ...

History of Indian Monuments

  The Taj Mahal is the pleasing white marble monument in Agra, India,which is situated at the bank of river Yamuna. The Taj Mahal was made by mughal emperor Shahjahan at the recall of his beloved wife Mumtaz. Mumtaz was a Muslim Persian princess (her name Arjumand Banu Begum before marriage). It was in 1631 that she died during the birth of their 14th child at Burhanpur. The construction of Taj Mahal started in the year 1631, After 20-22 year its construction was complete. This monument was constructed of white marble inlaid with semi-precious gemstones (including jade, crystal, lapis lazuli, amethyst, turquoise, malachite and jasper) forming intricate designs in a technique known as pietra dura. Its central dome height is 240 feet (73 meters) and is surrounded by four smaller domes; four slender towers, or minarets, stood at the corners. Every Tower is make the 90 degree angle from the dome. Shah Jahan, 5th Emperor of the Mughal Dynasty.  The Architect of the Taj Mahal...