Computer Science Review Material
Computer Science Review Material
A flowchart visually represents a process or algorithm using different shapes and arrows.
Each shape has a specific meaning:
o Oval: Start/End of the program.
o Rectangle: Instruction/Process (e.g., x = 5)
o Diamond: Decision/Condition (e.g., if x > 10)
o Arrows: Show the flow from one step to another.
💡 Example Flowchart:
[Start] → [x = 10] → [x > 5?] → Yes: print("Big") | No: print("Small")
🔁 Practice Tip:
1. Input/Start
2. Sequence of processes
3. Decision branches
4. Output
2. Decomposition & Iterative Development
🧩 Decomposition
Breaking down a big problem into smaller, manageable parts (modules or functions).
Makes code easier to write, test, and debug.
🔁 Iterative Development
Decomposition:
o Input function
o Calculation function
o Output display
Iteration: Test each part → improve if it fails → test again.
3. Binary Search
🔍 What is Binary Search?
🔁 How It Works:
📦 Example:
list = [2, 4, 6, 8, 10]
target = 8
⚠️Important:
for i in range(3):
print(i)
Output:
0
1
2
🧮 Trace Table
i
0
1
2
⚠️Why Important?
🧰 Debugging Techniques:
A table used to ensure that a program behaves as expected with different inputs.
📊 Structure:
🧪 Example:
x = 4
y = 3
if x > y:
result = x * y # ❌ Should be x + y
💸 Why is it Valuable?
Helps companies target ads, understand customer interests, and improve sales.
V Meaning
Volume Massive amounts of data
Velocity Speed of data generation
Variety Different types: video, text, numbers
Veracity Data accuracy and reliability
Value Usefulness of data to make decisions
Would you like this formatted into a printable document or digital flashcards for revision?