Uploaded by Kay Thi Hlaing

Algorithms

advertisement
What is Algorithms? , Example of Algorithms?
-An Algorithms is a set of instructions to perform a task or to solve a given problem.
-For example, A recipe book is a collections of recipes in which each recipe provides a step by step instructions to prepare food.
-Let say you want to prepare a tea.So, the steps would be 1. Boil water
2. Put tea powder in tea pot.
3. Add hot water.
4. Put tea into tea cups.
5. Ask, Do you need sugar?
i) If yes, put it into tea cup.
ii) if no, do nothing.
6. Drink and Enjoy!!!
-Like that, in Algorithms
-Print average of 3 given numbers.
-Let say you want to write algorithm for it.So, the steps would be
1. Perform sum of 3 numbers.
2. Store it in variable sum.
3. Divide the sum by 3.
4. Store the value in variable avg.
5. Print the value.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Usage of algorithms? (which area)
-Computer science and programming: Algorithms are used to automate tasks and make computer programs more efficient and effective.
-Mathematics: Algorithms are used to solve mathematical problems and perform calculations.
-Engineering: Designing efficient systems that can perform tasks automatically or predictively uses algorithms.
-Finance: Algorithms are used for analyzing stock market data and high-frequency trading.
-Marketing: Data-driven algorithms are used to generate personalized recommendations and targeted advertisement.
-Biometric authentication: Facial recognition and fingerprint recognition algorithms are used for identity verification.
-Science and research: Algorithms are used to analyze complex datasets, discover patterns in data, and make predictions.
-Artificial intelligence and machine learning: Algorithms are at the core of AI and machine learning, which are used to build models that can perform tasks such as image and speech recognition, natural language processing, and prediction.
-Medicine: Algorithms are used to analyze medical data, diagnose diseases, and predict outcomes.
-Education: Adaptive learning algorithms are used in educational software to personalize learning and provide personalized feedback.
-Transportation: Algorithms are used in traffic management systems to optimize traffic flow and reduce congestion,
as well as in route optimization for delivery services.
-Entertainment: Algorithms are used to analyze customer preferences for movie or TV show selection on demand/streaming applications.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Why we need to learn algorithms?
-Problem-solving: Learning algorithms offers a structured approach to problem-solving.
It allows programmers to break complex problems down into smaller, more manageable parts, and identify the most efficient solution.
-Contributing to open-source projects: By understanding algorithms,
individuals can contribute to open-source projects and participate in the wider programming community.
-Understanding how software works: A thorough understanding of algorithms can help one develop a deeper understanding of how software works and
how different parts of a program interact with each other.
-An algorithm is a step-by-step procedure for solving a problem or achieving a specific goal.
When a programmer uses an algorithm,they have a plan or guide to follow to achieving the desired result.
Algorithms are often used to improve the efficiency and effectiveness of programs, and to ensure that they produce correct results.
-On the other hand, a programmer who does not use an algorithm may rely more on their experience in solving problems. They may not have a defined plan or guide to follow but instead rely on their problem-solving skills and knowledge of programming languages and tools to write code and develop programs.
Download