Unit-1 Introduction to Data Structure | BCA 2nd Year
Unit-1 Introduction to Data Structure | BCA 2nd Year-Hello everyone welcome to the pencilchampions.com website. this website provide Data structure notes BCA 2nd Year. Thankyou for visiting pencilchampins.com
UNIT-1
Introduction to data structure and its characteristics array
Data Structure
- Data structure is representation of the logical relationship existing between individual elements of data.
- Data structure is the way of organizing data items Data Structure mainly specify the following four things-
- Organisation of data
- Accessing method
- Degree of associatibility
- Processing alternatives for information.
Read external link- https://sdcollegehsp.net/studymaterial/BCA-3_sem(Data_Structures).pdf
Operation of data
- Insertion
- Deletion
- Updation
- Selection
Read more-https://pencilchampions.com/unit-5-name-space-oops-using-c-and-c-bca-3rd-semester/
Other operations
- Searching
- Sorting
- Merging
Classification of data structure
Array
- Array forms an important part.
- Arrays are always stored in sequential memory locations.
- An array can store multiple values. Which can be referenced by a single name unlike a simple variable which stores one value at a time.
- Array name is actually a pointer. The first location of the memory block is allocated to the name of the array.
- An array can be either a character in integer or be of frosting data type, it can be initialized only during declaration time and not later.
Types of array:-
- one dimensional dimension array
- 2- two arrays
- 3- Multidimensional Array
- One Dimensional X-ray :- Initialization – data-type variable-name (expression);
Ex- int ex [10]
Char word [‘H’ ‘E’ ‘L’ ‘L’ ‘O’ ‘/0’];
Accessing One-dimensional array
O read a value
scanf (“%d”,&[3]);
- Two- dimensional array- Two- dimensional array is of two types- row major and column major
Initialization of 2-D array
Ex- int a[2][2];
Triangular matrix
- Upper Triangular matrix
- Lower triangular matrix
- A square matrix, all of whose elements above principal diagonal are zero, is called a lower triangular matrix.
Sparse matrix
- In numerical analysis, a sparse matrix in which most of the elements are.
Tridiagonal Matrix
- Matrix that has non-zero element on the main diagonal
Discover more from Pencil Champions
Subscribe to get the latest posts sent to your email.