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

From Tradition to Trend: How Inlay Art is Taking the Modern Design World by Storm

Inlay art, a centuries-old craftsmanship, is experiencing a renaissance in the modern design world. This article explores the remarkable journey of inlay art from its traditional roots to becoming a prominent trend in contemporary design. The Rich History of Inlay Art Inlay art, also known as marquetry or intarsia, has its origins dating back to ancient Egypt and Mesopotamia. Initially, it was employed to decorate furniture, musical instruments, and architectural elements. The intricate patterns and designs were painstakingly created by embedding contrasting materials such as wood, metal, and ivory into a wooden base. Rediscovery of Inlay Art In recent years, there has been a resurgence of interest in traditional craftsmanship. People are increasingly drawn to the authenticity and uniqueness that handcrafted pieces offer. Inlay art, with its blend of heritage and artistic flair, has captured the attention of both designers and consumers alike. The Modern Interpretation Contemporary des

Inlay Artistry: Unveiling the Timeless Craftsmanship

In the world of art and craftsmanship, there exists a centuries-old technique that continues to captivate and inspire with its timeless beauty and intricate precision—Inlay Artistry. This age-old craft has left its indelible mark on history, adorning palaces, temples, and exquisite furniture with its breathtaking designs. In this journey through the world of Inlay Artistry, we will delve into its rich history, the meticulous techniques involved, and its enduring relevance in the modern era. A Glimpse into History Inlay art, also known as marquetry or intarsia, has a heritage that stretches back thousands of years. Its roots can be traced to ancient civilizations like Egypt and Mesopotamia, where artisans adorned furniture and tombs with intricate inlay designs. However, it was during the Renaissance period in Europe that inlay artistry truly flourished. Italian craftsmen, in particular, elevated the craft to new heights, creating awe-inspiring pieces that became symbols of wealth and l

The Intricate Beauty of Itmad-ud-Daula Tomb's Inlay Work in Agra

Welcome to the magnificent Agra, home of the world-renowned Taj Mahal and other architectural marvels. Today we are taking a closer look at one such wonder - The Itmad-ud-Daula Tomb. While it may not be as famous as its more grandiose neighbor, this tomb holds within it an intricate beauty that is nothing short of breathtaking. Join us as we explore the exquisite inlay work that adorns this mausoleum and discover why it's considered one of the finest examples of Mughal architecture in India. Introduction to the Itmad-ud-Daula Tomb in Agra, India Itmad-ud-Daula tomb is a Mughal mausoleum in Agra, India. The tomb was built by Empress Nur Jahan in memory of her father, Mirza Ghias Beg, who was the Prime Minister of Emperor Jahangir. The tomb is located on the banks of the Yamuna river and is considered to be a transitional work between the earlier Mughal architecture and the later Shah Jahan period. The exterior of Itmad-ud-Daula is decorated with white marble inlaid with semiprecious