What is an algorithm ?
What are algorithms ? Why is the study of algorithms worthwhile ? What is the role of algorithms relative to other technologies used in computers ?
Well, informally, an algorithm is any well-defined computational
procedure that takes some value, or set of values, as input and produces
some value, or set of values, as output. An algorithm is thus a
sequence of computational steps that transform the input into the
output. We can also view an algorithm as a tool for solving a
well-specified computational problem. The statement of the problem
specifies in general terms the desired input/output relationship. The
algorithm describes a specific computational procedure for achieving
that input/output relationship.
What is a data structure ?
A data structure is a way to store and organize data in order to facilitate access and modifications.Data structures are the heart of any sophisticated program. Selecting the right data structure can make an enormous difference in the complexity of the resulting implementation. Pick the right data representation, and your task will be easy to program. Pick the wrong representation, and you may spend enormous amounts of time and code covering up for your lousy initial decision. Data Structures are used to efficiently work with the data being used in our program.
A data structure is a way to store and organize data in order to facilitate access and modifications.Data structures are the heart of any sophisticated program. Selecting the right data structure can make an enormous difference in the complexity of the resulting implementation. Pick the right data representation, and your task will be easy to program. Pick the wrong representation, and you may spend enormous amounts of time and code covering up for your lousy initial decision. Data Structures are used to efficiently work with the data being used in our program.
Stack, Queue, Tree etc.
are few examples of the data structures having different capabilities
and consequently being used for different applications in programming.
You can learn more about them in the Data Structures section.
Does any specific programming language favor any algorithm/ Data Structure ?
And answer is NO! Algorithms and Data Structures are no way related to a particular language in specific. But yes, a language may provide some inbuilt tools or APIs which support any data structure type. But it never means that you can not develop the same APIs in any other language. You may choose any programming language to learn the algorithms and programming.
And answer is NO! Algorithms and Data Structures are no way related to a particular language in specific. But yes, a language may provide some inbuilt tools or APIs which support any data structure type. But it never means that you can not develop the same APIs in any other language. You may choose any programming language to learn the algorithms and programming.
No comments:
Post a Comment