2.1.4 Thinking Logically
No description yet. This curated deck is ready for daily study.
Card preview (4)
What are the examples of branching?
IF Statement Case/Switch Statement BRP / BRA / BRZ
What decisions are made in the enqueue and dequeue algorithms?
Enqueue – Is the queue already full? | Return error | enqueue item to queue and adjust pointer Dequeue – Is the queue empty? | Return error | dequeue item and adjust pointer Format to use: What is the decision?| Action if true | Action if false:*
What decisions are made in the pop and push algorithms?
Push – Is the stack already full? | Return error | push item and adjust pointer Pop – Is the stack empty? | Return error | pop item and adjust pointer Format to use: What is the decision?| Action if true | Action if false:
What decisions are made in the pop and push algorithms?
Push – Is the stack already full? | Return error | push item and adjust pointer Pop – Is the stack empty? | Return error | pop item and adjust pointer Format to use: What is the decision?| Action if true | Action if false: