Posts

Showing posts from July, 2025

Introduction to Algorithm in DSA | Semester Exam Notes (Simplified)

 Introduction – What is an Algorithm? Basic Definition: An algorithm is a step-by-step method used to solve a problem in a logical and organized way. Set of rules  – A group of rules that help complete a calculation, either by hand or using a machine. Well-defined computational procedure  – A method that takes input, processes it, and gives an output. Finite sequence of steps  – A process with a fixed number of steps to reach a result. Where does the word "Algorithm" come from? The word algorithm comes from the name of a 9th-century mathematician , Abdullah Jafar Muhammad ibn Musa Al-Khwarizmi .  What an Algorithm is NOT: An algorithm is not a programming language . It is not actual code , but a step before coding. It is usually written in simple language , so anyone can understand it. Key Properties of a Good Algorithm: Property Explain