Algorithms - Data Structures
Algorithms - Data Structures
DATA STRUCTURES
HOME SUBJECTS DOWNLOADS AUTHORS
CONTACT US
UNIT 1
Introduction
to Algorithm Introduction to Algorithm
Performance
Analysis What is an algorithm?
Space
Complexity An algorithm is a step by step procedure to solve a problem. In normal
Time language, algorithm is defined as a sequence of statements which are used
to perform a task. In computer science, an algorithm can be defined as
Complexity
follows...
Asymptotic
Notations
An algorithm is a sequence of unambiguous instructions used for
Linear & Non
solving a problem, which can be implemented (as a program) on a
Linear Data computer
Structures
Single Linked
Algorithms are used to convert our problem solution into step by step
List
statements. These statements can be converted into computer programming
Circular instructions which forms a program. This program is executed by computer
Linked List to produce solution. Here, program takes required data as input, processes
Double Linked data according to the program instructions and finally produces result as
List shown in the following picture.
Arrays
Sparse Matrix
UNIT 2
Stack ADT
Stack Using
Array
Stack Using
Algorithm Specifications
Linked List Every algorithm must satisfy the following specifications...
Expressions
Infix to Postfix 1. Input Every algorithm must take zero or more number of input values
from external.
Postfix
2. Output Every algorithm must produce an output as result.
Evaluation 3. Definiteness Every statement/instruction in an algorithm must be
Queue ADT clear and unambiguous (only one interpretation)
Queue Using 4. Finiteness For all different cases, the algorithm must produce result
Array within a finite number of steps.
http://btechsmartclass.com/DS/U1_T1.html 1/3
2/6/2017 AlgorithmsDataStructures
http://btechsmartclass.com/DS/U1_T1.html 2/3
2/6/2017 AlgorithmsDataStructures
B Trees
The function which calls by itself is called as Direct Recursive
Red Black
function (or Recursive function)
Trees
Splay Trees
A recursive algorithm can also be defined as follows...
Comparison of
Search Trees
KnuthMorris The function which calls a function and that function calls its called
Pratt function is called Indirect Recursive function (or Recursive function)
Algorithm
Tries Most of the computer science students think that recursive is a technique
useful for only a few special problems like computing factorials,
Ackermann's function etc., This is unfortunate because any function
implemented using assignment or ifelse or while or looping statements can
also be implemented using recursive functions. This recursive function is
very easier to understand when compared to its iterative counterpart.
Next
About UsContact Us
http://btechsmartclass.com/DS/U1_T1.html 3/3