0% found this document useful (0 votes)
7 views

Week 1 Cs

The document discusses algorithms, problem solving, flowcharts, pseudocode, and integrated development environments (IDEs). It defines algorithms as step-by-step procedures for solving problems and notes they can provide a systematic way to approach problem solving. It also describes flowcharts and pseudocode as visual and textual representations of algorithms, respectively, and provides examples of each. Finally, it defines an IDE as a software that provides tools to aid the entire software development process.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Week 1 Cs

The document discusses algorithms, problem solving, flowcharts, pseudocode, and integrated development environments (IDEs). It defines algorithms as step-by-step procedures for solving problems and notes they can provide a systematic way to approach problem solving. It also describes flowcharts and pseudocode as visual and textual representations of algorithms, respectively, and provides examples of each. Finally, it defines an IDE as a software that provides tools to aid the entire software development process.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 30

CHAPTER #1

Algorithm & Problem Solving


• Algorithm:
• An algorithm is a step-by-step procedure or set of instructions for performing a
specific task or solving a particular problem. It is a precise and unambiguous
sequence of operations that can be executed by a computer or a human.
Algorithms are designed to produce a desired output or solve a well-defined
problem when given a specific input.
• Problem solving is the process of finding solutions to issues or challenges. It
involves identifying problems, understanding their nature, and then devising
strategies to solve or mitigate them. Problem-solving is a fundamental cognitive
skill that applies to various aspects of life, including mathematics, science,
engineering, business, and everyday decision-making.
• Problem solving can be done using algorithms. Algorithms provide a systematic
and structured way to approach problems, especially in computer science and
mathematics.
Flow chart & Pseudo code
FLOW CHARTS
• Visual Representation: Flowcharts are graphical representations of algorithms or processes.
They use symbols and shapes to represent different elements of the algorithm and the flow
of control.
• Universal Language: Flowcharts are relatively universal and can be understood by
individuals with varying levels of technical knowledge. They are often used in
documentation and presentations to convey complex processes to a broad audience.
• Flow of Control: Flowcharts use arrows to illustrate the flow of control between various
steps and decision points. They provide a clear visual representation of the sequence of
actions and the logic of the algorithm.
• Symbols: Flowcharts use standard symbols like rectangles for processes, diamonds for
decision points, and arrows for connecting elements. These symbols are well-defined and
widely recognized.
• Ease of Understanding: Flowcharts are often considered more intuitive for people who are
not experienced in programming because they provide a visual representation of the
algorithm's logic.
Flow chart of a common problem
Flow chart of Simple mathematical problem
PSEUDO CODE
• Textual Representation: Pseudo code is a textual representation of an
algorithm or program logic. It uses a simplified form of natural language
with some programming constructs to outline the steps of an algorithm.
• Human-Centric: Pseudo code is designed to be more readable and
understandable by humans, making it a helpful tool during the initial stages
of algorithm design and planning.
• Flexibility: Pseudo code is less strict in terms of syntax and structure,
making it a more flexible tool for describing algorithms. It allows for more
natural language descriptions of steps.
• No Standardization: There is no standardized set of symbols or syntax for
pseudo code. It can vary from person to person and from one project to
another. This lack of standardization can lead to variations in how pseudo
code is written.
Pseudo code of a simple problem
Algorithm
• "An algorithm is a set of clear and specific steps for solving a problem or completing a task.“
• Instruction in algorithm are more closer to a instructions of programming language
• For example algorithm to find greater number is
• 1. Start
• 2. Input the first number (num1)
• 3. Input the second number (num2)
• 4. If num1 is greater than num2, then
• 5. Display "num1 is greater"
• 6. Else if num2 is greater than num1, then
• 7. Display "num2 is greater"
• 8. Else
• 9. Display "Both numbers are equal"
• 10. End
Difference between Algo & Psedocode
Integrated Development Environment (IDE)
• IDE stands for "Integrated Development Environment.“
• It is a software application that provides a comprehensive set of tools
and features to aid in software development.
• An IDE is designed to streamline and simplify the process of writing,
testing, and debugging code.
• It typically includes several components and features that are
essential for software development.
• Turbo C++, Borland C++, DevC++ are IDE’s for programming in C++

You might also like