Specification & Pseudocode Flashcards
1
Q
What is algorithm specification?
A
A formal description of an algorithm’s expected behavior and constraints.
2
Q
Why use pseudocode?
A
It provides a language-independent way to describe algorithms clearly.
3
Q
What are key elements of writing good pseudocode?
A
Clarity, simplicity, consistency, correct indentation.
4
Q
Why is pseudocode preferred over actual code in algorithm design?
A
It is language-independent, making it easier to focus on logic rather than syntax.