Popular Articles

The Anglo Sikh wars (1846-49) were the most ferocious battles faced by the British in India. These battles deeply affected the British psyche, with the
I have been wanting to write about the military heroes of the 20th century from India. We have so many great soldiers and airmen who are not remembered
Backwaters are unique tourist attractions of Kerala. Cruising along the marvelous Kerala backwaters on a traditional house boat is one of the best ways

Latest Articles

Backwaters are unique tourist attractions of Kerala. Cruising along the marvelous Kerala backwaters on a traditional house boat is one of the best ways
I have been wanting to write about the military heroes of the 20th century from India. We have so many great soldiers and airmen who are not remembered
The Anglo Sikh wars (1846-49) were the most ferocious battles faced by the British in India. These battles deeply affected the British psyche, with the

 

 

DATA STRUCTURE PART-1

In this part-1 of data structure we are going to see some of the types of data structures and their definitions. Then in upcoming part-2 we will see them with their syntax and some examples. And remember, this is only the basics. When you started working on a computer you must've wondered that where do all the letters you type, pictures you see resides. Well basically they are called as Data formally organised. Normal people indicate a thing is perfect, only when that thing is perfectly structured and organised

 

Definitions Of A 'Data Structure':

Most of the memory in your computer is occupied only by the data. And hence data which occupies space must be organised. So, the logical or mathematical model or a technique of a particular organization of data is called a data structure.

Definition Of An 'Algorithm':

An algorithm may be defined as a finite sequence of instructions each of which has a clear meaning.

Conditions For An 'Algorithm':

  • Limits: Each algorithm must terminate after a specific or certain number of steps.
  • Clear State: The steps involving algorithms must be accurately clear.
  • Intended Result: For a better result of the processes the steps involving algorithms must have basic solutions.
  • Purpose: The target or mission of an algorithm must be to solve the problem and find a solution and destroy any interupts

Definition Of An 'Array':

An array may be defined as one of the data structures whose elements are all of same data type.

Basic Example: char a[100].......where char-data type; a-variable; containing 100 elements

 

Definition Of A 'Structure':

A structure is also one of the data structure with its own keyword struct and in which the individual elements stored in structure may differ in data type. It can have elements of ll dta types like char, int, float and more....and other data structures such as pointers and array can also be a member of the structure.

Basic Example: struct boddunan{ int regno, char name[8], float balance };....where struct is keyword and boddunan is structure name and each structure must be terminated with a semicolon.

Definition Of A 'Pointer':

Basically a pointer is one of the derived data type of C and C++. Such pointers contain memory addresses as their values and hence pointers made it simple to access the data just by calling the pointer since the address of the specified data is stored in the pointer itself and thus the data are manipulated simply through pointer...

 

 

Thankyou,

Rajkumar( Will be back in Part-2)

  • No comments found