Characteristics of an Algorithm

An algorithm should have the following characteristics − Unambiguous − Algorithm should be clear and unambiguous. Each of its steps (or phases), and their inputs/outputs should be clear and must lead to only one meaning. Input − An algorithm should have 0 or more well-defined inputs. Output − An algorithm should have 1 or more … Read more

Classification of Data structure

Data Structure can be classified in two categories. According to these categories we can access or manage data according to our need. There are various ways to classify data structure. Primitive and Non Primitive Data Structure: The data structure that are   atomic (indivisible) are called primitive. Examples are integer, real and characters. The Data structures that … Read more

OPERATION ON DATA STRUCTURE

1) Traversing: Every data structure contains the set of data elements. Traversing the data structure means visiting each element of the data structure in order to perform some specific operation like searching or sorting. Example: If we need to calculate the average of the marks obtained by a student in 6 different subject, we need … Read more

Why do we need data structures?

Data structure is a particular way of storing and organizing information in a computer so that it can be retrieved and used most productively. Different kinds of data structures are meant for different kinds of applications, and some are highly specialized to specific tasks. Data structures are important for the following reasons: 1. Data structures … Read more