Skip to main content

Non-primitive data structures

Array-

An array is defined as a set of finite number of homogeneous elements or data items.

It means on array can contain one type data only, either all integer all following point number all character, declaration of array is as follows-

int a[6]
where int specified the data types or type of element array shows-

A 'a' is the name of Array and the number specified inside the bracket is the number of element an array can store.

Following a some of the concept to be remember about array -

The number of element that can be in an array that is the size of an array its name is given by the following equation.

[(upper bound - lower bound) + 1]

Array can always be read or written through loop -

a) for reading an array
     for(i=0; i<=9; i++0
{ scanf( "%d" , &a[i]); }

b) for writing an array
 for (i=0; i,=9; i++)
{ printf("%d" , a[i]); }

List - 


A list (Linear Linked List) can be defined as a collection of a variable name of data item. An element of list must contain at least two field, one for sorting data or information and other for sorting address of next element.


LIST is divided into two parts-

A) Linear List.
B) Linear List.

A) Linear list is divided into two parts -

1. STACK
2. QUEUE

B) Non Linear list is divided into two parts.

1. Graph
2. Tree.

STACK -


A stack has a special feature that deletion and insertion of element can be done only from one end, called the top of stack due to this property it is also called as last in first out(LIFO). Type of data structure.


Queue


Queue are FIFO type of data structure. In a queue new element are added to the queue from one end called. Rear and the element are always remove from other end called the Front end.


TREE - 


A tree can be define as finite set of data items(nodes). Tree is non linear type of data structure in which data items are arrange or stored in a sorttest sequence. Tree represents the hierarchical relationship between various element.


GRAPH

A graph (VE) is set of vertice(V) and set of edges (E).


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...