What is Data Structure?
A data structure is a particular way of organizing data in a computer so that it can be used effectively.
Where Data Structures are used?
Data Structures can be used to organize, storage and retrieval of information stored in both main memory and secondary memory.
What is Algorithm?
Algorithm is set of instruction that is used to solve specific problem.an ideal algorithm must have less time and space complexity
Time complexity:
It is used to describe the amount of time it takes to run/execute an algorithm.
Space complexity:
It is the memory required by an algorithm to execute a program and produce output.
Searching Algorithm:
Linear Search-Program and Explanation
Binary Search-Program and Explanation
Sentinel Linear Search-Program and Explanation
A data structure is a particular way of organizing data in a computer so that it can be used effectively.
Where Data Structures are used?
Data Structures can be used to organize, storage and retrieval of information stored in both main memory and secondary memory.
What is Algorithm?
Algorithm is set of instruction that is used to solve specific problem.an ideal algorithm must have less time and space complexity
Time complexity:
It is used to describe the amount of time it takes to run/execute an algorithm.
Space complexity:
It is the memory required by an algorithm to execute a program and produce output.
Searching Algorithm:
Linear Search-Program and Explanation
Binary Search-Program and Explanation
Sentinel Linear Search-Program and Explanation
No comments:
Post a Comment