CPE 121 Flashcards
is a critical aspect of problem-solving in computer science and software development.
It provides a systematic approach to breaking down complex problems into smaller, manageable steps.
Algorithm design
is the process of visually representing the steps or logic of a process, algorithm, or system using standard symbols such as ovals, rectangles, diamonds, and arrows. Each symbol represents a specific action or decision, making it easier to understand and communicate the logic of a task or program.
Flowcharting
Represents the start or end of a process.
Oval
Represents a process or task to be performed
Rectangle
Represents a decision point requiring a yes/no or true/false answer.
Diamond:
Indicates the flow of control or sequence of steps
Arrow
is a simplified, high-level description of a computer program or algorithm. It uses plain, human-readable language and basic programming constructs to outline the logic and steps of an algorithm without adhering to the syntax of any specific programming language.
Pseudocode
When to use these tools
Visualizing Processes
Explaining to Non-Technical Audiences
Analyzing Complex Systems
Flowchart
When to use these tools
Algorithm Design
Programming Collaboration
Debugging and Refining
Platform Independence
Pseudocode
Loop Structure
when the loop body must run at least once before evaluating the condition.
Use posttest
Loop Structure
when you want to check conditions before executing the loop.
Use pretest
Represents input (e.g., entering data) or output (e.g., displaying results
Parallelogram
Acts as a connector for flow continuation within the same page.
Circle
Serves as an off-page connector for flows spanning multiple pages.
Pentagon
Denotes a predefined process or sub-process detailed elsewhere.
Cloud: